summaryrefslogtreecommitdiff
path: root/demos/misc/window_management
diff options
context:
space:
mode:
authorJuan Linietsky <reduzio@gmail.com>2015-03-23 01:34:22 -0300
committerJuan Linietsky <reduzio@gmail.com>2015-03-23 01:34:22 -0300
commita01768668943e51622444e8c95d4077ed6e10ae7 (patch)
tree446ca00e0c7774b1eb803b30549c710af4b456b1 /demos/misc/window_management
parentc68563aeb46514d35f5ae7b8006f8218c716782e (diff)
parent001a16064f886944f2746828c3b8d8be813838e5 (diff)
Merge pull request #1552 from hurikhan/wm_demo_fix
new_wm_api -- window_management-demo fix
Diffstat (limited to 'demos/misc/window_management')
-rw-r--r--demos/misc/window_management/control.gd54
-rw-r--r--demos/misc/window_management/window_management.scnbin5087 -> 5129 bytes
2 files changed, 27 insertions, 27 deletions
diff --git a/demos/misc/window_management/control.gd b/demos/misc/window_management/control.gd
index d1b8f0e71a..5eb5817619 100644
--- a/demos/misc/window_management/control.gd
+++ b/demos/misc/window_management/control.gd
@@ -5,18 +5,18 @@ func _fixed_process(delta):
var modetext = "Mode:\n"
- if(OS.is_fullscreen()):
+ if(OS.is_window_fullscreen()):
modetext += "Fullscreen\n"
else:
modetext += "Windowed\n"
- if(!OS.is_resizable()):
+ if(!OS.is_window_resizable()):
modetext += "FixedSize\n"
- if(OS.is_minimized()):
+ if(OS.is_window_minimized()):
modetext += "Minimized\n"
- if(OS.is_maximized()):
+ if(OS.is_window_maximized()):
modetext += "Maximized\n"
if(Input.get_mouse_mode() == Input.MOUSE_MODE_CAPTURED):
@@ -55,9 +55,9 @@ func _fixed_process(delta):
get_node("Label_Screen1_Position").hide()
get_node("Button_Fullscreen").set_pressed( OS.is_window_fullscreen() )
- get_node("Button_FixedSize").set_pressed( !OS.is_is_window_resizable() )
- get_node("Button_Minimized").set_pressed( OS.is_is_window_minimized() )
- get_node("Button_Maximized").set_pressed( OS.is_is_window_maximized() )
+ get_node("Button_FixedSize").set_pressed( !OS.is_window_resizable() )
+ get_node("Button_Minimized").set_pressed( OS.is_window_minimized() )
+ get_node("Button_Maximized").set_pressed( OS.is_window_maximized() )
get_node("Button_Mouse_Grab").set_pressed( Input.get_mouse_mode() == Input.MOUSE_MODE_CAPTURED )
@@ -66,11 +66,11 @@ func check_wm_api():
if( !OS.has_method("get_screen_count") ):
s += " - get_screen_count()\n"
- if( !OS.has_method("get_screen") ):
- s += " - get_screen()\n"
+ if( !OS.has_method("get_current_screen") ):
+ s += " - get_current_screen()\n"
- if( !OS.has_method("set_screen") ):
- s += " - set_screen()\n"
+ if( !OS.has_method("set_current_screen") ):
+ s += " - set_current_screen()\n"
if( !OS.has_method("get_screen_position") ):
s += " - get_screen_position()\n"
@@ -90,29 +90,29 @@ func check_wm_api():
if( !OS.has_method("set_window_size") ):
s += " - set_window_size()\n"
- if( !OS.has_method("set_fullscreen") ):
- s += " - set_fullscreen()\n"
+ if( !OS.has_method("set_window_fullscreen") ):
+ s += " - set_window_fullscreen()\n"
- if( !OS.has_method("is_fullscreen") ):
- s += " - is_fullscreen()\n"
+ if( !OS.has_method("is_window_fullscreen") ):
+ s += " - is_window_fullscreen()\n"
- if( !OS.has_method("set_resizable") ):
- s += " - set_resizable()\n"
+ if( !OS.has_method("set_window_resizable") ):
+ s += " - set_window_resizable()\n"
- if( !OS.has_method("is_resizable") ):
- s += " - is_resizable()\n"
+ if( !OS.has_method("is_window_resizable") ):
+ s += " - is_window_resizable()\n"
- if( !OS.has_method("set_minimized") ):
- s += " - set_minimized()\n"
+ if( !OS.has_method("set_window_minimized") ):
+ s += " - set_window_minimized()\n"
- if( !OS.has_method("is_minimized") ):
- s += " - is_minimized()\n"
+ if( !OS.has_method("is_window_minimized") ):
+ s += " - is_window_minimized()\n"
- if( !OS.has_method("set_maximized") ):
- s += " - set_maximized()\n"
+ if( !OS.has_method("set_window_maximized") ):
+ s += " - set_window_maximized()\n"
- if( !OS.has_method("is_maximized") ):
- s += " - is_maximized()\n"
+ if( !OS.has_method("is_window_maximized") ):
+ s += " - is_window_maximized()\n"
if( s.length() == 0 ):
return true
diff --git a/demos/misc/window_management/window_management.scn b/demos/misc/window_management/window_management.scn
index b8b0ee210b..c7d6260df6 100644
--- a/demos/misc/window_management/window_management.scn
+++ b/demos/misc/window_management/window_management.scn
Binary files differ