Created Settings Panel to be displayed

Created settings panel for UI interface.
This commit is contained in:
Mario Steele 2026-02-27 16:17:09 -06:00
parent 5455ad5071
commit 785a3922a7
3 changed files with 102 additions and 0 deletions

12
UI/settings_panel.gd Normal file
View file

@ -0,0 +1,12 @@
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()

1
UI/settings_panel.gd.uid Normal file
View file

@ -0,0 +1 @@
uid://dotqpotld2j34

89
UI/settings_panel.tscn Normal file
View file

@ -0,0 +1,89 @@
[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"]
content_margin_left = 0.0
content_margin_top = 0.0
content_margin_right = 0.0
content_margin_bottom = 0.0
bg_color = Color(0.1, 0.1, 0.1, 0.6)
border_width_left = 4
border_width_top = 4
border_width_right = 4
border_width_bottom = 4
border_color = Color(0.18497416, 0.5543967, 0.8036863, 1)
corner_radius_top_left = 10
corner_radius_top_right = 10
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
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
theme_override_styles/panel = SubResource("StyleBoxFlat_o0fp7")
script = ExtResource("1_3whce")
[node name="MarginContainer" type="MarginContainer" parent="." unique_id=1895715421]
layout_mode = 2
theme_override_constants/margin_left = 10
theme_override_constants/margin_top = 10
theme_override_constants/margin_right = 10
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
current_tab = 0
[node name="General" parent="MarginContainer/VBoxContainer/TabContainer" unique_id=1071328377 instance=ExtResource("4_tlshb")]
layout_mode = 2
[node name="Users" type="PanelContainer" parent="MarginContainer/VBoxContainer/TabContainer" unique_id=244819974]
visible = false
layout_mode = 2
metadata/_tab_index = 1
[node name="Chat Avatars" type="PanelContainer" parent="MarginContainer/VBoxContainer/TabContainer" unique_id=429108220]
visible = false
layout_mode = 2
metadata/_tab_index = 2