From 35931783ccfcee7210fc3f640a9227f101d3fa2d Mon Sep 17 00:00:00 2001 From: Mario Steele Date: Sat, 28 Feb 2026 02:41:00 -0600 Subject: [PATCH] Updated SettingsPanel Removed Close button, and code associated with it, as we are switching from in-viewport Panels, to Popup Windows. --- UI/settings_panel.gd | 9 +-------- UI/settings_panel.tscn | 31 ------------------------------- 2 files changed, 1 insertion(+), 39 deletions(-) diff --git a/UI/settings_panel.gd b/UI/settings_panel.gd index f582cfba..e8b64085 100644 --- a/UI/settings_panel.gd +++ b/UI/settings_panel.gd @@ -1,12 +1,5 @@ extends PanelContainer -@onready var close_panel: Button = %ClosePanel - # Called when the node enters the scene tree for the first time. func _ready() -> void: - close_panel.pressed.connect(_handle_close_panel) - pass # Replace with function body. - -func _handle_close_panel() -> void: - Globals.enable_mouse_passthrough() - queue_free() + pass diff --git a/UI/settings_panel.tscn b/UI/settings_panel.tscn index 53ce99c2..b18195a3 100644 --- a/UI/settings_panel.tscn +++ b/UI/settings_panel.tscn @@ -1,8 +1,6 @@ [gd_scene format=3 uid="uid://cgr17lw8rfgkx"] [ext_resource type="Script" uid="uid://dotqpotld2j34" path="res://UI/settings_panel.gd" id="1_3whce"] -[ext_resource type="Texture2D" uid="uid://bdil2rqv4x61g" path="res://UI/assets/godot.png" id="1_dnyqv"] -[ext_resource type="Texture2D" uid="uid://dqmnkxb16wy1w" path="res://UI/assets/bootstrap/x.svg" id="2_3whce"] [ext_resource type="PackedScene" uid="uid://diloovqtdspia" path="res://UI/Controls/general_panel.tscn" id="4_tlshb"] [sub_resource type="StyleBoxFlat" id="StyleBoxFlat_o0fp7"] @@ -22,9 +20,6 @@ corner_radius_bottom_right = 10 corner_radius_bottom_left = 10 corner_detail = 5 -[sub_resource type="LabelSettings" id="LabelSettings_tlshb"] -font_size = 36 - [node name="SettingsPanel" type="PanelContainer" unique_id=570683183] anchors_preset = 15 anchor_right = 1.0 @@ -44,32 +39,6 @@ theme_override_constants/margin_bottom = 10 [node name="VBoxContainer" type="VBoxContainer" parent="MarginContainer" unique_id=708843647] layout_mode = 2 -[node name="Title" type="HBoxContainer" parent="MarginContainer/VBoxContainer" unique_id=1913522025] -layout_mode = 2 -alignment = 1 - -[node name="Control" type="Control" parent="MarginContainer/VBoxContainer/Title" unique_id=1306755496] -layout_mode = 2 -size_flags_horizontal = 3 - -[node name="TextureRect" type="TextureRect" parent="MarginContainer/VBoxContainer/Title" unique_id=1634370176] -custom_minimum_size = Vector2(48, 48) -layout_mode = 2 -texture = ExtResource("1_dnyqv") -expand_mode = 1 -stretch_mode = 5 - -[node name="Label" type="Label" parent="MarginContainer/VBoxContainer/Title" unique_id=844246712] -layout_mode = 2 -text = "Settings" -label_settings = SubResource("LabelSettings_tlshb") - -[node name="ClosePanel" type="Button" parent="MarginContainer/VBoxContainer/Title" unique_id=647318012] -unique_name_in_owner = true -layout_mode = 2 -size_flags_horizontal = 10 -icon = ExtResource("2_3whce") - [node name="TabContainer" type="TabContainer" parent="MarginContainer/VBoxContainer" unique_id=1871878651] layout_mode = 2 size_flags_vertical = 3