Disable multi-window buttons instead of hiding them when support is unavailable

This is more explicit as for why this functionality isn't available
depending on editor settings and current platform.

This also exposes a `EditorInterface.is_multi_window_enabled()` method
so that editor plugins can easily query whether the editor is able and
expected to create multiple windows.
This commit is contained in:
Hugo Locurcio
2023-11-06 12:41:08 +01:00
parent 17e7f85c06
commit 04a930d9a6
10 changed files with 81 additions and 30 deletions

View File

@ -758,6 +758,8 @@ public:
bool is_resource_read_only(Ref<Resource> p_resource, bool p_foreign_resources_are_writable = false);
String get_multiwindow_support_tooltip_text() const;
bool is_changing_scene() const;
VBoxContainer *get_main_screen_control();
@ -807,6 +809,7 @@ public:
List<AdditiveNodeEntry> &p_addition_list);
bool is_scene_open(const String &p_path);
bool is_multi_window_enabled() const;
void setup_color_picker(ColorPicker *p_picker);