diff options
author | hurikhan <m4r10.5ch14ck@gmail.com> | 2015-01-13 17:25:50 +0800 |
---|---|---|
committer | hurikhan <m4r10.5ch14ck@gmail.com> | 2015-01-13 17:25:50 +0800 |
commit | ce7c7a862ebe37fada7708c342c07d70fa80465a (patch) | |
tree | c2cf4799ae9cf9351b1e4f7d15249ddbf4dbd95d /demos/misc/window_management | |
parent | 1445b6806b8a359594b1789726aa87d64b279286 (diff) |
get_screen_position() added
Diffstat (limited to 'demos/misc/window_management')
-rw-r--r-- | demos/misc/window_management/control.gd | 11 | ||||
-rw-r--r-- | demos/misc/window_management/window_management.scn | bin | 3276 -> 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 Binary files differindex 6eaf62ff9f..3a6426f3ee 100644 --- a/demos/misc/window_management/window_management.scn +++ b/demos/misc/window_management/window_management.scn |