673 lines
27 KiB
Plaintext
673 lines
27 KiB
Plaintext
|
[gd_scene load_steps=33 format=3 uid="uid://bugqatylloxkl"]
|
||
|
|
||
|
[ext_resource type="Script" path="res://Player.gd" id="1_3lyis"]
|
||
|
[ext_resource type="Script" path="res://World.gd" id="1_e417k"]
|
||
|
[ext_resource type="Script" path="res://Game.gd" id="1_h44o7"]
|
||
|
[ext_resource type="Script" path="res://RootUI.gd" id="2_gg3gt"]
|
||
|
[ext_resource type="PackedScene" uid="uid://dk2wv1vem0ubw" path="res://assets/scene_props/RockA.tscn" id="3_owduk"]
|
||
|
[ext_resource type="Texture2D" uid="uid://cq8ypeagpedq" path="res://assets/kenney/ui-pack-rpg-expansion/PNG/cursorSword_bronze.png" id="4_pcyi0"]
|
||
|
[ext_resource type="PackedScene" uid="uid://da5r82nvypfk4" path="res://objects/PickupItem.tscn" id="4_ttv16"]
|
||
|
[ext_resource type="Texture2D" uid="uid://c7fu3paj3b4e8" path="res://assets/kenney/ui-pack-rpg-expansion/PNG/cursorSword_silver.png" id="5_24tqj"]
|
||
|
[ext_resource type="Resource" uid="uid://bn5j38jbwlj1f" path="res://data/items/stick.tres" id="6_1orlx"]
|
||
|
[ext_resource type="Resource" uid="uid://c1ll2snhgv3m1" path="res://data/items/treelog.tres" id="6_3vb4g"]
|
||
|
[ext_resource type="Texture2D" uid="uid://drpl0ql1p3pfk" path="res://assets/kenney/ui-pack-rpg-expansion/PNG/cursorSword_gold.png" id="6_uid86"]
|
||
|
[ext_resource type="Resource" uid="uid://coser1y1y5unl" path="res://data/items/door.tres" id="6_wnxjh"]
|
||
|
[ext_resource type="Script" path="res://GameUI.gd" id="7_mw21s"]
|
||
|
[ext_resource type="MeshLibrary" uid="uid://dcpuitbu16j1a" path="res://assets/mesh_library.tres" id="8_gh3i5"]
|
||
|
[ext_resource type="Theme" uid="uid://dmk7hc81l8gbw" path="res://ui/ui_theme.tres" id="8_qpuke"]
|
||
|
[ext_resource type="Texture2D" uid="uid://bq3b1hxl5ojh6" path="res://assets/icons/npc_emotes/attention.tres" id="10_6agi3"]
|
||
|
[ext_resource type="Script" path="res://ui/inventory_dialog.gd" id="12_8cl6a"]
|
||
|
[ext_resource type="PackedScene" uid="uid://dp3fi0g53qrt2" path="res://ui/item_slot.tscn" id="12_v6fpp"]
|
||
|
[ext_resource type="PackedScene" uid="uid://bwui4acukq4x6" path="res://ui/item_grid.tscn" id="15_5xu2a"]
|
||
|
[ext_resource type="PackedScene" uid="uid://o6d18r0ior12" path="res://assets/scene_props/RockB.tscn" id="17_h8tnl"]
|
||
|
|
||
|
[sub_resource type="Environment" id="Environment_v85yo"]
|
||
|
ambient_light_color = Color(0.662452, 0.662452, 0.662452, 1)
|
||
|
|
||
|
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_jd31k"]
|
||
|
albedo_color = Color(1, 1, 0.698039, 1)
|
||
|
|
||
|
[sub_resource type="CapsuleMesh" id="CapsuleMesh_dwrtd"]
|
||
|
material = SubResource("StandardMaterial3D_jd31k")
|
||
|
radius = 0.12
|
||
|
height = 0.6
|
||
|
|
||
|
[sub_resource type="CylinderShape3D" id="CylinderShape3D_vq44x"]
|
||
|
height = 0.6
|
||
|
radius = 0.158352
|
||
|
|
||
|
[sub_resource type="BoxShape3D" id="BoxShape3D_q3pbi"]
|
||
|
size = Vector3(100, 1, 100)
|
||
|
|
||
|
[sub_resource type="Gradient" id="Gradient_dpmxf"]
|
||
|
offsets = PackedFloat32Array(0, 0.00293255, 0.0879765, 0.178886, 0.642229)
|
||
|
colors = PackedColorArray(0, 0, 0, 1, 0.22963, 0.22963, 0.22963, 1, 0.753482, 0.753482, 0.753482, 1, 0.722667, 0.722667, 0.722667, 1, 1, 1, 1, 1)
|
||
|
|
||
|
[sub_resource type="FastNoiseLite" id="FastNoiseLite_rqttx"]
|
||
|
frequency = 0.0243
|
||
|
|
||
|
[sub_resource type="NoiseTexture2D" id="NoiseTexture2D_uig1c"]
|
||
|
width = 32
|
||
|
height = 32
|
||
|
seamless = true
|
||
|
seamless_blend_skirt = 1.0
|
||
|
color_ramp = SubResource("Gradient_dpmxf")
|
||
|
noise = SubResource("FastNoiseLite_rqttx")
|
||
|
|
||
|
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_5680i"]
|
||
|
albedo_color = Color(0.211765, 0.721569, 0.145098, 1)
|
||
|
albedo_texture = SubResource("NoiseTexture2D_uig1c")
|
||
|
uv1_triplanar = true
|
||
|
texture_filter = 0
|
||
|
|
||
|
[sub_resource type="BoxMesh" id="BoxMesh_i7opf"]
|
||
|
material = SubResource("StandardMaterial3D_5680i")
|
||
|
size = Vector3(100, 1, 100)
|
||
|
|
||
|
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_ikb15"]
|
||
|
vertex_color_is_srgb = true
|
||
|
albedo_color = Color(1, 1, 0.172549, 1)
|
||
|
|
||
|
[sub_resource type="CapsuleMesh" id="CapsuleMesh_w3ek8"]
|
||
|
material = SubResource("StandardMaterial3D_ikb15")
|
||
|
radius = 0.12
|
||
|
height = 0.6
|
||
|
|
||
|
[node name="Game" type="Node3D"]
|
||
|
script = ExtResource("1_h44o7")
|
||
|
|
||
|
[node name="World" type="Node3D" parent="."]
|
||
|
unique_name_in_owner = true
|
||
|
script = ExtResource("1_e417k")
|
||
|
|
||
|
[node name="WorldEnvironment" type="WorldEnvironment" parent="World"]
|
||
|
environment = SubResource("Environment_v85yo")
|
||
|
|
||
|
[node name="Player" type="CharacterBody3D" parent="World" groups=["savable_nodes"]]
|
||
|
unique_name_in_owner = true
|
||
|
script = ExtResource("1_3lyis")
|
||
|
|
||
|
[node name="MeshInstance3D" type="MeshInstance3D" parent="World/Player"]
|
||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.3, 0)
|
||
|
mesh = SubResource("CapsuleMesh_dwrtd")
|
||
|
|
||
|
[node name="CollisionShape3D" type="CollisionShape3D" parent="World/Player"]
|
||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.310637, 0)
|
||
|
shape = SubResource("CylinderShape3D_vq44x")
|
||
|
|
||
|
[node name="Camera3D" type="Camera3D" parent="World/Player"]
|
||
|
transform = Transform3D(1, 0, 0, 0, 0.460138, 0.887848, 0, -0.887848, 0.460138, 0, 2.91421, 1.186)
|
||
|
|
||
|
[node name="DirectionalLight3D" type="DirectionalLight3D" parent="World"]
|
||
|
transform = Transform3D(0.836133, 0.124138, 0.534295, -0.548527, 0.189226, 0.81444, 0, -0.974055, 0.226311, 5.06819, 4.51394, 0)
|
||
|
shadow_enabled = true
|
||
|
|
||
|
[node name="Entities" type="Node3D" parent="World"]
|
||
|
|
||
|
[node name="Item" parent="World/Entities" instance=ExtResource("4_ttv16")]
|
||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 1.55623, 0, 0.612282)
|
||
|
item = ExtResource("6_1orlx")
|
||
|
|
||
|
[node name="Item4" parent="World/Entities" instance=ExtResource("4_ttv16")]
|
||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 3.17514, -2.38419e-07, 0.574962)
|
||
|
item = ExtResource("6_wnxjh")
|
||
|
|
||
|
[node name="Item2" parent="World/Entities" instance=ExtResource("4_ttv16")]
|
||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.978853, -2.38419e-07, -1.39068)
|
||
|
|
||
|
[node name="Item3" parent="World/Entities" instance=ExtResource("4_ttv16")]
|
||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 1.28455, 0, -0.204204)
|
||
|
item = ExtResource("6_3vb4g")
|
||
|
|
||
|
[node name="GridMap" type="GridMap" parent="World"]
|
||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -0.5, 0)
|
||
|
rotation_order = 1
|
||
|
mesh_library = ExtResource("8_gh3i5")
|
||
|
cell_size = Vector3(0.5, 0.5, 0.5)
|
||
|
cell_center_x = false
|
||
|
cell_center_y = false
|
||
|
cell_center_z = false
|
||
|
data = {
|
||
|
"cells": PackedInt32Array(0, 0, 14, 3, 0, 14, 6, 0, 14, 0, 65533, 14, 3, 65533, 14, 0, 3, 14, 3, 3, 14, 6, 3, 14, 6, 65533, 14, 9, 65533, 14, 6, 65530, 14, 3, 65530, 14, 0, 65530, 14, 65533, 65530, 14, 65533, 65533, 14, 65533, 0, 14, 65533, 3, 14, 65545, 1, 1441801, 65545, 4, 1441801, 65545, 65530, 1441801, 65543, 65528, 9, 65540, 65528, 9, 65537, 65528, 9, 131070, 65528, 9, 131067, 65529, 1441801, 131067, 65532, 1441801, 131067, 65535, 1441801, 131067, 2, 1441801, 131068, 65528, 9, 65544, 5, 9, 65541, 5, 9, 65538, 5, 9, 131071, 5, 9, 131068, 5, 9, 131067, 3, 1441801)
|
||
|
}
|
||
|
metadata/_editor_floor_ = Vector3(0, 1, 0)
|
||
|
|
||
|
[node name="Disabled" type="Node3D" parent="World"]
|
||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 1000, -1000, 0)
|
||
|
|
||
|
[node name="Level" type="Node3D" parent="World/Disabled"]
|
||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -1000, 0, 0)
|
||
|
visible = false
|
||
|
|
||
|
[node name="rockB3" parent="World/Disabled/Level" instance=ExtResource("17_h8tnl")]
|
||
|
transform = Transform3D(8, 0, 0, 0, 8, 0, 0, 0, 8, 0.367403, 0, -5.10016)
|
||
|
|
||
|
[node name="rockB4" parent="World/Disabled/Level" instance=ExtResource("17_h8tnl")]
|
||
|
transform = Transform3D(7.81859, 0, -1.69401, 0, 8, 0, 1.69401, 0, 7.81859, 4.26316, 0, -3.19084)
|
||
|
|
||
|
[node name="rockB5" parent="World/Disabled/Level" instance=ExtResource("17_h8tnl")]
|
||
|
transform = Transform3D(7.6853, 0, 2.22174, 0, 8, 0, -2.22174, 0, 7.6853, -4.43364, -9.53674e-07, 3.35167)
|
||
|
|
||
|
[node name="rockB6" parent="World/Disabled/Level" instance=ExtResource("17_h8tnl")]
|
||
|
transform = Transform3D(7.6853, 0, 2.22174, 0, 8, 0, -2.22174, 0, 7.6853, -0.978873, -4.76837e-07, 6.57311)
|
||
|
|
||
|
[node name="rockB7" parent="World/Disabled/Level" instance=ExtResource("17_h8tnl")]
|
||
|
transform = Transform3D(5.02262, 0, 6.22682, 0, 8, 0, -6.22682, 0, 5.02262, 2.60543, -4.76837e-07, 5.72751)
|
||
|
|
||
|
[node name="RockC" parent="World/Disabled/Level" instance=ExtResource("3_owduk")]
|
||
|
transform = Transform3D(-4.60411, -0.210968, -6.53893, -0.209429, 7.99649, -0.110533, 6.53898, 0.107567, -4.60762, -4.78623, 4.76837e-07, -2.1916)
|
||
|
|
||
|
[node name="GroundPlane" type="StaticBody3D" parent="World/Disabled"]
|
||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -1000, 0, 0)
|
||
|
visible = false
|
||
|
|
||
|
[node name="GroundMesh" type="CollisionShape3D" parent="World/Disabled/GroundPlane"]
|
||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -0.5, 0)
|
||
|
shape = SubResource("BoxShape3D_q3pbi")
|
||
|
|
||
|
[node name="GroundMesh" type="MeshInstance3D" parent="World/Disabled/GroundPlane/GroundMesh"]
|
||
|
mesh = SubResource("BoxMesh_i7opf")
|
||
|
skeleton = NodePath("../../../../..")
|
||
|
|
||
|
[node name="Merchant" type="CharacterBody3D" parent="World"]
|
||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 3.64783, 0, -1.58598)
|
||
|
|
||
|
[node name="MeshInstance3D" type="MeshInstance3D" parent="World/Merchant"]
|
||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.3, 0)
|
||
|
mesh = SubResource("CapsuleMesh_w3ek8")
|
||
|
|
||
|
[node name="CollisionShape3D" type="CollisionShape3D" parent="World/Merchant"]
|
||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.310637, 0)
|
||
|
shape = SubResource("CylinderShape3D_vq44x")
|
||
|
|
||
|
[node name="Camera3D" type="Camera3D" parent="World/Merchant"]
|
||
|
transform = Transform3D(1, 0, 0, 0, 0.460138, 0.887848, 0, -0.887848, 0.460138, 0, 2.91421, 1.186)
|
||
|
|
||
|
[node name="Sprite3D" type="Sprite3D" parent="World/Merchant"]
|
||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.828833, -0.164982)
|
||
|
billboard = 1
|
||
|
texture_filter = 0
|
||
|
texture = ExtResource("10_6agi3")
|
||
|
|
||
|
[node name="RootUI" type="CanvasLayer" parent="."]
|
||
|
script = ExtResource("2_gg3gt")
|
||
|
|
||
|
[node name="MainMenuUI" type="PanelContainer" parent="RootUI"]
|
||
|
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 = -199.0
|
||
|
offset_top = -134.5
|
||
|
offset_right = 199.0
|
||
|
offset_bottom = 134.5
|
||
|
grow_horizontal = 2
|
||
|
grow_vertical = 2
|
||
|
theme = ExtResource("8_qpuke")
|
||
|
|
||
|
[node name="MarginContainer" type="MarginContainer" parent="RootUI/MainMenuUI"]
|
||
|
layout_mode = 2
|
||
|
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="RootUI/MainMenuUI/MarginContainer"]
|
||
|
layout_mode = 2
|
||
|
|
||
|
[node name="MarginContainer" type="MarginContainer" parent="RootUI/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="RootUI/MainMenuUI/MarginContainer/VBoxContainer/MarginContainer"]
|
||
|
layout_mode = 2
|
||
|
text = "New Game"
|
||
|
|
||
|
[node name="MarginContainer4" type="MarginContainer" parent="RootUI/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="RootUI/MainMenuUI/MarginContainer/VBoxContainer/MarginContainer4"]
|
||
|
layout_mode = 2
|
||
|
text = "Load Game
|
||
|
"
|
||
|
|
||
|
[node name="MarginContainer2" type="MarginContainer" parent="RootUI/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="RootUI/MainMenuUI/MarginContainer/VBoxContainer/MarginContainer2"]
|
||
|
layout_mode = 2
|
||
|
text = "Options"
|
||
|
|
||
|
[node name="MarginContainer3" type="MarginContainer" parent="RootUI/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="RootUI/MainMenuUI/MarginContainer/VBoxContainer/MarginContainer3"]
|
||
|
layout_mode = 2
|
||
|
text = "Quit"
|
||
|
|
||
|
[node name="NewGameUI" type="PanelContainer" parent="RootUI"]
|
||
|
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
|
||
|
theme = ExtResource("8_qpuke")
|
||
|
|
||
|
[node name="MarginContainer" type="MarginContainer" parent="RootUI/NewGameUI"]
|
||
|
layout_mode = 2
|
||
|
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="RootUI/NewGameUI/MarginContainer"]
|
||
|
layout_mode = 2
|
||
|
|
||
|
[node name="Label" type="Label" parent="RootUI/NewGameUI/MarginContainer/VBoxContainer"]
|
||
|
layout_mode = 2
|
||
|
size_flags_horizontal = 4
|
||
|
size_flags_vertical = 6
|
||
|
text = "New Game"
|
||
|
|
||
|
[node name="MarginContainer" type="MarginContainer" parent="RootUI/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="RootUI/NewGameUI/MarginContainer/VBoxContainer/MarginContainer"]
|
||
|
layout_mode = 2
|
||
|
|
||
|
[node name="Label" type="Label" parent="RootUI/NewGameUI/MarginContainer/VBoxContainer/MarginContainer/HBoxContainer"]
|
||
|
layout_mode = 2
|
||
|
text = "World Name"
|
||
|
|
||
|
[node name="WorldNameEdit" type="TextEdit" parent="RootUI/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="RootUI/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="RootUI/NewGameUI/MarginContainer/VBoxContainer/MarginContainer2"]
|
||
|
layout_mode = 2
|
||
|
text = "Hardcore Mode"
|
||
|
|
||
|
[node name="MarginContainer3" type="MarginContainer" parent="RootUI/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="RootUI/NewGameUI/MarginContainer/VBoxContainer/MarginContainer3"]
|
||
|
layout_mode = 2
|
||
|
|
||
|
[node name="BackButton" type="Button" parent="RootUI/NewGameUI/MarginContainer/VBoxContainer/MarginContainer3/HBoxContainer"]
|
||
|
layout_mode = 2
|
||
|
text = "Back"
|
||
|
|
||
|
[node name="Control" type="Control" parent="RootUI/NewGameUI/MarginContainer/VBoxContainer/MarginContainer3/HBoxContainer"]
|
||
|
layout_mode = 2
|
||
|
size_flags_horizontal = 3
|
||
|
|
||
|
[node name="StartGameButton" type="Button" parent="RootUI/NewGameUI/MarginContainer/VBoxContainer/MarginContainer3/HBoxContainer"]
|
||
|
layout_mode = 2
|
||
|
text = "Start
|
||
|
"
|
||
|
|
||
|
[node name="GameUI" type="Control" parent="RootUI"]
|
||
|
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
|
||
|
theme = ExtResource("8_qpuke")
|
||
|
script = ExtResource("7_mw21s")
|
||
|
|
||
|
[node name="ToolSlots" type="MarginContainer" parent="RootUI/GameUI"]
|
||
|
layout_mode = 1
|
||
|
anchors_preset = 7
|
||
|
anchor_left = 0.5
|
||
|
anchor_top = 1.0
|
||
|
anchor_right = 0.5
|
||
|
anchor_bottom = 1.0
|
||
|
offset_left = -67.0
|
||
|
offset_top = -77.0
|
||
|
offset_right = 67.0
|
||
|
grow_horizontal = 2
|
||
|
grow_vertical = 0
|
||
|
theme_override_constants/margin_bottom = 32
|
||
|
|
||
|
[node name="PanelContainer" type="PanelContainer" parent="RootUI/GameUI/ToolSlots"]
|
||
|
layout_mode = 2
|
||
|
|
||
|
[node name="HBoxContainer" type="HBoxContainer" parent="RootUI/GameUI/ToolSlots/PanelContainer"]
|
||
|
layout_mode = 2
|
||
|
|
||
|
[node name="Button2" type="Button" parent="RootUI/GameUI/ToolSlots/PanelContainer/HBoxContainer"]
|
||
|
layout_mode = 2
|
||
|
icon = ExtResource("5_24tqj")
|
||
|
|
||
|
[node name="Button3" type="Button" parent="RootUI/GameUI/ToolSlots/PanelContainer/HBoxContainer"]
|
||
|
layout_mode = 2
|
||
|
icon = ExtResource("6_uid86")
|
||
|
|
||
|
[node name="Button" type="Button" parent="RootUI/GameUI/ToolSlots/PanelContainer/HBoxContainer"]
|
||
|
layout_mode = 2
|
||
|
icon = ExtResource("4_pcyi0")
|
||
|
|
||
|
[node name="MessagesContainer" type="MarginContainer" parent="RootUI/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="RootUI/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="RootUI/GameUI/MessagesContainer"]
|
||
|
unique_name_in_owner = true
|
||
|
wait_time = 2.0
|
||
|
|
||
|
[node name="InventoryDialog" type="MarginContainer" parent="RootUI/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
|
||
|
script = ExtResource("12_8cl6a")
|
||
|
slot_scene = ExtResource("12_v6fpp")
|
||
|
|
||
|
[node name="Panel" type="Panel" parent="RootUI/GameUI/InventoryDialog"]
|
||
|
layout_mode = 2
|
||
|
|
||
|
[node name="PanelContainer" type="VBoxContainer" parent="RootUI/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="RootUI/GameUI/InventoryDialog/Panel/PanelContainer"]
|
||
|
layout_mode = 2
|
||
|
size_flags_vertical = 0
|
||
|
|
||
|
[node name="Label" type="Label" parent="RootUI/GameUI/InventoryDialog/Panel/PanelContainer/Title"]
|
||
|
layout_mode = 2
|
||
|
size_flags_horizontal = 3
|
||
|
text = "Inventory"
|
||
|
horizontal_alignment = 1
|
||
|
|
||
|
[node name="CloseButton" type="Button" parent="RootUI/GameUI/InventoryDialog/Panel/PanelContainer/Title"]
|
||
|
layout_mode = 2
|
||
|
text = " X "
|
||
|
|
||
|
[node name="CraftingUI" type="MarginContainer" parent="RootUI/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="RootUI/GameUI/InventoryDialog/Panel/PanelContainer/CraftingUI"]
|
||
|
layout_mode = 2
|
||
|
theme_override_constants/separation = 17
|
||
|
|
||
|
[node name="Recipes" type="VBoxContainer" parent="RootUI/GameUI/InventoryDialog/Panel/PanelContainer/CraftingUI/HBoxContainer"]
|
||
|
layout_mode = 2
|
||
|
size_flags_horizontal = 3
|
||
|
|
||
|
[node name="Label" type="Label" parent="RootUI/GameUI/InventoryDialog/Panel/PanelContainer/CraftingUI/HBoxContainer/Recipes"]
|
||
|
layout_mode = 2
|
||
|
text = "Recipes"
|
||
|
|
||
|
[node name="RecipeList" type="ItemList" parent="RootUI/GameUI/InventoryDialog/Panel/PanelContainer/CraftingUI/HBoxContainer/Recipes"]
|
||
|
unique_name_in_owner = true
|
||
|
layout_mode = 2
|
||
|
size_flags_vertical = 3
|
||
|
theme = ExtResource("8_qpuke")
|
||
|
item_count = 2
|
||
|
item_0/text = "Blab"
|
||
|
item_1/text = "Bloobalb"
|
||
|
|
||
|
[node name="CraftIngredients" type="VBoxContainer" parent="RootUI/GameUI/InventoryDialog/Panel/PanelContainer/CraftingUI/HBoxContainer"]
|
||
|
layout_mode = 2
|
||
|
size_flags_horizontal = 3
|
||
|
|
||
|
[node name="Label" type="Label" parent="RootUI/GameUI/InventoryDialog/Panel/PanelContainer/CraftingUI/HBoxContainer/CraftIngredients"]
|
||
|
layout_mode = 2
|
||
|
text = "Ingredients"
|
||
|
|
||
|
[node name="Panel" type="Panel" parent="RootUI/GameUI/InventoryDialog/Panel/PanelContainer/CraftingUI/HBoxContainer/CraftIngredients"]
|
||
|
layout_mode = 2
|
||
|
size_flags_vertical = 3
|
||
|
|
||
|
[node name="CenterContainer" type="CenterContainer" parent="RootUI/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
|
||
|
|
||
|
[node name="IngredientsContainer" parent="RootUI/GameUI/InventoryDialog/Panel/PanelContainer/CraftingUI/HBoxContainer/CraftIngredients/Panel/CenterContainer" instance=ExtResource("15_5xu2a")]
|
||
|
unique_name_in_owner = true
|
||
|
layout_mode = 2
|
||
|
|
||
|
[node name="HBoxContainer" type="HBoxContainer" parent="RootUI/GameUI/InventoryDialog/Panel/PanelContainer/CraftingUI/HBoxContainer/CraftIngredients"]
|
||
|
layout_mode = 2
|
||
|
alignment = 1
|
||
|
|
||
|
[node name="Control" type="Control" parent="RootUI/GameUI/InventoryDialog/Panel/PanelContainer/CraftingUI/HBoxContainer/CraftIngredients"]
|
||
|
layout_mode = 2
|
||
|
|
||
|
[node name="Label" type="Label" parent="RootUI/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="RootUI/GameUI/InventoryDialog/Panel/PanelContainer/CraftingUI/HBoxContainer"]
|
||
|
layout_mode = 2
|
||
|
size_flags_horizontal = 3
|
||
|
|
||
|
[node name="Label" type="Label" parent="RootUI/GameUI/InventoryDialog/Panel/PanelContainer/CraftingUI/HBoxContainer/CraftResult"]
|
||
|
layout_mode = 2
|
||
|
text = "Result"
|
||
|
|
||
|
[node name="Panel" type="Panel" parent="RootUI/GameUI/InventoryDialog/Panel/PanelContainer/CraftingUI/HBoxContainer/CraftResult"]
|
||
|
layout_mode = 2
|
||
|
size_flags_vertical = 3
|
||
|
|
||
|
[node name="CenterContainer" type="CenterContainer" parent="RootUI/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
|
||
|
|
||
|
[node name="ResultsContainer" parent="RootUI/GameUI/InventoryDialog/Panel/PanelContainer/CraftingUI/HBoxContainer/CraftResult/Panel/CenterContainer" instance=ExtResource("15_5xu2a")]
|
||
|
unique_name_in_owner = true
|
||
|
layout_mode = 2
|
||
|
|
||
|
[node name="HBoxContainer" type="HBoxContainer" parent="RootUI/GameUI/InventoryDialog/Panel/PanelContainer/CraftingUI/HBoxContainer/CraftResult"]
|
||
|
layout_mode = 2
|
||
|
alignment = 1
|
||
|
|
||
|
[node name="CraftButton" type="Button" parent="RootUI/GameUI/InventoryDialog/Panel/PanelContainer/CraftingUI/HBoxContainer/CraftResult/HBoxContainer"]
|
||
|
unique_name_in_owner = true
|
||
|
layout_mode = 2
|
||
|
text = "Craft"
|
||
|
|
||
|
[node name="BackpackUI" type="MarginContainer" parent="RootUI/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="RootUI/GameUI/InventoryDialog/Panel/PanelContainer/BackpackUI"]
|
||
|
layout_mode = 2
|
||
|
|
||
|
[node name="Label" type="Label" parent="RootUI/GameUI/InventoryDialog/Panel/PanelContainer/BackpackUI/VBoxContainer"]
|
||
|
layout_mode = 2
|
||
|
text = "Backpack"
|
||
|
|
||
|
[node name="InventoryContainer" parent="RootUI/GameUI/InventoryDialog/Panel/PanelContainer/BackpackUI/VBoxContainer" instance=ExtResource("15_5xu2a")]
|
||
|
unique_name_in_owner = true
|
||
|
layout_mode = 2
|
||
|
|
||
|
[node name="GameMenuUI" type="PanelContainer" parent="RootUI"]
|
||
|
unique_name_in_owner = true
|
||
|
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
|
||
|
theme = ExtResource("8_qpuke")
|
||
|
|
||
|
[node name="MarginContainer" type="MarginContainer" parent="RootUI/GameMenuUI"]
|
||
|
layout_mode = 2
|
||
|
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="RootUI/GameMenuUI/MarginContainer"]
|
||
|
layout_mode = 2
|
||
|
|
||
|
[node name="MarginContainer4" type="MarginContainer" parent="RootUI/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="RootUI/GameMenuUI/MarginContainer/VBoxContainer/MarginContainer4"]
|
||
|
layout_mode = 2
|
||
|
text = "Save Game
|
||
|
"
|
||
|
|
||
|
[node name="MarginContainer2" type="MarginContainer" parent="RootUI/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="RootUI/GameMenuUI/MarginContainer/VBoxContainer/MarginContainer2"]
|
||
|
layout_mode = 2
|
||
|
text = "Options"
|
||
|
|
||
|
[node name="MarginContainer3" type="MarginContainer" parent="RootUI/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="RootUI/GameMenuUI/MarginContainer/VBoxContainer/MarginContainer3"]
|
||
|
layout_mode = 2
|
||
|
text = "Return to Game"
|
||
|
|
||
|
[node name="HSeparator" type="HSeparator" parent="RootUI/GameMenuUI/MarginContainer/VBoxContainer"]
|
||
|
layout_mode = 2
|
||
|
|
||
|
[node name="MarginContainer5" type="MarginContainer" parent="RootUI/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="RootUI/GameMenuUI/MarginContainer/VBoxContainer/MarginContainer5"]
|
||
|
layout_mode = 2
|
||
|
text = "Back to Main Menu"
|
||
|
|
||
|
[connection signal="trigger_message" from="World/Player" to="RootUI/GameUI" method="_on_player_trigger_message"]
|
||
|
[connection signal="pressed" from="RootUI/MainMenuUI/MarginContainer/VBoxContainer/MarginContainer/NewGameButton" to="RootUI" method="_on_new_game_button_pressed"]
|
||
|
[connection signal="pressed" from="RootUI/MainMenuUI/MarginContainer/VBoxContainer/MarginContainer3/QuitButton" to="RootUI" method="_on_quit_button_pressed"]
|
||
|
[connection signal="pressed" from="RootUI/NewGameUI/MarginContainer/VBoxContainer/MarginContainer3/HBoxContainer/BackButton" to="RootUI" method="_to_main_menu_button_pressed"]
|
||
|
[connection signal="pressed" from="RootUI/NewGameUI/MarginContainer/VBoxContainer/MarginContainer3/HBoxContainer/StartGameButton" to="RootUI" method="_on_start_game_button_pressed"]
|
||
|
[connection signal="timeout" from="RootUI/GameUI/MessagesContainer/MessageTimer" to="RootUI/GameUI" method="_on_message_timer_timeout"]
|
||
|
[connection signal="pressed" from="RootUI/GameUI/InventoryDialog/Panel/PanelContainer/Title/CloseButton" to="RootUI/GameUI/InventoryDialog" method="_on_close_button_pressed"]
|
||
|
[connection signal="item_selected" from="RootUI/GameUI/InventoryDialog/Panel/PanelContainer/CraftingUI/HBoxContainer/Recipes/RecipeList" to="RootUI/GameUI/InventoryDialog" method="_on_recipe_list_item_selected"]
|
||
|
[connection signal="pressed" from="RootUI/GameUI/InventoryDialog/Panel/PanelContainer/CraftingUI/HBoxContainer/CraftResult/HBoxContainer/CraftButton" to="RootUI/GameUI/InventoryDialog" method="_on_craft_button_pressed"]
|
||
|
[connection signal="pressed" from="RootUI/GameMenuUI/MarginContainer/VBoxContainer/MarginContainer3/BackToGameButton" to="RootUI" method="_on_start_game_button_pressed"]
|
||
|
[connection signal="pressed" from="RootUI/GameMenuUI/MarginContainer/VBoxContainer/MarginContainer5/ToMainMenuButton" to="RootUI" method="_to_main_menu_button_pressed"]
|