Poprawka TimeDisplay

This commit is contained in:
Tomasz Boruc 2025-10-25 20:52:50 +02:00
parent 1020d96c00
commit c2bd684782
3 changed files with 14 additions and 6 deletions

View File

@ -13,6 +13,7 @@ script = ExtResource("1_l8itw")
position = Vector2(572.00006, 328.5)
[node name="PlanetStatPanel" type="Panel" parent="."]
visible = false
offset_right = 320.0
offset_bottom = 512.0

View File

@ -1,7 +1,8 @@
[gd_scene load_steps=3 format=3 uid="uid://bbgymc0drqpbx"]
[gd_scene load_steps=4 format=3 uid="uid://bbgymc0drqpbx"]
[ext_resource type="Script" uid="uid://hustgmwvdd3e" path="res://scripts/time_label.gd" id="1_3uj10"]
[ext_resource type="FontFile" uid="uid://8sj6q1y0q32u" path="res://assets/fonts/redlinecondital.ttf" id="2_qjjb1"]
[ext_resource type="FontFile" uid="uid://drp85tpfncq5m" path="res://assets/fonts/font2.ttf" id="3_aosp1"]
[node name="TimeDisplay" type="Control"]
layout_mode = 3
@ -27,8 +28,10 @@ offset_top = 2.0
offset_right = 32.0
offset_bottom = 24.0
scale = Vector2(0.5, 0.5)
theme_override_font_sizes/font_size = 10
text = "||"
theme_override_colors/font_color = Color(0.80287457, 0.40096578, 0.15050122, 1)
theme_override_fonts/font = ExtResource("3_aosp1")
theme_override_font_sizes/font_size = 16
text = "II"
[node name="faster" type="Button" parent="."]
layout_mode = 0
@ -37,7 +40,9 @@ offset_top = 2.0
offset_right = 41.0
offset_bottom = 24.0
scale = Vector2(0.5, 0.5)
theme_override_font_sizes/font_size = 10
theme_override_colors/font_color = Color(0.80287457, 0.40096578, 0.15050122, 1)
theme_override_fonts/font = ExtResource("3_aosp1")
theme_override_font_sizes/font_size = 16
text = ">"
[node name="slower" type="Button" parent="."]
@ -47,5 +52,7 @@ offset_top = 2.0
offset_right = 20.0
offset_bottom = 24.0
scale = Vector2(0.5, 0.5)
theme_override_font_sizes/font_size = 10
theme_override_colors/font_color = Color(0.80287457, 0.40096578, 0.15050122, 1)
theme_override_fonts/font = ExtResource("3_aosp1")
theme_override_font_sizes/font_size = 16
text = "<"

View File

@ -17,7 +17,7 @@ func _process(delta):
var dzien_cykliczny: int
if day_of_year == 0:
dzien_cykliczny = 365
dzien_cykliczny = 0
if total_days > 0:
numer_roku -= 1
else: