summaryrefslogtreecommitdiff
path: root/demos/misc/window_management
diff options
context:
space:
mode:
authorhurikhan <m4r10.5ch14ck@gmail.com>2015-01-13 17:25:50 +0800
committerhurikhan <m4r10.5ch14ck@gmail.com>2015-01-13 17:25:50 +0800
commitce7c7a862ebe37fada7708c342c07d70fa80465a (patch)
treec2cf4799ae9cf9351b1e4f7d15249ddbf4dbd95d /demos/misc/window_management
parent1445b6806b8a359594b1789726aa87d64b279286 (diff)
get_screen_position() added
Diffstat (limited to 'demos/misc/window_management')
-rw-r--r--demos/misc/window_management/control.gd11
-rw-r--r--demos/misc/window_management/window_management.scnbin3276 -> 3582 bytes
2 files changed, 8 insertions, 3 deletions
diff --git a/demos/misc/window_management/control.gd b/demos/misc/window_management/control.gd
index 3e74f24e42..ad15a74731 100644
--- a/demos/misc/window_management/control.gd
+++ b/demos/misc/window_management/control.gd
@@ -15,11 +15,16 @@ func _fixed_process(delta):
get_node("Label_Screen0_Resolution").set_text( str("Screen0 Resolution:\n", OS.get_screen_size() ) )
+ get_node("Label_Screen0_Position").set_text(str("Screen0 Position:\n",OS.get_screen_position()))
+
if(OS.get_screen_count() > 1):
get_node("Label_Screen1_Resolution").show()
- get_node("Label_Screen1_Resolution").set_text( str("Screen0 Resolution:\n", OS.get_screen_size(1) ) )
-
-
+ get_node("Label_Screen1_Resolution").set_text( str("Screen1 Resolution:\n", OS.get_screen_size(1) ) )
+ get_node("Label_Screen1_Position").show()
+ get_node("Label_Screen1_Position").set_text( str("Screen1 Position:\n", OS.get_screen_size(1) ) )
+ else:
+ get_node("Label_Screen1_Resolution").hide()
+ get_node("Label_Screen1_Position").hide()
func _ready():
set_fixed_process(true)
diff --git a/demos/misc/window_management/window_management.scn b/demos/misc/window_management/window_management.scn
index 6eaf62ff9f..3a6426f3ee 100644
--- a/demos/misc/window_management/window_management.scn
+++ b/demos/misc/window_management/window_management.scn
Binary files differ