2024-09-14 12:45:42 +02:00
|
|
|
[gd_scene load_steps=33 format=3 uid="uid://c73t0nbuqp68e"]
|
2024-09-08 14:00:02 +02:00
|
|
|
|
2024-09-08 14:03:38 +02:00
|
|
|
[ext_resource type="Script" path="res://root_ui.gd" id="1_7fnkg"]
|
|
|
|
[ext_resource type="PackedScene" uid="uid://bo788o53t4rbq" path="res://scenes/startup_scene.tscn" id="2_1untt"]
|
|
|
|
[ext_resource type="PackedScene" uid="uid://cqie4cy0uy1t0" path="res://scenes/game.tscn" id="3_w1gpn"]
|
2024-09-14 12:45:42 +02:00
|
|
|
[ext_resource type="Texture2D" uid="uid://bnwqllx51sdg2" path="res://assets/3rdparty/kenney/ui-pack-rpg-expansion/PNG/buttonLong_grey.png" id="4_3iys8"]
|
2024-09-08 14:03:38 +02:00
|
|
|
[ext_resource type="Script" path="res://game_ui.gd" id="5_jkbjp"]
|
2024-09-14 12:45:42 +02:00
|
|
|
[ext_resource type="StyleBox" uid="uid://bh2a2lhk5hwi1" path="res://ui/ui_theme_panel_style.tres" id="5_o771r"]
|
|
|
|
[ext_resource type="Texture2D" uid="uid://b4quo8qstm60p" path="res://assets/3rdparty/kenney/ui-pack-rpg-expansion/PNG/panelInset_blue.png" id="6_tso5a"]
|
2024-09-08 14:03:38 +02:00
|
|
|
[ext_resource type="Script" path="res://ui/inventory_dialog.gd" id="6_y58iw"]
|
2024-09-14 12:45:42 +02:00
|
|
|
[ext_resource type="FontFile" uid="uid://cjxqdamvrjlij" path="res://assets/fonts/upheaval/upheavtt.ttf" id="7_mj4qa"]
|
2024-09-08 14:03:38 +02:00
|
|
|
[ext_resource type="PackedScene" uid="uid://dp3fi0g53qrt2" path="res://ui/item_slot.tscn" id="7_pv315"]
|
|
|
|
[ext_resource type="PackedScene" uid="uid://bwui4acukq4x6" path="res://ui/ItemGrid.tscn" id="8_anyub"]
|
|
|
|
[ext_resource type="Script" path="res://ui/game_menu_ui.gd" id="9_g2mav"]
|
|
|
|
[ext_resource type="Script" path="res://ui/item_grid.gd" id="10_5ufsm"]
|
2024-09-14 12:45:42 +02:00
|
|
|
[ext_resource type="Texture2D" uid="uid://57o4ow08ky5q" path="res://assets/3rdparty/kenney/ui-pack-rpg-expansion/PNG/buttonSquare_blue_pressed.png" id="10_rpger"]
|
|
|
|
[ext_resource type="Texture2D" uid="uid://beaqo323661rh" path="res://assets/3rdparty/kenney/ui-pack-rpg-expansion/PNG/panel_blue.png" id="11_jrvnp"]
|
|
|
|
[ext_resource type="Texture2D" uid="uid://bi6q381bmdonq" path="res://assets/3rdparty/kenney/ui-pack-rpg-expansion/PNG/buttonSquare_grey.png" id="12_033wf"]
|
|
|
|
|
|
|
|
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_1ume3"]
|
|
|
|
content_margin_left = 4.0
|
|
|
|
content_margin_top = 4.0
|
|
|
|
content_margin_right = 4.0
|
|
|
|
content_margin_bottom = 4.0
|
|
|
|
bg_color = Color(0.1, 0.1, 0.1, 0.3)
|
|
|
|
corner_radius_top_left = 3
|
|
|
|
corner_radius_top_right = 3
|
|
|
|
corner_radius_bottom_right = 3
|
|
|
|
corner_radius_bottom_left = 3
|
|
|
|
corner_detail = 5
|
|
|
|
|
|
|
|
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_rm8a3"]
|
|
|
|
content_margin_left = 4.0
|
|
|
|
content_margin_top = 4.0
|
|
|
|
content_margin_right = 4.0
|
|
|
|
content_margin_bottom = 4.0
|
|
|
|
bg_color = Color(1, 1, 1, 0.75)
|
|
|
|
draw_center = false
|
|
|
|
border_width_left = 2
|
|
|
|
border_width_top = 2
|
|
|
|
border_width_right = 2
|
|
|
|
border_width_bottom = 2
|
|
|
|
corner_radius_top_left = 3
|
|
|
|
corner_radius_top_right = 3
|
|
|
|
corner_radius_bottom_right = 3
|
|
|
|
corner_radius_bottom_left = 3
|
|
|
|
corner_detail = 5
|
|
|
|
expand_margin_left = 2.0
|
|
|
|
expand_margin_top = 2.0
|
|
|
|
expand_margin_right = 2.0
|
|
|
|
expand_margin_bottom = 2.0
|
|
|
|
|
|
|
|
[sub_resource type="StyleBoxTexture" id="StyleBoxTexture_a84rd"]
|
|
|
|
texture = ExtResource("4_3iys8")
|
|
|
|
texture_margin_left = 8.0
|
|
|
|
texture_margin_top = 8.0
|
|
|
|
texture_margin_right = 8.0
|
|
|
|
texture_margin_bottom = 8.0
|
|
|
|
modulate_color = Color(0.621524, 0.621524, 0.621524, 1)
|
|
|
|
|
|
|
|
[sub_resource type="StyleBoxTexture" id="StyleBoxTexture_votra"]
|
|
|
|
texture = ExtResource("4_3iys8")
|
|
|
|
texture_margin_left = 8.0
|
|
|
|
texture_margin_top = 8.0
|
|
|
|
texture_margin_right = 8.0
|
|
|
|
texture_margin_bottom = 8.0
|
|
|
|
axis_stretch_horizontal = 2
|
|
|
|
axis_stretch_vertical = 2
|
|
|
|
modulate_color = Color(0.509286, 0.509286, 0.509286, 1)
|
|
|
|
|
|
|
|
[sub_resource type="StyleBoxTexture" id="StyleBoxTexture_bpyb5"]
|
|
|
|
texture = ExtResource("4_3iys8")
|
|
|
|
texture_margin_left = 8.0
|
|
|
|
texture_margin_top = 8.0
|
|
|
|
texture_margin_right = 8.0
|
|
|
|
texture_margin_bottom = 8.0
|
|
|
|
axis_stretch_horizontal = 2
|
|
|
|
axis_stretch_vertical = 2
|
|
|
|
modulate_color = Color(0.408329, 0.408329, 0.408329, 1)
|
|
|
|
|
|
|
|
[sub_resource type="StyleBoxTexture" id="StyleBoxTexture_72pk6"]
|
|
|
|
texture = ExtResource("6_tso5a")
|
|
|
|
texture_margin_left = 8.0
|
|
|
|
texture_margin_top = 8.0
|
|
|
|
texture_margin_right = 8.0
|
|
|
|
texture_margin_bottom = 8.0
|
|
|
|
axis_stretch_horizontal = 2
|
|
|
|
axis_stretch_vertical = 1
|
|
|
|
modulate_color = Color(0.821789, 0.821789, 0.821789, 1)
|
|
|
|
|
|
|
|
[sub_resource type="StyleBoxTexture" id="StyleBoxTexture_kl7i7"]
|
|
|
|
texture = ExtResource("6_tso5a")
|
|
|
|
texture_margin_left = 8.0
|
|
|
|
texture_margin_top = 8.0
|
|
|
|
texture_margin_right = 8.0
|
|
|
|
texture_margin_bottom = 8.0
|
|
|
|
axis_stretch_horizontal = 2
|
|
|
|
axis_stretch_vertical = 2
|
|
|
|
modulate_color = Color(0.821789, 0.821789, 0.821789, 1)
|
|
|
|
|
|
|
|
[sub_resource type="StyleBoxEmpty" id="StyleBoxEmpty_supoq"]
|
|
|
|
|
|
|
|
[sub_resource type="StyleBoxTexture" id="StyleBoxTexture_72rto"]
|
|
|
|
texture = ExtResource("10_rpger")
|
|
|
|
texture_margin_left = 8.0
|
|
|
|
texture_margin_top = 8.0
|
|
|
|
texture_margin_right = 8.0
|
|
|
|
texture_margin_bottom = 8.0
|
|
|
|
axis_stretch_horizontal = 1
|
|
|
|
axis_stretch_vertical = 1
|
|
|
|
modulate_color = Color(1, 0.0666667, 0.156863, 1)
|
|
|
|
|
|
|
|
[sub_resource type="StyleBoxTexture" id="StyleBoxTexture_th1h8"]
|
|
|
|
texture = ExtResource("12_033wf")
|
|
|
|
texture_margin_left = 8.0
|
|
|
|
texture_margin_top = 8.0
|
|
|
|
texture_margin_right = 8.0
|
|
|
|
texture_margin_bottom = 8.0
|
|
|
|
axis_stretch_horizontal = 1
|
|
|
|
axis_stretch_vertical = 1
|
|
|
|
|
|
|
|
[sub_resource type="StyleBoxTexture" id="StyleBoxTexture_47eau"]
|
|
|
|
texture = ExtResource("10_rpger")
|
|
|
|
texture_margin_left = 8.0
|
|
|
|
texture_margin_top = 8.0
|
|
|
|
texture_margin_right = 8.0
|
|
|
|
texture_margin_bottom = 8.0
|
|
|
|
axis_stretch_horizontal = 2
|
|
|
|
axis_stretch_vertical = 2
|
|
|
|
|
|
|
|
[sub_resource type="StyleBoxTexture" id="StyleBoxTexture_lnfi0"]
|
|
|
|
texture = ExtResource("11_jrvnp")
|
|
|
|
texture_margin_left = 8.0
|
|
|
|
texture_margin_top = 8.0
|
|
|
|
texture_margin_right = 8.0
|
|
|
|
texture_margin_bottom = 8.0
|
|
|
|
|
|
|
|
[sub_resource type="StyleBoxEmpty" id="StyleBoxEmpty_xw22e"]
|
|
|
|
|
|
|
|
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_tyjme"]
|
|
|
|
|
|
|
|
[sub_resource type="StyleBoxTexture" id="StyleBoxTexture_22g74"]
|
|
|
|
texture = ExtResource("6_tso5a")
|
|
|
|
texture_margin_left = 8.0
|
|
|
|
texture_margin_top = 8.0
|
|
|
|
texture_margin_right = 8.0
|
|
|
|
texture_margin_bottom = 8.0
|
|
|
|
axis_stretch_horizontal = 2
|
|
|
|
axis_stretch_vertical = 2
|
|
|
|
modulate_color = Color(0.760784, 0.760784, 0.760784, 1)
|
|
|
|
|
|
|
|
[sub_resource type="Theme" id="Theme_4dhdu"]
|
|
|
|
default_font = ExtResource("7_mj4qa")
|
|
|
|
default_font_size = 24
|
|
|
|
Button/colors/font_color = Color(0.875, 0.875, 0.875, 1)
|
|
|
|
Button/colors/font_disabled_color = Color(0.875, 0.875, 0.875, 0.5)
|
|
|
|
Button/colors/font_focus_color = Color(0.95, 0.95, 0.95, 1)
|
|
|
|
Button/colors/font_hover_color = Color(0.95, 0.95, 0.95, 1)
|
|
|
|
Button/colors/font_hover_pressed_color = Color(1, 1, 1, 1)
|
|
|
|
Button/colors/font_outline_color = Color(1, 1, 1, 1)
|
|
|
|
Button/colors/font_pressed_color = Color(1, 1, 1, 1)
|
|
|
|
Button/colors/icon_disabled_color = Color(1, 1, 1, 0.4)
|
|
|
|
Button/colors/icon_focus_color = Color(1, 1, 1, 1)
|
|
|
|
Button/colors/icon_hover_color = Color(1, 1, 1, 1)
|
|
|
|
Button/colors/icon_hover_pressed_color = Color(1, 1, 1, 1)
|
|
|
|
Button/colors/icon_normal_color = Color(1, 1, 1, 1)
|
|
|
|
Button/colors/icon_pressed_color = Color(1, 1, 1, 1)
|
|
|
|
Button/constants/h_separation = 4
|
|
|
|
Button/constants/icon_max_width = 0
|
|
|
|
Button/constants/outline_size = 0
|
|
|
|
Button/styles/disabled = SubResource("StyleBoxFlat_1ume3")
|
|
|
|
Button/styles/focus = SubResource("StyleBoxFlat_rm8a3")
|
|
|
|
Button/styles/hover = SubResource("StyleBoxTexture_a84rd")
|
|
|
|
Button/styles/normal = SubResource("StyleBoxTexture_votra")
|
|
|
|
Button/styles/panel = ExtResource("5_o771r")
|
|
|
|
Button/styles/pressed = SubResource("StyleBoxTexture_bpyb5")
|
|
|
|
Control/styles/normal = SubResource("StyleBoxTexture_72pk6")
|
|
|
|
ItemList/styles/normal = SubResource("StyleBoxTexture_kl7i7")
|
|
|
|
Label/colors/font_color = Color(1, 1, 1, 1)
|
|
|
|
Label/colors/font_outline_color = Color(1, 1, 1, 1)
|
|
|
|
Label/colors/font_shadow_color = Color(0.223103, 0.223103, 0.223103, 0.843137)
|
|
|
|
Label/constants/line_spacing = 3
|
|
|
|
Label/constants/outline_size = 0
|
|
|
|
Label/constants/shadow_offset_x = 1
|
|
|
|
Label/constants/shadow_offset_y = 1
|
|
|
|
Label/constants/shadow_outline_size = 1
|
|
|
|
Label/fonts/font = ExtResource("7_mj4qa")
|
|
|
|
Label/styles/normal = SubResource("StyleBoxEmpty_supoq")
|
|
|
|
Label/styles/panel = SubResource("StyleBoxTexture_72rto")
|
|
|
|
MarginContainer/styles/normal = SubResource("StyleBoxTexture_th1h8")
|
|
|
|
Panel/styles/highlighted = SubResource("StyleBoxTexture_72rto")
|
|
|
|
Panel/styles/normal = SubResource("StyleBoxTexture_47eau")
|
|
|
|
Panel/styles/panel = SubResource("StyleBoxTexture_lnfi0")
|
|
|
|
PanelContainer/styles/panel = SubResource("StyleBoxEmpty_xw22e")
|
|
|
|
RedButton/styles/panel = SubResource("StyleBoxFlat_tyjme")
|
|
|
|
Tree/styles/panel = SubResource("StyleBoxTexture_22g74")
|
2024-09-08 14:00:02 +02:00
|
|
|
|
|
|
|
[node name="RootUI" type="CanvasLayer"]
|
|
|
|
unique_name_in_owner = true
|
2024-09-08 14:03:38 +02:00
|
|
|
script = ExtResource("1_7fnkg")
|
|
|
|
startup_scene = ExtResource("2_1untt")
|
|
|
|
game_scene = ExtResource("3_w1gpn")
|
2024-09-08 14:00:02 +02:00
|
|
|
|
2024-09-14 12:45:42 +02:00
|
|
|
[node name="MainMenuUI" type="Panel" parent="."]
|
2024-09-08 14:00:02 +02:00
|
|
|
unique_name_in_owner = true
|
2024-09-14 12:45:42 +02:00
|
|
|
visible = false
|
2024-09-08 14:00:02 +02:00
|
|
|
anchors_preset = 8
|
|
|
|
anchor_left = 0.5
|
|
|
|
anchor_top = 0.5
|
|
|
|
anchor_right = 0.5
|
|
|
|
anchor_bottom = 0.5
|
|
|
|
offset_left = -199.0
|
|
|
|
offset_top = -134.5
|
|
|
|
offset_right = 199.0
|
|
|
|
offset_bottom = 134.5
|
|
|
|
grow_horizontal = 2
|
|
|
|
grow_vertical = 2
|
|
|
|
|
|
|
|
[node name="MarginContainer" type="MarginContainer" parent="MainMenuUI"]
|
2024-09-14 12:45:42 +02:00
|
|
|
layout_mode = 1
|
|
|
|
anchors_preset = 15
|
|
|
|
anchor_right = 1.0
|
|
|
|
anchor_bottom = 1.0
|
|
|
|
grow_horizontal = 2
|
|
|
|
grow_vertical = 2
|
2024-09-08 14:00:02 +02:00
|
|
|
theme_override_constants/margin_left = 60
|
|
|
|
theme_override_constants/margin_top = 60
|
|
|
|
theme_override_constants/margin_right = 60
|
|
|
|
theme_override_constants/margin_bottom = 60
|
|
|
|
|
|
|
|
[node name="VBoxContainer" type="VBoxContainer" parent="MainMenuUI/MarginContainer"]
|
|
|
|
layout_mode = 2
|
|
|
|
|
|
|
|
[node name="MarginContainer" type="MarginContainer" parent="MainMenuUI/MarginContainer/VBoxContainer"]
|
|
|
|
layout_mode = 2
|
|
|
|
theme_override_constants/margin_left = 8
|
|
|
|
theme_override_constants/margin_top = 8
|
|
|
|
theme_override_constants/margin_right = 8
|
|
|
|
theme_override_constants/margin_bottom = 8
|
|
|
|
|
|
|
|
[node name="NewGameButton" type="Button" parent="MainMenuUI/MarginContainer/VBoxContainer/MarginContainer"]
|
|
|
|
layout_mode = 2
|
|
|
|
text = "New Game"
|
|
|
|
|
|
|
|
[node name="MarginContainer4" type="MarginContainer" parent="MainMenuUI/MarginContainer/VBoxContainer"]
|
|
|
|
layout_mode = 2
|
|
|
|
theme_override_constants/margin_left = 8
|
|
|
|
theme_override_constants/margin_top = 8
|
|
|
|
theme_override_constants/margin_right = 8
|
|
|
|
theme_override_constants/margin_bottom = 8
|
|
|
|
|
|
|
|
[node name="OptionsButton" type="Button" parent="MainMenuUI/MarginContainer/VBoxContainer/MarginContainer4"]
|
|
|
|
layout_mode = 2
|
|
|
|
text = "Load Game
|
|
|
|
"
|
|
|
|
|
|
|
|
[node name="MarginContainer2" type="MarginContainer" parent="MainMenuUI/MarginContainer/VBoxContainer"]
|
|
|
|
layout_mode = 2
|
|
|
|
theme_override_constants/margin_left = 8
|
|
|
|
theme_override_constants/margin_top = 8
|
|
|
|
theme_override_constants/margin_right = 8
|
|
|
|
theme_override_constants/margin_bottom = 8
|
|
|
|
|
|
|
|
[node name="OptionsButton" type="Button" parent="MainMenuUI/MarginContainer/VBoxContainer/MarginContainer2"]
|
|
|
|
layout_mode = 2
|
|
|
|
text = "Options"
|
|
|
|
|
|
|
|
[node name="MarginContainer3" type="MarginContainer" parent="MainMenuUI/MarginContainer/VBoxContainer"]
|
|
|
|
layout_mode = 2
|
|
|
|
theme_override_constants/margin_left = 8
|
|
|
|
theme_override_constants/margin_top = 8
|
|
|
|
theme_override_constants/margin_right = 8
|
|
|
|
theme_override_constants/margin_bottom = 8
|
|
|
|
|
|
|
|
[node name="QuitButton" type="Button" parent="MainMenuUI/MarginContainer/VBoxContainer/MarginContainer3"]
|
|
|
|
layout_mode = 2
|
|
|
|
text = "Quit"
|
|
|
|
|
2024-09-14 12:45:42 +02:00
|
|
|
[node name="NewGameUI" type="Panel" parent="."]
|
2024-09-08 14:00:02 +02:00
|
|
|
unique_name_in_owner = true
|
|
|
|
visible = false
|
|
|
|
anchors_preset = 8
|
|
|
|
anchor_left = 0.5
|
|
|
|
anchor_top = 0.5
|
|
|
|
anchor_right = 0.5
|
|
|
|
anchor_bottom = 0.5
|
|
|
|
offset_left = -291.0
|
|
|
|
offset_top = -144.0
|
|
|
|
offset_right = 291.0
|
|
|
|
offset_bottom = 144.0
|
|
|
|
grow_horizontal = 2
|
|
|
|
grow_vertical = 2
|
|
|
|
|
|
|
|
[node name="MarginContainer" type="MarginContainer" parent="NewGameUI"]
|
2024-09-14 12:45:42 +02:00
|
|
|
layout_mode = 1
|
|
|
|
anchors_preset = 15
|
|
|
|
anchor_right = 1.0
|
|
|
|
anchor_bottom = 1.0
|
|
|
|
grow_horizontal = 2
|
|
|
|
grow_vertical = 2
|
2024-09-08 14:00:02 +02:00
|
|
|
theme_override_constants/margin_left = 60
|
|
|
|
theme_override_constants/margin_top = 60
|
|
|
|
theme_override_constants/margin_right = 60
|
|
|
|
theme_override_constants/margin_bottom = 60
|
|
|
|
|
|
|
|
[node name="VBoxContainer" type="VBoxContainer" parent="NewGameUI/MarginContainer"]
|
|
|
|
layout_mode = 2
|
|
|
|
|
|
|
|
[node name="Label" type="Label" parent="NewGameUI/MarginContainer/VBoxContainer"]
|
|
|
|
layout_mode = 2
|
|
|
|
size_flags_horizontal = 4
|
|
|
|
size_flags_vertical = 6
|
|
|
|
text = "New Game"
|
|
|
|
|
|
|
|
[node name="MarginContainer" type="MarginContainer" parent="NewGameUI/MarginContainer/VBoxContainer"]
|
|
|
|
layout_mode = 2
|
|
|
|
theme_override_constants/margin_left = 8
|
|
|
|
theme_override_constants/margin_top = 8
|
|
|
|
theme_override_constants/margin_right = 8
|
|
|
|
theme_override_constants/margin_bottom = 8
|
|
|
|
|
|
|
|
[node name="HBoxContainer" type="HBoxContainer" parent="NewGameUI/MarginContainer/VBoxContainer/MarginContainer"]
|
|
|
|
layout_mode = 2
|
|
|
|
|
|
|
|
[node name="Label" type="Label" parent="NewGameUI/MarginContainer/VBoxContainer/MarginContainer/HBoxContainer"]
|
|
|
|
layout_mode = 2
|
|
|
|
text = "World Name"
|
|
|
|
|
|
|
|
[node name="WorldNameEdit" type="TextEdit" parent="NewGameUI/MarginContainer/VBoxContainer/MarginContainer/HBoxContainer"]
|
|
|
|
layout_mode = 2
|
|
|
|
size_flags_horizontal = 3
|
|
|
|
size_flags_stretch_ratio = 0.0
|
|
|
|
text = "Brave New World"
|
|
|
|
scroll_fit_content_height = true
|
|
|
|
|
|
|
|
[node name="MarginContainer2" type="MarginContainer" parent="NewGameUI/MarginContainer/VBoxContainer"]
|
|
|
|
layout_mode = 2
|
|
|
|
theme_override_constants/margin_left = 8
|
|
|
|
theme_override_constants/margin_top = 8
|
|
|
|
theme_override_constants/margin_right = 8
|
|
|
|
theme_override_constants/margin_bottom = 8
|
|
|
|
|
|
|
|
[node name="CheckBox" type="CheckBox" parent="NewGameUI/MarginContainer/VBoxContainer/MarginContainer2"]
|
|
|
|
layout_mode = 2
|
|
|
|
text = "Hardcore Mode"
|
|
|
|
|
|
|
|
[node name="MarginContainer3" type="MarginContainer" parent="NewGameUI/MarginContainer/VBoxContainer"]
|
|
|
|
layout_mode = 2
|
|
|
|
theme_override_constants/margin_left = 8
|
|
|
|
theme_override_constants/margin_top = 8
|
|
|
|
theme_override_constants/margin_right = 8
|
|
|
|
theme_override_constants/margin_bottom = 8
|
|
|
|
|
|
|
|
[node name="HBoxContainer" type="HBoxContainer" parent="NewGameUI/MarginContainer/VBoxContainer/MarginContainer3"]
|
|
|
|
layout_mode = 2
|
|
|
|
|
|
|
|
[node name="BackButton" type="Button" parent="NewGameUI/MarginContainer/VBoxContainer/MarginContainer3/HBoxContainer"]
|
|
|
|
layout_mode = 2
|
|
|
|
text = "Back"
|
|
|
|
|
|
|
|
[node name="Control" type="Control" parent="NewGameUI/MarginContainer/VBoxContainer/MarginContainer3/HBoxContainer"]
|
|
|
|
layout_mode = 2
|
|
|
|
size_flags_horizontal = 3
|
|
|
|
|
|
|
|
[node name="StartGameButton" type="Button" parent="NewGameUI/MarginContainer/VBoxContainer/MarginContainer3/HBoxContainer"]
|
|
|
|
layout_mode = 2
|
|
|
|
text = "Start
|
|
|
|
"
|
|
|
|
|
|
|
|
[node name="GameUI" type="Control" parent="."]
|
|
|
|
unique_name_in_owner = true
|
|
|
|
layout_mode = 3
|
|
|
|
anchors_preset = 15
|
|
|
|
anchor_right = 1.0
|
|
|
|
anchor_bottom = 1.0
|
|
|
|
grow_horizontal = 2
|
|
|
|
grow_vertical = 2
|
|
|
|
size_flags_horizontal = 3
|
|
|
|
size_flags_vertical = 3
|
2024-09-08 16:57:39 +02:00
|
|
|
mouse_filter = 1
|
2024-09-08 14:03:38 +02:00
|
|
|
script = ExtResource("5_jkbjp")
|
2024-09-08 14:00:02 +02:00
|
|
|
|
|
|
|
[node name="MessagesContainer" type="MarginContainer" parent="GameUI"]
|
|
|
|
unique_name_in_owner = true
|
|
|
|
visible = false
|
|
|
|
layout_mode = 1
|
|
|
|
anchors_preset = 5
|
|
|
|
anchor_left = 0.5
|
|
|
|
anchor_right = 0.5
|
|
|
|
offset_left = -244.5
|
|
|
|
offset_right = 244.5
|
|
|
|
offset_bottom = 67.0
|
|
|
|
grow_horizontal = 2
|
|
|
|
theme_override_constants/margin_top = 32
|
|
|
|
|
|
|
|
[node name="MessageTextEdit" type="TextEdit" parent="GameUI/MessagesContainer"]
|
|
|
|
unique_name_in_owner = true
|
|
|
|
layout_mode = 2
|
|
|
|
text = "Picked Up Some Stuff !"
|
|
|
|
scroll_fit_content_height = true
|
|
|
|
|
|
|
|
[node name="MessageTimer" type="Timer" parent="GameUI/MessagesContainer"]
|
|
|
|
unique_name_in_owner = true
|
|
|
|
wait_time = 2.0
|
|
|
|
|
|
|
|
[node name="InventoryDialog" type="MarginContainer" parent="GameUI"]
|
|
|
|
unique_name_in_owner = true
|
|
|
|
visible = false
|
|
|
|
layout_mode = 1
|
|
|
|
anchors_preset = 15
|
|
|
|
anchor_right = 1.0
|
|
|
|
anchor_bottom = 1.0
|
|
|
|
grow_horizontal = 2
|
|
|
|
grow_vertical = 2
|
|
|
|
theme_override_constants/margin_left = 40
|
|
|
|
theme_override_constants/margin_top = 82
|
|
|
|
theme_override_constants/margin_right = 40
|
|
|
|
theme_override_constants/margin_bottom = 128
|
2024-09-08 14:03:38 +02:00
|
|
|
script = ExtResource("6_y58iw")
|
|
|
|
slot_scene = ExtResource("7_pv315")
|
2024-09-08 14:00:02 +02:00
|
|
|
|
|
|
|
[node name="Panel" type="Panel" parent="GameUI/InventoryDialog"]
|
|
|
|
layout_mode = 2
|
|
|
|
|
|
|
|
[node name="PanelContainer" type="VBoxContainer" parent="GameUI/InventoryDialog/Panel"]
|
|
|
|
layout_mode = 1
|
|
|
|
anchors_preset = 15
|
|
|
|
anchor_right = 1.0
|
|
|
|
anchor_bottom = 1.0
|
|
|
|
grow_horizontal = 2
|
|
|
|
grow_vertical = 2
|
|
|
|
|
|
|
|
[node name="Title" type="HBoxContainer" parent="GameUI/InventoryDialog/Panel/PanelContainer"]
|
|
|
|
layout_mode = 2
|
|
|
|
size_flags_vertical = 0
|
|
|
|
|
|
|
|
[node name="Label" type="Label" parent="GameUI/InventoryDialog/Panel/PanelContainer/Title"]
|
|
|
|
layout_mode = 2
|
|
|
|
size_flags_horizontal = 3
|
|
|
|
text = "Inventory"
|
|
|
|
horizontal_alignment = 1
|
|
|
|
|
|
|
|
[node name="CloseButton" type="Button" parent="GameUI/InventoryDialog/Panel/PanelContainer/Title"]
|
|
|
|
layout_mode = 2
|
|
|
|
text = " X "
|
|
|
|
|
|
|
|
[node name="CraftingUI" type="MarginContainer" parent="GameUI/InventoryDialog/Panel/PanelContainer"]
|
|
|
|
unique_name_in_owner = true
|
|
|
|
layout_mode = 2
|
|
|
|
size_flags_vertical = 3
|
|
|
|
theme_override_constants/margin_left = 16
|
|
|
|
theme_override_constants/margin_top = 16
|
|
|
|
theme_override_constants/margin_right = 16
|
|
|
|
theme_override_constants/margin_bottom = 16
|
|
|
|
|
|
|
|
[node name="HBoxContainer" type="HBoxContainer" parent="GameUI/InventoryDialog/Panel/PanelContainer/CraftingUI"]
|
|
|
|
layout_mode = 2
|
|
|
|
theme_override_constants/separation = 17
|
|
|
|
|
|
|
|
[node name="Recipes" type="VBoxContainer" parent="GameUI/InventoryDialog/Panel/PanelContainer/CraftingUI/HBoxContainer"]
|
|
|
|
layout_mode = 2
|
|
|
|
size_flags_horizontal = 3
|
|
|
|
|
|
|
|
[node name="Label" type="Label" parent="GameUI/InventoryDialog/Panel/PanelContainer/CraftingUI/HBoxContainer/Recipes"]
|
|
|
|
layout_mode = 2
|
|
|
|
text = "Recipes"
|
|
|
|
|
|
|
|
[node name="RecipeList" type="ItemList" parent="GameUI/InventoryDialog/Panel/PanelContainer/CraftingUI/HBoxContainer/Recipes"]
|
|
|
|
unique_name_in_owner = true
|
|
|
|
layout_mode = 2
|
|
|
|
size_flags_vertical = 3
|
2024-09-14 12:45:42 +02:00
|
|
|
theme = SubResource("Theme_4dhdu")
|
2024-09-08 14:00:02 +02:00
|
|
|
item_count = 2
|
|
|
|
item_0/text = "Blab"
|
|
|
|
item_1/text = "Bloobalb"
|
|
|
|
|
|
|
|
[node name="CraftIngredients" type="VBoxContainer" parent="GameUI/InventoryDialog/Panel/PanelContainer/CraftingUI/HBoxContainer"]
|
|
|
|
layout_mode = 2
|
|
|
|
size_flags_horizontal = 3
|
|
|
|
|
|
|
|
[node name="Label" type="Label" parent="GameUI/InventoryDialog/Panel/PanelContainer/CraftingUI/HBoxContainer/CraftIngredients"]
|
|
|
|
layout_mode = 2
|
|
|
|
text = "Ingredients"
|
|
|
|
|
|
|
|
[node name="Panel" type="Panel" parent="GameUI/InventoryDialog/Panel/PanelContainer/CraftingUI/HBoxContainer/CraftIngredients"]
|
|
|
|
layout_mode = 2
|
|
|
|
size_flags_vertical = 3
|
|
|
|
|
|
|
|
[node name="CenterContainer" type="CenterContainer" parent="GameUI/InventoryDialog/Panel/PanelContainer/CraftingUI/HBoxContainer/CraftIngredients/Panel"]
|
|
|
|
layout_mode = 1
|
|
|
|
anchors_preset = 8
|
|
|
|
anchor_left = 0.5
|
|
|
|
anchor_top = 0.5
|
|
|
|
anchor_right = 0.5
|
|
|
|
anchor_bottom = 0.5
|
|
|
|
offset_left = -254.5
|
|
|
|
offset_top = -32.0
|
|
|
|
offset_right = 254.5
|
|
|
|
offset_bottom = 32.0
|
|
|
|
grow_horizontal = 2
|
|
|
|
grow_vertical = 2
|
|
|
|
size_flags_vertical = 3
|
|
|
|
|
2024-09-08 14:03:38 +02:00
|
|
|
[node name="IngredientsContainer" parent="GameUI/InventoryDialog/Panel/PanelContainer/CraftingUI/HBoxContainer/CraftIngredients/Panel/CenterContainer" instance=ExtResource("8_anyub")]
|
2024-09-08 14:00:02 +02:00
|
|
|
unique_name_in_owner = true
|
|
|
|
layout_mode = 2
|
|
|
|
columns = 3
|
|
|
|
|
|
|
|
[node name="HBoxContainer" type="HBoxContainer" parent="GameUI/InventoryDialog/Panel/PanelContainer/CraftingUI/HBoxContainer/CraftIngredients"]
|
|
|
|
layout_mode = 2
|
|
|
|
alignment = 1
|
|
|
|
|
|
|
|
[node name="Control" type="Control" parent="GameUI/InventoryDialog/Panel/PanelContainer/CraftingUI/HBoxContainer/CraftIngredients"]
|
|
|
|
layout_mode = 2
|
|
|
|
|
|
|
|
[node name="Label" type="Label" parent="GameUI/InventoryDialog/Panel/PanelContainer/CraftingUI/HBoxContainer"]
|
|
|
|
layout_mode = 2
|
|
|
|
size_flags_horizontal = 3
|
|
|
|
size_flags_stretch_ratio = 0.2
|
|
|
|
text = "->"
|
|
|
|
horizontal_alignment = 1
|
|
|
|
|
|
|
|
[node name="CraftResult" type="VBoxContainer" parent="GameUI/InventoryDialog/Panel/PanelContainer/CraftingUI/HBoxContainer"]
|
|
|
|
layout_mode = 2
|
|
|
|
size_flags_horizontal = 3
|
|
|
|
|
|
|
|
[node name="Label" type="Label" parent="GameUI/InventoryDialog/Panel/PanelContainer/CraftingUI/HBoxContainer/CraftResult"]
|
|
|
|
layout_mode = 2
|
|
|
|
text = "Result"
|
|
|
|
|
|
|
|
[node name="Panel" type="Panel" parent="GameUI/InventoryDialog/Panel/PanelContainer/CraftingUI/HBoxContainer/CraftResult"]
|
|
|
|
layout_mode = 2
|
|
|
|
size_flags_vertical = 3
|
|
|
|
|
|
|
|
[node name="CenterContainer" type="CenterContainer" parent="GameUI/InventoryDialog/Panel/PanelContainer/CraftingUI/HBoxContainer/CraftResult/Panel"]
|
|
|
|
layout_mode = 1
|
|
|
|
anchors_preset = 15
|
|
|
|
anchor_right = 1.0
|
|
|
|
anchor_bottom = 1.0
|
|
|
|
grow_horizontal = 2
|
|
|
|
grow_vertical = 2
|
|
|
|
|
2024-09-08 14:03:38 +02:00
|
|
|
[node name="ResultsContainer" parent="GameUI/InventoryDialog/Panel/PanelContainer/CraftingUI/HBoxContainer/CraftResult/Panel/CenterContainer" instance=ExtResource("8_anyub")]
|
2024-09-08 14:00:02 +02:00
|
|
|
unique_name_in_owner = true
|
|
|
|
layout_mode = 2
|
|
|
|
columns = 1
|
|
|
|
|
|
|
|
[node name="HBoxContainer" type="HBoxContainer" parent="GameUI/InventoryDialog/Panel/PanelContainer/CraftingUI/HBoxContainer/CraftResult"]
|
|
|
|
layout_mode = 2
|
|
|
|
alignment = 1
|
|
|
|
|
|
|
|
[node name="CraftButton" type="Button" parent="GameUI/InventoryDialog/Panel/PanelContainer/CraftingUI/HBoxContainer/CraftResult/HBoxContainer"]
|
|
|
|
unique_name_in_owner = true
|
|
|
|
layout_mode = 2
|
|
|
|
text = "Craft"
|
|
|
|
|
|
|
|
[node name="BackpackUI" type="MarginContainer" parent="GameUI/InventoryDialog/Panel/PanelContainer"]
|
|
|
|
layout_mode = 2
|
|
|
|
size_flags_vertical = 3
|
|
|
|
theme_override_constants/margin_left = 16
|
|
|
|
theme_override_constants/margin_top = 16
|
|
|
|
theme_override_constants/margin_right = 16
|
|
|
|
theme_override_constants/margin_bottom = 16
|
|
|
|
|
|
|
|
[node name="VBoxContainer" type="VBoxContainer" parent="GameUI/InventoryDialog/Panel/PanelContainer/BackpackUI"]
|
|
|
|
layout_mode = 2
|
|
|
|
|
|
|
|
[node name="Label" type="Label" parent="GameUI/InventoryDialog/Panel/PanelContainer/BackpackUI/VBoxContainer"]
|
|
|
|
layout_mode = 2
|
|
|
|
text = "Backpack"
|
|
|
|
|
2024-09-08 14:03:38 +02:00
|
|
|
[node name="InventoryContainer" parent="GameUI/InventoryDialog/Panel/PanelContainer/BackpackUI/VBoxContainer" instance=ExtResource("8_anyub")]
|
2024-09-08 14:00:02 +02:00
|
|
|
unique_name_in_owner = true
|
|
|
|
layout_mode = 2
|
|
|
|
size_flags_horizontal = 4
|
|
|
|
size_flags_vertical = 4
|
|
|
|
|
2024-09-14 12:45:42 +02:00
|
|
|
[node name="GameMenuUI" type="Panel" parent="GameUI"]
|
2024-09-08 14:00:02 +02:00
|
|
|
unique_name_in_owner = true
|
|
|
|
visible = false
|
|
|
|
layout_mode = 1
|
|
|
|
anchors_preset = 8
|
|
|
|
anchor_left = 0.5
|
|
|
|
anchor_top = 0.5
|
|
|
|
anchor_right = 0.5
|
|
|
|
anchor_bottom = 0.5
|
|
|
|
offset_left = -199.0
|
|
|
|
offset_top = -215.0
|
|
|
|
offset_right = 199.0
|
|
|
|
offset_bottom = 215.0
|
|
|
|
grow_horizontal = 2
|
|
|
|
grow_vertical = 2
|
2024-09-14 12:45:42 +02:00
|
|
|
theme = SubResource("Theme_4dhdu")
|
2024-09-08 14:03:38 +02:00
|
|
|
script = ExtResource("9_g2mav")
|
2024-09-08 14:00:02 +02:00
|
|
|
|
|
|
|
[node name="MarginContainer" type="MarginContainer" parent="GameUI/GameMenuUI"]
|
2024-09-14 12:45:42 +02:00
|
|
|
layout_mode = 1
|
|
|
|
anchors_preset = 15
|
|
|
|
anchor_right = 1.0
|
|
|
|
anchor_bottom = 1.0
|
|
|
|
grow_horizontal = 2
|
|
|
|
grow_vertical = 2
|
2024-09-08 14:00:02 +02:00
|
|
|
theme_override_constants/margin_left = 60
|
|
|
|
theme_override_constants/margin_top = 60
|
|
|
|
theme_override_constants/margin_right = 60
|
|
|
|
theme_override_constants/margin_bottom = 60
|
|
|
|
|
|
|
|
[node name="VBoxContainer" type="VBoxContainer" parent="GameUI/GameMenuUI/MarginContainer"]
|
|
|
|
layout_mode = 2
|
|
|
|
|
|
|
|
[node name="MarginContainer4" type="MarginContainer" parent="GameUI/GameMenuUI/MarginContainer/VBoxContainer"]
|
|
|
|
layout_mode = 2
|
|
|
|
theme_override_constants/margin_left = 8
|
|
|
|
theme_override_constants/margin_top = 8
|
|
|
|
theme_override_constants/margin_right = 8
|
|
|
|
theme_override_constants/margin_bottom = 8
|
|
|
|
|
|
|
|
[node name="SaveGameButton" type="Button" parent="GameUI/GameMenuUI/MarginContainer/VBoxContainer/MarginContainer4"]
|
|
|
|
layout_mode = 2
|
|
|
|
text = "Save Game
|
|
|
|
"
|
|
|
|
|
|
|
|
[node name="MarginContainer6" type="MarginContainer" parent="GameUI/GameMenuUI/MarginContainer/VBoxContainer"]
|
|
|
|
layout_mode = 2
|
|
|
|
theme_override_constants/margin_left = 8
|
|
|
|
theme_override_constants/margin_top = 8
|
|
|
|
theme_override_constants/margin_right = 8
|
|
|
|
theme_override_constants/margin_bottom = 8
|
|
|
|
|
|
|
|
[node name="LoadGameButton" type="Button" parent="GameUI/GameMenuUI/MarginContainer/VBoxContainer/MarginContainer6"]
|
|
|
|
layout_mode = 2
|
|
|
|
text = "Load Game
|
|
|
|
"
|
|
|
|
|
|
|
|
[node name="MarginContainer2" type="MarginContainer" parent="GameUI/GameMenuUI/MarginContainer/VBoxContainer"]
|
|
|
|
layout_mode = 2
|
|
|
|
theme_override_constants/margin_left = 8
|
|
|
|
theme_override_constants/margin_top = 8
|
|
|
|
theme_override_constants/margin_right = 8
|
|
|
|
theme_override_constants/margin_bottom = 8
|
|
|
|
|
|
|
|
[node name="OptionsButton" type="Button" parent="GameUI/GameMenuUI/MarginContainer/VBoxContainer/MarginContainer2"]
|
|
|
|
layout_mode = 2
|
|
|
|
text = "Options"
|
|
|
|
|
|
|
|
[node name="MarginContainer3" type="MarginContainer" parent="GameUI/GameMenuUI/MarginContainer/VBoxContainer"]
|
|
|
|
layout_mode = 2
|
|
|
|
theme_override_constants/margin_left = 8
|
|
|
|
theme_override_constants/margin_top = 8
|
|
|
|
theme_override_constants/margin_right = 8
|
|
|
|
theme_override_constants/margin_bottom = 8
|
|
|
|
|
|
|
|
[node name="BackToGameButton" type="Button" parent="GameUI/GameMenuUI/MarginContainer/VBoxContainer/MarginContainer3"]
|
|
|
|
layout_mode = 2
|
|
|
|
text = "Return to Game"
|
|
|
|
|
|
|
|
[node name="HSeparator" type="HSeparator" parent="GameUI/GameMenuUI/MarginContainer/VBoxContainer"]
|
|
|
|
layout_mode = 2
|
|
|
|
|
|
|
|
[node name="MarginContainer5" type="MarginContainer" parent="GameUI/GameMenuUI/MarginContainer/VBoxContainer"]
|
|
|
|
layout_mode = 2
|
|
|
|
theme_override_constants/margin_left = 8
|
|
|
|
theme_override_constants/margin_top = 8
|
|
|
|
theme_override_constants/margin_right = 8
|
|
|
|
theme_override_constants/margin_bottom = 8
|
|
|
|
|
|
|
|
[node name="ToMainMenuButton" type="Button" parent="GameUI/GameMenuUI/MarginContainer/VBoxContainer/MarginContainer5"]
|
|
|
|
layout_mode = 2
|
|
|
|
text = "Back to Main Menu"
|
|
|
|
|
|
|
|
[node name="ToolSlots" type="MarginContainer" parent="GameUI"]
|
|
|
|
unique_name_in_owner = true
|
|
|
|
layout_mode = 1
|
|
|
|
anchors_preset = 7
|
|
|
|
anchor_left = 0.5
|
|
|
|
anchor_top = 1.0
|
|
|
|
anchor_right = 0.5
|
|
|
|
anchor_bottom = 1.0
|
|
|
|
offset_left = -87.0
|
|
|
|
offset_top = -101.0
|
|
|
|
offset_right = 87.0
|
|
|
|
grow_horizontal = 2
|
|
|
|
grow_vertical = 0
|
|
|
|
theme_override_constants/margin_bottom = 32
|
|
|
|
|
|
|
|
[node name="PanelContainer" type="PanelContainer" parent="GameUI/ToolSlots"]
|
|
|
|
layout_mode = 2
|
|
|
|
|
|
|
|
[node name="ToolContainer" type="GridContainer" parent="GameUI/ToolSlots/PanelContainer"]
|
|
|
|
unique_name_in_owner = true
|
|
|
|
layout_mode = 2
|
|
|
|
columns = 9
|
2024-09-08 14:03:38 +02:00
|
|
|
script = ExtResource("10_5ufsm")
|
|
|
|
slot_scene = ExtResource("7_pv315")
|
2024-09-08 14:00:02 +02:00
|
|
|
|
2024-09-14 12:45:42 +02:00
|
|
|
[node name="ItemSlot" parent="GameUI/ToolSlots/PanelContainer/ToolContainer" instance=ExtResource("7_pv315")]
|
|
|
|
layout_mode = 2
|
|
|
|
|
|
|
|
[node name="ItemSlot2" parent="GameUI/ToolSlots/PanelContainer/ToolContainer" instance=ExtResource("7_pv315")]
|
|
|
|
layout_mode = 2
|
|
|
|
|
|
|
|
[node name="ItemSlot3" parent="GameUI/ToolSlots/PanelContainer/ToolContainer" instance=ExtResource("7_pv315")]
|
|
|
|
layout_mode = 2
|
|
|
|
|
2024-09-08 14:00:02 +02:00
|
|
|
[node name="Scene" type="Node3D" parent="."]
|
|
|
|
unique_name_in_owner = true
|
|
|
|
|
|
|
|
[connection signal="pressed" from="MainMenuUI/MarginContainer/VBoxContainer/MarginContainer/NewGameButton" to="." method="_on_new_game_button_pressed"]
|
|
|
|
[connection signal="pressed" from="MainMenuUI/MarginContainer/VBoxContainer/MarginContainer3/QuitButton" to="." method="_on_quit_button_pressed"]
|
|
|
|
[connection signal="pressed" from="NewGameUI/MarginContainer/VBoxContainer/MarginContainer3/HBoxContainer/BackButton" to="." method="_to_main_menu_button_pressed"]
|
|
|
|
[connection signal="pressed" from="NewGameUI/MarginContainer/VBoxContainer/MarginContainer3/HBoxContainer/StartGameButton" to="." method="_on_start_game_button_pressed"]
|
|
|
|
[connection signal="visibility_changed" from="GameUI" to="GameUI" method="_on_visibility_changed"]
|
|
|
|
[connection signal="timeout" from="GameUI/MessagesContainer/MessageTimer" to="GameUI" method="_on_message_timer_timeout"]
|
|
|
|
[connection signal="pressed" from="GameUI/InventoryDialog/Panel/PanelContainer/Title/CloseButton" to="GameUI/InventoryDialog" method="_on_close_button_pressed"]
|
|
|
|
[connection signal="item_selected" from="GameUI/InventoryDialog/Panel/PanelContainer/CraftingUI/HBoxContainer/Recipes/RecipeList" to="GameUI/InventoryDialog" method="_on_recipe_list_item_selected"]
|
|
|
|
[connection signal="pressed" from="GameUI/InventoryDialog/Panel/PanelContainer/CraftingUI/HBoxContainer/CraftResult/HBoxContainer/CraftButton" to="GameUI/InventoryDialog" method="_on_craft_button_pressed"]
|
|
|
|
[connection signal="visibility_changed" from="GameUI/GameMenuUI" to="GameUI" method="_on_game_menu_ui_visibility_changed"]
|
|
|
|
[connection signal="pressed" from="GameUI/GameMenuUI/MarginContainer/VBoxContainer/MarginContainer4/SaveGameButton" to="." method="save_game"]
|
|
|
|
[connection signal="pressed" from="GameUI/GameMenuUI/MarginContainer/VBoxContainer/MarginContainer6/LoadGameButton" to="." method="load_game"]
|
|
|
|
[connection signal="pressed" from="GameUI/GameMenuUI/MarginContainer/VBoxContainer/MarginContainer3/BackToGameButton" to="GameUI" method="_on_back_to_game_button_pressed"]
|
|
|
|
[connection signal="pressed" from="GameUI/GameMenuUI/MarginContainer/VBoxContainer/MarginContainer5/ToMainMenuButton" to="." method="_to_main_menu_button_pressed"]
|