summaryrefslogtreecommitdiffstats
path: root/Main.gd
diff options
context:
space:
mode:
Diffstat (limited to 'Main.gd')
-rw-r--r--Main.gd2
1 files changed, 2 insertions, 0 deletions
diff --git a/Main.gd b/Main.gd
index 5e82637..432baba 100644
--- a/Main.gd
+++ b/Main.gd
@@ -17,7 +17,9 @@ func _ready():
Map.connect("hex_touched", self, "on_hex_touched")
$CanvasLayer/HBOX/ViewportContainer.connect("resized", self, "on_viewport_resized")
on_toggle()
+ yield(get_tree().create_timer(.2), 'timeout')
on_viewport_resized()
+ UI.get_node("OSInfo").text = "screen\n%s\ndpi %d" % [OS.get_screen_size(), OS.get_screen_dpi()]
func on_viewport_resized() -> void:
Camera.configure($CanvasLayer/HBOX/ViewportContainer/Viewport.size, Map.center(), Map.texture_size())