Tokyo Clock

This commit is contained in:
Page Asgardius 2024-09-07 15:56:32 -07:00
parent 4cd9cd4925
commit f399107c5c
2 changed files with 11 additions and 1 deletions

View file

@ -52,9 +52,11 @@ var cboss
var nboss
var boss
var bossbg
var ctime
# Called when the node enters the scene tree for the first time.
func _ready():
ctime = $CanvasLayer/Time
topleft = $CanvasLayer/Topleft
topleftbg = $CanvasLayer/Topleftbg
topmini = $CanvasLayer/Topmini
@ -130,6 +132,8 @@ func _ready():
# Called every frame. 'delta' is the elapsed time since the previous frame.
func _process(delta):
_charrefresh()
ctime.set_text(Time.get_time_string_from_system(false).erase(5, 3))
if Global.debug:
chealthf.set_text(str(Global.dstats[Global.dparty[Global.dcpchar][0]][0])+"/"+str(Global.mstats[Global.dparty[Global.dcpchar][0]][0]))
cstaminaf.set_text(str(Global.dstats[Global.dparty[Global.dcpchar][0]][1])+"/"+str(Global.mstats[Global.dparty[Global.dcpchar][0]][1]))
@ -163,7 +167,7 @@ func _input(event):
elif Input.is_action_just_released("schar"):
topleft.visible = false
topleftbg.visible = false
_charrefresh()
#_charrefresh()
func _charrefresh():
if topleft.visible:
if Global.debug:

View file

@ -535,3 +535,9 @@ horizontal_alignment = 2
[node name="ColorRect2" type="ColorRect" parent="CanvasLayer/Topleft/Character4"]
custom_minimum_size = Vector2(12, 64)
layout_mode = 2
[node name="Time" type="Label" parent="CanvasLayer"]
offset_right = 40.0
offset_bottom = 23.0
theme_override_font_sizes/font_size = 100
text = "08:00"