implement blend mode selection in shader and fix alpha lock
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user