Move Display settings higher in the list
This commit is contained in:
parent
ea9064c01f
commit
739242dd04
|
@ -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");
|
||||
|
||||
|
|
|
@ -1328,35 +1328,6 @@ Error Main::setup(const char *execpath, int argc, char *argv[], bool p_second_ph
|
|||
// always convert to lower case for consistency in the code
|
||||
rendering_driver = rendering_driver.to_lower();
|
||||
|
||||
GLOBAL_DEF_BASIC("display/window/size/viewport_width", 1024);
|
||||
ProjectSettings::get_singleton()->set_custom_property_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);
|
||||
ProjectSettings::get_singleton()->set_custom_property_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);
|
||||
ProjectSettings::get_singleton()->set_custom_property_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);
|
||||
ProjectSettings::get_singleton()->set_custom_property_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
|
||||
|
||||
if (use_custom_res) {
|
||||
if (!force_res) {
|
||||
window_size.width = GLOBAL_GET("display/window/size/viewport_width");
|
||||
|
|
Loading…
Reference in New Issue