diff options
author | Fredia Huya-Kouadio <fhuyakou@gmail.com> | 2024-03-07 19:16:25 -0800 |
---|---|---|
committer | Spartan322 <Megacake1234@gmail.com> | 2024-11-01 18:10:51 -0400 |
commit | eccbd1f070d1ce7e870cb1c664d3a3bdd304cf4c (patch) | |
tree | c0d4b417507d562abf59603bb87fd14d710c3a31 /editor | |
parent | 2d8ad63ce26a7f8b204346019248edb9d9952485 (diff) | |
download | redot-engine-eccbd1f070d1ce7e870cb1c664d3a3bdd304cf4c.tar.gz |
Add support for launching the Play window in PiP mode
(cherry picked from commit 961394a988c7567612b133092212cbacf4dd98b2)
Diffstat (limited to 'editor')
-rw-r--r-- | editor/editor_settings.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/editor/editor_settings.cpp b/editor/editor_settings.cpp index fcb5c5ec46..970a442cbb 100644 --- a/editor/editor_settings.cpp +++ b/editor/editor_settings.cpp @@ -821,6 +821,12 @@ void EditorSettings::_load_defaults(Ref<ConfigFile> p_extra_config) { String android_window_hints = "Auto (based on screen size):0,Same as Editor:1,Side-by-side with Editor:2"; EDITOR_SETTING(Variant::INT, PROPERTY_HINT_ENUM, "run/window_placement/android_window", 0, android_window_hints) + int default_play_window_pip_mode = 0; +#ifdef ANDROID_ENABLED + default_play_window_pip_mode = 2; +#endif + EDITOR_SETTING(Variant::INT, PROPERTY_HINT_ENUM, "run/window_placement/play_window_pip_mode", default_play_window_pip_mode, "Disabled:0,Enabled:1,Enabled when Play window is same as Editor:2") + // Auto save _initial_set("run/auto_save/save_before_running", true); |