Moving files pre-refactor

This commit is contained in:
2025-08-03 21:10:58 -05:00
parent 29ebb68215
commit e0dd14c460
527 changed files with 3337 additions and 3093 deletions

18
ui/pause/PauseMain.gd Normal file
View File

@@ -0,0 +1,18 @@
class_name PauseMain extends VBoxContainer
func _ready() -> void:
visible = false
$HBoxContainer/ItemList.item_selected.connect(onItemSelected)
func open():
visible = true
$HBoxContainer/ItemList.clear()
func close():
visible = false
func isOpen() -> bool:
return visible
func onItemSelected(index:int) -> void:
print("Selected item index: ", index)

View File

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

52
ui/pause/PauseMain.tscn Normal file
View File

@@ -0,0 +1,52 @@
[gd_scene load_steps=2 format=3 uid="uid://bt0okj2rie8qf"]
[ext_resource type="Script" uid="uid://c7kvg0jw6w340" path="res://ui/pause/PauseMain.gd" id="1_b5xfl"]
[node name="PauseMain" type="VBoxContainer"]
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
script = ExtResource("1_b5xfl")
metadata/_custom_type_script = "uid://c7kvg0jw6w340"
[node name="HBoxContainer" type="HBoxContainer" parent="."]
layout_mode = 2
size_flags_vertical = 3
[node name="PanelContainer" type="PanelContainer" parent="HBoxContainer"]
layout_mode = 2
size_flags_horizontal = 3
[node name="ItemList" type="ItemList" parent="HBoxContainer"]
layout_mode = 2
auto_width = true
item_count = 6
item_0/text = "Equpiment"
item_1/text = "Abilities"
item_2/text = "Items"
item_3/text = "Quests"
item_4/text = "Settings"
item_5/text = "Save"
[node name="HBoxContainer2" type="HBoxContainer" parent="."]
layout_mode = 2
[node name="PanelContainer" type="PanelContainer" parent="HBoxContainer2"]
layout_mode = 2
size_flags_horizontal = 3
[node name="HBoxContainer" type="GridContainer" parent="HBoxContainer2/PanelContainer"]
layout_mode = 2
size_flags_horizontal = 8
theme_override_constants/h_separation = 8
columns = 2
[node name="Money" type="Label" parent="HBoxContainer2/PanelContainer/HBoxContainer"]
layout_mode = 2
text = "%MONEY%"
[node name="Playtime" type="Label" parent="HBoxContainer2/PanelContainer/HBoxContainer"]
layout_mode = 2
text = "%PLAYTIME%"

19
ui/pause/PauseMenu.gd Normal file
View File

@@ -0,0 +1,19 @@
class_name PauseMenu extends Control
@export var MAIN:PauseMain
@export var SETTINGS:PauseSettings
func _ready() -> void:
close()
func isOpen() -> bool:
return visible
func open() -> void:
visible = true
MAIN.open()
func close() -> void:
visible = false
MAIN.close()
SETTINGS.close()

View File

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

22
ui/pause/PauseMenu.tscn Normal file
View File

@@ -0,0 +1,22 @@
[gd_scene load_steps=4 format=3 uid="uid://c0i5e2dj11d8c"]
[ext_resource type="PackedScene" uid="uid://bt0okj2rie8qf" path="res://ui/pause/PauseMain.tscn" id="1_33nyv"]
[ext_resource type="Script" uid="uid://cgvf34t5qgwbm" path="res://ui/pause/PauseMenu.gd" id="1_82qxy"]
[ext_resource type="PackedScene" uid="uid://qgk5trrh6dfd" path="res://ui/pause/PauseSettings.tscn" id="2_3djnw"]
[node name="PauseMenu" type="Control" node_paths=PackedStringArray("MAIN", "SETTINGS")]
layout_mode = 3
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
script = ExtResource("1_82qxy")
MAIN = NodePath("PauseMain")
SETTINGS = NodePath("PauseSettings")
[node name="PauseSettings" parent="." instance=ExtResource("2_3djnw")]
layout_mode = 1
[node name="PauseMain" parent="." instance=ExtResource("1_33nyv")]
layout_mode = 1

10
ui/pause/PauseSettings.gd Normal file
View File

@@ -0,0 +1,10 @@
class_name PauseSettings extends Control
func open() -> void:
visible = true
func close() -> void:
visible = false
func isOpen() -> bool:
return visible

View File

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

View File

@@ -0,0 +1,24 @@
[gd_scene load_steps=3 format=3 uid="uid://qgk5trrh6dfd"]
[ext_resource type="Script" uid="uid://ba4ehmcr8tl1e" path="res://ui/pause/PauseSettings.gd" id="1_ln7xx"]
[ext_resource type="PackedScene" uid="uid://d3f31lli1ahts" path="res://ui/settings/SettingsMenu.tscn" id="2_jocxh"]
[node name="PauseSettings" type="Control"]
layout_mode = 3
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
script = ExtResource("1_ln7xx")
[node name="Panel" type="Panel" parent="."]
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
[node name="SettingsMenu" parent="Panel" instance=ExtResource("2_jocxh")]
layout_mode = 1