Refactor code structure for improved readability and maintainability
This commit is contained in:
+16
-8
@@ -49,6 +49,9 @@
|
||||
script = ExtResource("1_ifjjt")
|
||||
STARRY_SKY_LAYER = ExtResource("2_behgl")
|
||||
|
||||
[node name="Timer" type="Timer" parent="Background" unique_id=188844703]
|
||||
autostart = true
|
||||
|
||||
[node name="Stage" type="Control" parent="." unique_id=1485959841]
|
||||
custom_minimum_size = Vector2(1080, 1920)
|
||||
layout_mode = 3
|
||||
@@ -214,7 +217,7 @@ layout_mode = 2
|
||||
layout_mode = 2
|
||||
|
||||
[node name="Description" type="RichTextLabel" parent="Stage/StageRows/PageScroller/HBoxContainer/ForcePage" unique_id=1934400572]
|
||||
custom_minimum_size = Vector2(0, 670)
|
||||
custom_minimum_size = Vector2(0, 384)
|
||||
layout_mode = 2
|
||||
size_flags_vertical = 3
|
||||
theme_override_fonts/normal_font = ExtResource("14_o7xkw")
|
||||
@@ -227,8 +230,6 @@ theme_override_font_sizes/bold_italics_font_size = 42
|
||||
theme_override_font_sizes/italics_font_size = 42
|
||||
theme_override_font_sizes/mono_font_size = 42
|
||||
bbcode_enabled = true
|
||||
text = "Forces"
|
||||
fit_content = true
|
||||
horizontal_alignment = 1
|
||||
|
||||
[node name="Border" parent="Stage/StageRows/PageScroller/HBoxContainer/ForcePage" unique_id=519355296 instance=ExtResource("12_58wjt")]
|
||||
@@ -350,7 +351,7 @@ texture = ExtResource("23_bcq5b")
|
||||
layout_mode = 2
|
||||
|
||||
[node name="Description" type="RichTextLabel" parent="Stage/StageRows/PageScroller/HBoxContainer/ResourcePage" unique_id=1171833]
|
||||
custom_minimum_size = Vector2(0, 670)
|
||||
custom_minimum_size = Vector2(0, 384)
|
||||
layout_mode = 2
|
||||
size_flags_vertical = 3
|
||||
theme_override_fonts/normal_font = ExtResource("14_o7xkw")
|
||||
@@ -363,7 +364,6 @@ theme_override_font_sizes/bold_italics_font_size = 42
|
||||
theme_override_font_sizes/italics_font_size = 42
|
||||
theme_override_font_sizes/mono_font_size = 42
|
||||
bbcode_enabled = true
|
||||
fit_content = true
|
||||
horizontal_alignment = 1
|
||||
|
||||
[node name="Border" parent="Stage/StageRows/PageScroller/HBoxContainer/ResourcePage" unique_id=1268799323 instance=ExtResource("12_58wjt")]
|
||||
@@ -470,7 +470,7 @@ texture = ExtResource("28_upe80")
|
||||
layout_mode = 2
|
||||
|
||||
[node name="Description" type="RichTextLabel" parent="Stage/StageRows/PageScroller/HBoxContainer/StarPage" unique_id=1195874488]
|
||||
custom_minimum_size = Vector2(0, 670)
|
||||
custom_minimum_size = Vector2(0, 384)
|
||||
layout_mode = 2
|
||||
size_flags_vertical = 3
|
||||
theme_override_fonts/normal_font = ExtResource("14_o7xkw")
|
||||
@@ -604,7 +604,7 @@ texture = ExtResource("23_bcq5b")
|
||||
layout_mode = 2
|
||||
|
||||
[node name="Description" type="RichTextLabel" parent="Stage/StageRows/PageScroller/HBoxContainer/StructurePage" unique_id=414749774]
|
||||
custom_minimum_size = Vector2(0, 670)
|
||||
custom_minimum_size = Vector2(0, 384)
|
||||
layout_mode = 2
|
||||
size_flags_vertical = 3
|
||||
theme_override_fonts/normal_font = ExtResource("14_o7xkw")
|
||||
@@ -745,7 +745,7 @@ texture = ExtResource("41_mi6gc")
|
||||
layout_mode = 2
|
||||
|
||||
[node name="Description" type="RichTextLabel" parent="Stage/StageRows/PageScroller/HBoxContainer/LifePage" unique_id=454792539]
|
||||
custom_minimum_size = Vector2(0, 670)
|
||||
custom_minimum_size = Vector2(0, 384)
|
||||
layout_mode = 2
|
||||
size_flags_vertical = 3
|
||||
theme_override_fonts/normal_font = ExtResource("14_o7xkw")
|
||||
@@ -822,6 +822,13 @@ offset_top = 512.0
|
||||
offset_right = 1080.0
|
||||
offset_bottom = 1024.0
|
||||
|
||||
[node name="Border" parent="Stage/StageRows" unique_id=145801370 instance=ExtResource("12_58wjt")]
|
||||
layout_mode = 2
|
||||
|
||||
[node name="HBoxContainer" type="HBoxContainer" parent="Stage/StageRows" unique_id=1880020851]
|
||||
custom_minimum_size = Vector2(0, 184)
|
||||
layout_mode = 2
|
||||
|
||||
[node name="ItemAmountUpdate" type="Timer" parent="Stage" unique_id=1953928024]
|
||||
wait_time = 0.2
|
||||
autostart = true
|
||||
@@ -829,6 +836,7 @@ autostart = true
|
||||
[node name="CommandProcessor" type="Node" parent="." unique_id=2069361293]
|
||||
script = ExtResource("42_1s1fv")
|
||||
|
||||
[connection signal="timeout" from="Background/Timer" to="Background" method="randomize_parallax"]
|
||||
[connection signal="pressed" from="Stage/StageRows/TopMenu/BurgerButton" to="Stage" method="_on_topmenu_button_pressed" binds= ["Burger"]]
|
||||
[connection signal="pressed" from="Stage/StageRows/TopMenu/TimeMinus" to="Stage" method="_change_speed" binds= [-1]]
|
||||
[connection signal="pressed" from="Stage/StageRows/TopMenu/TimePlus" to="Stage" method="_change_speed" binds= [1]]
|
||||
|
||||
Reference in New Issue
Block a user