diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2022-05-12 18:13:09 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-12 18:13:09 +0200 |
commit | f5978f4d97150d9e7a1598f9637f0f3c06d72d33 (patch) | |
tree | 57034ccefef3e985df4a2deae9557c514fcb9974 /core | |
parent | a38aafca3e25a5a2b7da497f0dd4baa9d5423605 (diff) | |
parent | 739242dd04d16f85d542bcf9a29aa44402410481 (diff) |
Merge pull request #60972 from KoBeWi/display_port
Diffstat (limited to 'core')
-rw-r--r-- | core/config/project_settings.cpp | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/core/config/project_settings.cpp b/core/config/project_settings.cpp index 2aedbdf45f..ba108d75da 100644 --- a/core/config/project_settings.cpp +++ b/core/config/project_settings.cpp @@ -1175,6 +1175,22 @@ ProjectSettings::ProjectSettings() { GLOBAL_DEF("application/config/use_custom_user_dir", false); GLOBAL_DEF("application/config/custom_user_dir_name", ""); GLOBAL_DEF("application/config/project_settings_override", ""); + + GLOBAL_DEF_BASIC("display/window/size/viewport_width", 1024); + custom_prop_info["display/window/size/viewport_width"] = PropertyInfo(Variant::INT, "display/window/size/viewport_width", PROPERTY_HINT_RANGE, "0,7680,1,or_greater"); // 8K resolution + + GLOBAL_DEF_BASIC("display/window/size/viewport_height", 600); + custom_prop_info["display/window/size/viewport_height"] = PropertyInfo(Variant::INT, "display/window/size/viewport_height", PROPERTY_HINT_RANGE, "0,4320,1,or_greater"); // 8K resolution + + GLOBAL_DEF_BASIC("display/window/size/resizable", true); + GLOBAL_DEF_BASIC("display/window/size/borderless", false); + GLOBAL_DEF_BASIC("display/window/size/fullscreen", false); + GLOBAL_DEF("display/window/size/always_on_top", false); + GLOBAL_DEF("display/window/size/window_width_override", 0); + custom_prop_info["display/window/size/window_width_override"] = PropertyInfo(Variant::INT, "display/window/size/window_width_override", PROPERTY_HINT_RANGE, "0,7680,1,or_greater"); // 8K resolution + GLOBAL_DEF("display/window/size/window_height_override", 0); + custom_prop_info["display/window/size/window_height_override"] = PropertyInfo(Variant::INT, "display/window/size/window_height_override", PROPERTY_HINT_RANGE, "0,4320,1,or_greater"); // 8K resolution + GLOBAL_DEF_BASIC("audio/buses/default_bus_layout", "res://default_bus_layout.tres"); custom_prop_info["audio/buses/default_bus_layout"] = PropertyInfo(Variant::STRING, "audio/buses/default_bus_layout", PROPERTY_HINT_FILE, "*.tres"); |