Enable toggle behaviour for buttons that trigger popups

This commit is contained in:
Michael Alexsander Silva Dias 2018-09-21 02:18:40 -03:00
parent 37e198c320
commit 8f9447310d
5 changed files with 20 additions and 2 deletions

View file

@ -802,6 +802,7 @@ ThemeEditor::ThemeEditor() {
type_edit->set_h_size_flags(SIZE_EXPAND_FILL);
type_hbc->add_child(type_edit);
type_menu = memnew(MenuButton);
type_menu->set_flat(false);
type_menu->set_text("..");
type_hbc->add_child(type_menu);
@ -819,6 +820,7 @@ ThemeEditor::ThemeEditor() {
name_edit->set_h_size_flags(SIZE_EXPAND_FILL);
name_hbc->add_child(name_edit);
name_menu = memnew(MenuButton);
type_menu->set_flat(false);
name_menu->set_text("..");
name_hbc->add_child(name_menu);