initial commit, hope i didnt push any keys :P
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
extends CenterContainer
|
||||
|
||||
|
||||
func _ready():
|
||||
_on_Timer_timeout()
|
||||
|
||||
|
||||
func _on_Timer_timeout():
|
||||
$time_display.set_moment(Constants.current_moment())
|
||||
print("ding")
|
||||
@@ -0,0 +1,21 @@
|
||||
[gd_scene load_steps=3 format=2]
|
||||
|
||||
[ext_resource path="res://scenes/time_display/time_display.tscn" type="PackedScene" id=1]
|
||||
[ext_resource path="res://scenes/debug/current_time/current_time.gd" type="Script" id=2]
|
||||
|
||||
[node name="Control" type="CenterContainer"]
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
script = ExtResource( 2 )
|
||||
|
||||
[node name="time_display" parent="." instance=ExtResource( 1 )]
|
||||
margin_left = 395.0
|
||||
margin_top = 255.0
|
||||
margin_right = 629.0
|
||||
margin_bottom = 344.0
|
||||
|
||||
[node name="Timer" type="Timer" parent="."]
|
||||
wait_time = 30.0
|
||||
autostart = true
|
||||
|
||||
[connection signal="timeout" from="Timer" to="." method="_on_Timer_timeout"]
|
||||
Reference in New Issue
Block a user