Updated SettingsPanel
Removed Close button, and code associated with it, as we are switching from in-viewport Panels, to Popup Windows.
This commit is contained in:
parent
b85080be65
commit
35931783cc
2 changed files with 1 additions and 39 deletions
|
|
@ -1,12 +1,5 @@
|
||||||
extends PanelContainer
|
extends PanelContainer
|
||||||
|
|
||||||
@onready var close_panel: Button = %ClosePanel
|
|
||||||
|
|
||||||
# Called when the node enters the scene tree for the first time.
|
# Called when the node enters the scene tree for the first time.
|
||||||
func _ready() -> void:
|
func _ready() -> void:
|
||||||
close_panel.pressed.connect(_handle_close_panel)
|
pass
|
||||||
pass # Replace with function body.
|
|
||||||
|
|
||||||
func _handle_close_panel() -> void:
|
|
||||||
Globals.enable_mouse_passthrough()
|
|
||||||
queue_free()
|
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,6 @@
|
||||||
[gd_scene format=3 uid="uid://cgr17lw8rfgkx"]
|
[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="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"]
|
[ext_resource type="PackedScene" uid="uid://diloovqtdspia" path="res://UI/Controls/general_panel.tscn" id="4_tlshb"]
|
||||||
|
|
||||||
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_o0fp7"]
|
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_o0fp7"]
|
||||||
|
|
@ -22,9 +20,6 @@ corner_radius_bottom_right = 10
|
||||||
corner_radius_bottom_left = 10
|
corner_radius_bottom_left = 10
|
||||||
corner_detail = 5
|
corner_detail = 5
|
||||||
|
|
||||||
[sub_resource type="LabelSettings" id="LabelSettings_tlshb"]
|
|
||||||
font_size = 36
|
|
||||||
|
|
||||||
[node name="SettingsPanel" type="PanelContainer" unique_id=570683183]
|
[node name="SettingsPanel" type="PanelContainer" unique_id=570683183]
|
||||||
anchors_preset = 15
|
anchors_preset = 15
|
||||||
anchor_right = 1.0
|
anchor_right = 1.0
|
||||||
|
|
@ -44,32 +39,6 @@ theme_override_constants/margin_bottom = 10
|
||||||
[node name="VBoxContainer" type="VBoxContainer" parent="MarginContainer" unique_id=708843647]
|
[node name="VBoxContainer" type="VBoxContainer" parent="MarginContainer" unique_id=708843647]
|
||||||
layout_mode = 2
|
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]
|
[node name="TabContainer" type="TabContainer" parent="MarginContainer/VBoxContainer" unique_id=1871878651]
|
||||||
layout_mode = 2
|
layout_mode = 2
|
||||||
size_flags_vertical = 3
|
size_flags_vertical = 3
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue