You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-11 13:10:58 +00:00
Improve popup window handling.
Add window FLAG_POPUP and a platform specific routines to control popup auto-hiding and event forwarding.
This commit is contained in:
@@ -4024,7 +4024,7 @@ TileMapEditor::TileMapEditor() {
|
||||
// Layer selector.
|
||||
layers_selection_popup = memnew(PopupMenu);
|
||||
layers_selection_popup->connect("id_pressed", callable_mp(this, &TileMapEditor::_layers_selection_id_pressed));
|
||||
layers_selection_popup->set_close_on_parent_focus(false);
|
||||
layers_selection_popup->set_flag(Window::FLAG_POPUP, false);
|
||||
|
||||
layers_selection_button = memnew(Button);
|
||||
layers_selection_button->set_toggle_mode(true);
|
||||
|
||||
Reference in New Issue
Block a user