implement blend mode selection in shader and fix alpha lock

This commit is contained in:
2017-11-12 03:27:28 +00:00
parent daaa7f9d48
commit 5dccd61160
10 changed files with 27 additions and 7 deletions

View File

@@ -28,12 +28,14 @@ void NodeComboBox::loaded()
btn->m_text->set_text(labels[i].c_str());
btn->m_border->SetWidthP(100.f);
btn->m_border->SetHeight(30.f);
btn->on_click = [this,popup](Node* target) {
btn->on_click = [this,popup,btn](Node* target) {
int index = popup->get_child_index(target);
m_current_index = index;
m_text->set_text(labels[index].c_str());
popup->mouse_release();
popup->destroy();
if (on_select)
on_select(btn, index);
};
}
glm::vec2 pos = m_pos + glm::vec2(0, m_size.y - (m_current_index+1) * 30.f);