From 7f455ceada87be705676ec1f0f8d69787c7796c9 Mon Sep 17 00:00:00 2001 From: Anish Mishra Date: Tue, 4 Feb 2025 18:39:21 +0530 Subject: [PATCH] Fix AboutMenu --- app_info.json | 4 ++-- project.godot | 2 +- src/autoload/HandlerGUI.gd | 1 - src/ui_parts/about_menu.gd | 2 +- src/ui_parts/about_menu.tscn | 20 +++++++------------- 5 files changed, 11 insertions(+), 18 deletions(-) diff --git a/app_info.json b/app_info.json index 7e6beeb..ff882b7 100644 --- a/app_info.json +++ b/app_info.json @@ -1,6 +1,6 @@ { - "project_founder_and_manager": [], - "authors": [], + "project_founder_and_manager": ["Anish Mishra"], + "authors": ["Anish Mishra (syntaxerror247)"], "donors": [], "anonymous_donors": 0, "golden_donors": [], diff --git a/project.godot b/project.godot index 458e72e..5005a68 100644 --- a/project.godot +++ b/project.godot @@ -12,7 +12,7 @@ config_version=5 config/name="GodSVG Mobile" config/version="1.0-alpha7" -config/tags=PackedStringArray("project") +config/tags=PackedStringArray("application", "mobile", "project") run/main_scene="uid://bihwwoedqcyo8" config/use_custom_user_dir=true config/features=PackedStringArray("4.4") diff --git a/src/autoload/HandlerGUI.gd b/src/autoload/HandlerGUI.gd index 64f4309..50d32e6 100644 --- a/src/autoload/HandlerGUI.gd +++ b/src/autoload/HandlerGUI.gd @@ -68,7 +68,6 @@ func _add_control(new_control: Control) -> void: menu_stack.append(overlay_ref) get_tree().root.add_child(overlay_ref) overlay_ref.add_child(new_control) - new_control.set_anchors_and_offsets_preset(Control.PRESET_FULL_RECT) new_control.tree_exiting.connect(_remove_control.bind(overlay_ref)) func _remove_control(overlay_ref: ColorRect = null) -> void: diff --git a/src/ui_parts/about_menu.gd b/src/ui_parts/about_menu.gd index c425b99..ead84b4 100644 --- a/src/ui_parts/about_menu.gd +++ b/src/ui_parts/about_menu.gd @@ -21,7 +21,7 @@ const app_info_json = preload("res://app_info.json") func _ready() -> void: var app_info: Dictionary = app_info_json.data - version_label.text = "GodSVG v" + ProjectSettings.get_setting("application/config/version") + version_label.text = "GodSVG-Mobile v" + ProjectSettings.get_setting("application/config/version") project_founder_list.items = app_info.project_founder_and_manager project_founder_list.setup() authors_list.items = app_info.authors diff --git a/src/ui_parts/about_menu.tscn b/src/ui_parts/about_menu.tscn index db5ee43..3cef0e4 100644 --- a/src/ui_parts/about_menu.tscn +++ b/src/ui_parts/about_menu.tscn @@ -5,7 +5,7 @@ [ext_resource type="FontFile" uid="uid://depydd16jq777" path="res://assets/fonts/FontMono.ttf" id="3_e8i1t"] [ext_resource type="FontFile" uid="uid://dc0w4sx0h0fui" path="res://assets/fonts/FontBold.ttf" id="4_n6gp0"] [ext_resource type="Texture2D" uid="uid://cgxpm1e3v0i3v" path="res://assets/icons/Link.svg" id="6_hbk78"] -[ext_resource type="Script" uid="uid://ci44864moadn" path="res://src/ui_widgets/GridDrawingControl.gd" id="7_nvctb"] +[ext_resource type="Script" uid="uid://d1wnuyd66tafu" path="res://src/ui_widgets/GridDrawingControl.gd" id="7_nvctb"] [sub_resource type="StyleBoxFlat" id="StyleBoxFlat_jtvwe"] content_margin_left = 6.0 @@ -20,16 +20,9 @@ border_width_bottom = 1 border_color = Color(0.301961, 0.301961, 0.4, 1) [node name="AboutMenu" type="PanelContainer"] -custom_minimum_size = Vector2(512, 408) -anchors_preset = 8 -anchor_left = 0.5 -anchor_top = 0.5 -anchor_right = 0.5 -anchor_bottom = 0.5 -offset_left = -2.0 -offset_top = -2.0 -offset_right = 2.0 -offset_bottom = 2.0 +anchors_preset = 15 +anchor_right = 1.0 +anchor_bottom = 1.0 grow_horizontal = 2 grow_vertical = 2 theme_type_variation = &"OverlayPanel" @@ -61,7 +54,8 @@ theme_override_font_sizes/font_size = 16 layout_mode = 2 theme_override_constants/line_spacing = 0 theme_override_font_sizes/font_size = 12 -text = "© 2023 MewPurPur +text = "© 2025 Anish Mishra +© 2023 MewPurPur © 2023-present GodSVG contributors" [node name="TabContainer" type="TabContainer" parent="VBoxContainer"] @@ -110,7 +104,6 @@ horizontal_alignment = 1 layout_mode = 2 theme_override_constants/h_separation = -1 theme_override_constants/v_separation = -1 -columns = 2 script = ExtResource("7_nvctb") stylebox = SubResource("StyleBoxFlat_jtvwe") @@ -257,6 +250,7 @@ theme_override_fonts/font = ExtResource("3_e8i1t") theme_override_font_sizes/font_size = 10 text = "MIT License +Copyright (c) 2025 Anish Mishra Copyright (c) 2023 MewPurPur Copyright (c) 2023-present GodSVG contributors