From bcf32310ecad514fc53e0005d9b31b6dee30ffdb Mon Sep 17 00:00:00 2001 From: ChaoticByte Date: Wed, 6 Aug 2025 10:34:41 +0200 Subject: [PATCH] Add more info to the info footer in the settings menu --- scenes/settings_menu.tscn | 19 ++++++++++++------- src/ui/info_footer.gd | 4 ++++ src/ui/info_footer.gd.uid | 1 + 3 files changed, 17 insertions(+), 7 deletions(-) create mode 100644 src/ui/info_footer.gd create mode 100644 src/ui/info_footer.gd.uid diff --git a/scenes/settings_menu.tscn b/scenes/settings_menu.tscn index e59260e..7886b5e 100644 --- a/scenes/settings_menu.tscn +++ b/scenes/settings_menu.tscn @@ -1,9 +1,10 @@ -[gd_scene load_steps=10 format=3 uid="uid://dq3jysvuu7ix"] +[gd_scene load_steps=11 format=3 uid="uid://dq3jysvuu7ix"] [ext_resource type="Shader" uid="uid://da36ryj6twm16" path="res://src/shaders/panel.gdshader" id="1_cr101"] [ext_resource type="Script" uid="uid://dj4i6sfufsa0t" path="res://src/ui/settings_menu.gd" id="2_labj1"] [ext_resource type="Theme" uid="uid://06umghrsjedx" path="res://resources/main_theme_overrides.tres" id="2_lwwgp"] [ext_resource type="Texture2D" uid="uid://cbv7fmq2x6ucf" path="res://assets/icons/CloseIcon.png" id="2_wswnh"] +[ext_resource type="Script" uid="uid://ctgq6winpr3kw" path="res://src/ui/info_footer.gd" id="5_lwwgp"] [sub_resource type="ShaderMaterial" id="ShaderMaterial_choun"] shader = ExtResource("1_cr101") @@ -17,6 +18,7 @@ texture = SubResource("PlaceholderTexture2D_85g3d") font_size = 24 [sub_resource type="LabelSettings" id="LabelSettings_lwwgp"] +font_size = 14 font_color = Color(1, 1, 1, 0.768627) [node name="SettingsMenu" type="Panel"] @@ -60,23 +62,26 @@ offset_right = 92.0 offset_bottom = 96.0 text = "Reset XP" -[node name="by" type="Label" parent="."] +[node name="Info Footer" type="Label" parent="."] layout_mode = 1 anchors_preset = 3 anchor_left = 1.0 anchor_top = 1.0 anchor_right = 1.0 anchor_bottom = 1.0 -offset_left = -168.0 +offset_left = -240.0 offset_top = -24.0 -offset_right = -10.0 -offset_bottom = -8.10001 +offset_right = -16.0 +offset_bottom = -8.0 grow_horizontal = 0 grow_vertical = 0 -text = "a game by ChaoticByte" +text = "asdsadsa" label_settings = SubResource("LabelSettings_lwwgp") -horizontal_alignment = 2 +horizontal_alignment = 1 vertical_alignment = 2 +clip_text = true +text_overrun_behavior = 3 +script = ExtResource("5_lwwgp") [connection signal="pressed" from="CloseSettingsButton" to="." method="_on_close_settings_button_pressed"] [connection signal="pressed" from="ResetXPButton" to="." method="_on_reset_xp_button_pressed"] diff --git a/src/ui/info_footer.gd b/src/ui/info_footer.gd new file mode 100644 index 0000000..6c15999 --- /dev/null +++ b/src/ui/info_footer.gd @@ -0,0 +1,4 @@ +extends Label + +func _ready() -> void: + text = "Repeat After Me " + ProjectSettings.get_setting("application/config/version") + " by ChaoticByte" diff --git a/src/ui/info_footer.gd.uid b/src/ui/info_footer.gd.uid new file mode 100644 index 0000000..14417c1 --- /dev/null +++ b/src/ui/info_footer.gd.uid @@ -0,0 +1 @@ +uid://ctgq6winpr3kw