summaryrefslogtreecommitdiff
path: root/scene/main/window.cpp
diff options
context:
space:
mode:
authorHugo Locurcio <hugo.locurcio@hugo.pro>2021-09-03 14:42:37 +0200
committerGitHub <noreply@github.com>2021-09-03 14:42:37 +0200
commitb658b275b16d6abd721e03923d835f951175cfd3 (patch)
tree9b83f1ec9ce4d82ba650fa2b639b6d059df8cf4e /scene/main/window.cpp
parentd20031ccaec4c9ff50bc718cb8d79eefba0d7f11 (diff)
parent177173578a193d14de990b59520572f1faa1a828 (diff)
Merge pull request #52357 from JestemStefan/Window_wrong_parameter_type
Fixed property info by changing Window current_screen parameter from string to int
Diffstat (limited to 'scene/main/window.cpp')
-rw-r--r--scene/main/window.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/scene/main/window.cpp b/scene/main/window.cpp
index 1fcfce2ea9..ca5a3915d0 100644
--- a/scene/main/window.cpp
+++ b/scene/main/window.cpp
@@ -1497,7 +1497,7 @@ void Window::_bind_methods() {
ADD_PROPERTY(PropertyInfo(Variant::VECTOR2I, "position"), "set_position", "get_position");
ADD_PROPERTY(PropertyInfo(Variant::VECTOR2I, "size"), "set_size", "get_size");
ADD_PROPERTY(PropertyInfo(Variant::INT, "mode", PROPERTY_HINT_ENUM, "Windowed,Minimized,Maximized,Fullscreen"), "set_mode", "get_mode");
- ADD_PROPERTY(PropertyInfo(Variant::STRING, "current_screen"), "set_current_screen", "get_current_screen");
+ ADD_PROPERTY(PropertyInfo(Variant::INT, "current_screen"), "set_current_screen", "get_current_screen");
ADD_GROUP("Flags", "");
ADD_PROPERTY(PropertyInfo(Variant::BOOL, "visible"), "set_visible", "is_visible");