Merge pull request #22301 from YeldhamDev/button_popup_highlight

Enable toggle behaviour for buttons that trigger popups
This commit is contained in:
Rémi Verschelde
2019-04-25 17:47:23 +02:00
committed by GitHub
5 changed files with 19 additions and 2 deletions

View File

@ -831,6 +831,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);
@ -848,6 +849,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);