Zondre
This commit is contained in:
parent
c266d22f58
commit
2eb65c3092
24 changed files with 566 additions and 49 deletions
|
|
@ -1,25 +1,28 @@
|
|||
[gd_scene load_steps=4 format=3 uid="uid://c8qru1yhnbbkl"]
|
||||
[gd_scene load_steps=5 format=3 uid="uid://c8qru1yhnbbkl"]
|
||||
|
||||
[ext_resource type="Texture2D" uid="uid://cmgaryx5wgu14" path="res://assets/sprites/gui/PlantCard.tres" id="1_fugf5"]
|
||||
[ext_resource type="Texture2D" uid="uid://cabpf23ndlvx0" path="res://assets/sprites/gui/Selection.tres" id="2_5mpv8"]
|
||||
[ext_resource type="Script" path="res://scripts/components/gui/PlantSlot.cs" id="3_eer7n"]
|
||||
|
||||
[sub_resource type="LabelSettings" id="LabelSettings_js4li"]
|
||||
font_size = 13
|
||||
font_color = Color(0, 0, 0, 1)
|
||||
|
||||
[node name="PlantCard" type="TextureButton"]
|
||||
[node name="PlantSlot" type="TextureButton" node_paths=PackedStringArray("_cost", "_icon")]
|
||||
anchors_preset = -1
|
||||
anchor_right = 0.137
|
||||
anchor_bottom = 0.28
|
||||
offset_right = -0.200005
|
||||
mouse_default_cursor_shape = 2
|
||||
texture_normal = ExtResource("1_fugf5")
|
||||
texture_pressed = ExtResource("2_5mpv8")
|
||||
texture_focused = ExtResource("2_5mpv8")
|
||||
stretch_mode = 0
|
||||
script = ExtResource("3_eer7n")
|
||||
_cost = NodePath("Cost")
|
||||
_icon = NodePath("PlantPreviewContainer/Preview")
|
||||
metadata/_edit_use_anchors_ = true
|
||||
|
||||
[node name="Label" type="Label" parent="."]
|
||||
[node name="Cost" type="Label" parent="."]
|
||||
layout_mode = 1
|
||||
anchors_preset = -1
|
||||
anchor_left = 0.146
|
||||
|
|
@ -36,3 +39,32 @@ label_settings = SubResource("LabelSettings_js4li")
|
|||
horizontal_alignment = 1
|
||||
vertical_alignment = 1
|
||||
text_overrun_behavior = 3
|
||||
|
||||
[node name="PlantPreviewContainer" type="Control" parent="."]
|
||||
clip_contents = true
|
||||
layout_mode = 1
|
||||
anchor_left = -0.061
|
||||
anchor_top = -0.036
|
||||
anchor_right = 1.061
|
||||
anchor_bottom = 0.661
|
||||
offset_left = 0.00199986
|
||||
offset_top = 0.0320001
|
||||
offset_right = -0.0019989
|
||||
offset_bottom = -0.0319977
|
||||
mouse_filter = 2
|
||||
|
||||
[node name="Preview" type="TextureRect" parent="PlantPreviewContainer"]
|
||||
layout_mode = 1
|
||||
anchors_preset = -1
|
||||
anchor_left = 0.185
|
||||
anchor_top = 0.205
|
||||
anchor_right = 0.815
|
||||
anchor_bottom = 1.333
|
||||
offset_left = -0.0200005
|
||||
offset_top = 0.00999928
|
||||
offset_right = 0.0199966
|
||||
offset_bottom = 0.0259933
|
||||
mouse_filter = 2
|
||||
mouse_default_cursor_shape = 2
|
||||
expand_mode = 1
|
||||
stretch_mode = 5
|
||||
|
|
|
|||
|
|
@ -1,11 +1,21 @@
|
|||
[gd_scene load_steps=6 format=3 uid="uid://cfnmspei3k4p7"]
|
||||
[gd_scene load_steps=9 format=3 uid="uid://cfnmspei3k4p7"]
|
||||
|
||||
[ext_resource type="PackedScene" uid="uid://ky35veswaytr" path="res://scenes/gui/sun_counter.tscn" id="1_le3od"]
|
||||
[ext_resource type="PackedScene" uid="uid://c8qru1yhnbbkl" path="res://scenes/gui/plant_card.tscn" id="2_cjtsw"]
|
||||
[ext_resource type="Texture2D" uid="uid://bbh0uwloi87tn" path="res://assets/sprites/gui/PlantPanel.png" id="2_eg3hk"]
|
||||
[ext_resource type="Resource" uid="uid://c8rr1dc7mjr3d" path="res://resources/plants/Peashooter.tres" id="3_42s2d"]
|
||||
[ext_resource type="PackedScene" uid="uid://t0vpmycj6c8j" path="res://scenes/gui/shovel_button.tscn" id="3_bheea"]
|
||||
[ext_resource type="PackedScene" uid="uid://cgm7td1hgs0rr" path="res://scenes/gui/fast_forward_button.tscn" id="4_66uy4"]
|
||||
[ext_resource type="PackedScene" uid="uid://u5l3jd00s8vd" path="res://scenes/gui/pause_button.tscn" id="5_jyq78"]
|
||||
|
||||
[sub_resource type="StyleBoxTexture" id="StyleBoxTexture_ps2iw"]
|
||||
texture = ExtResource("2_eg3hk")
|
||||
texture_margin_left = 4.0
|
||||
texture_margin_top = 4.0
|
||||
texture_margin_right = 4.0
|
||||
texture_margin_bottom = 4.0
|
||||
axis_stretch_horizontal = 1
|
||||
|
||||
[node name="RuntimeGUI" type="Control"]
|
||||
layout_mode = 3
|
||||
anchors_preset = 15
|
||||
|
|
@ -26,35 +36,41 @@ metadata/_edit_use_anchors_ = true
|
|||
[node name="SunCounter" parent="Hotbar" instance=ExtResource("1_le3od")]
|
||||
layout_mode = 2
|
||||
|
||||
[node name="Seedpackets" type="HBoxContainer" parent="Hotbar"]
|
||||
[node name="PanelContainer" type="PanelContainer" parent="Hotbar"]
|
||||
layout_mode = 2
|
||||
theme_override_styles/panel = SubResource("StyleBoxTexture_ps2iw")
|
||||
|
||||
[node name="Seedpackets" type="HBoxContainer" parent="Hotbar/PanelContainer"]
|
||||
layout_mode = 2
|
||||
theme_override_constants/separation = 0
|
||||
|
||||
[node name="PlantCard" parent="Hotbar/Seedpackets" instance=ExtResource("2_cjtsw")]
|
||||
[node name="FirstSlot" parent="Hotbar/PanelContainer/Seedpackets" instance=ExtResource("2_cjtsw")]
|
||||
layout_mode = 2
|
||||
focus_neighbor_right = NodePath("../SecondSlot")
|
||||
_resource = ExtResource("3_42s2d")
|
||||
|
||||
[node name="SecondSlot" parent="Hotbar/PanelContainer/Seedpackets" instance=ExtResource("2_cjtsw")]
|
||||
layout_mode = 2
|
||||
|
||||
[node name="PlantCard2" parent="Hotbar/Seedpackets" instance=ExtResource("2_cjtsw")]
|
||||
[node name="ThirdSlot" parent="Hotbar/PanelContainer/Seedpackets" instance=ExtResource("2_cjtsw")]
|
||||
layout_mode = 2
|
||||
|
||||
[node name="PlantCard3" parent="Hotbar/Seedpackets" instance=ExtResource("2_cjtsw")]
|
||||
[node name="FourthSlot" parent="Hotbar/PanelContainer/Seedpackets" instance=ExtResource("2_cjtsw")]
|
||||
layout_mode = 2
|
||||
|
||||
[node name="PlantCard4" parent="Hotbar/Seedpackets" instance=ExtResource("2_cjtsw")]
|
||||
[node name="FifthSlot" parent="Hotbar/PanelContainer/Seedpackets" instance=ExtResource("2_cjtsw")]
|
||||
layout_mode = 2
|
||||
|
||||
[node name="PlantCard5" parent="Hotbar/Seedpackets" instance=ExtResource("2_cjtsw")]
|
||||
[node name="SixthSlot" parent="Hotbar/PanelContainer/Seedpackets" instance=ExtResource("2_cjtsw")]
|
||||
layout_mode = 2
|
||||
|
||||
[node name="PlantCard6" parent="Hotbar/Seedpackets" instance=ExtResource("2_cjtsw")]
|
||||
[node name="SeventhSlot" parent="Hotbar/PanelContainer/Seedpackets" instance=ExtResource("2_cjtsw")]
|
||||
layout_mode = 2
|
||||
|
||||
[node name="PlantCard7" parent="Hotbar/Seedpackets" instance=ExtResource("2_cjtsw")]
|
||||
[node name="EighthSlot" parent="Hotbar/PanelContainer/Seedpackets" instance=ExtResource("2_cjtsw")]
|
||||
layout_mode = 2
|
||||
|
||||
[node name="PlantCard8" parent="Hotbar/Seedpackets" instance=ExtResource("2_cjtsw")]
|
||||
layout_mode = 2
|
||||
|
||||
[node name="PlantCard9" parent="Hotbar/Seedpackets" instance=ExtResource("2_cjtsw")]
|
||||
[node name="NinthSlot" parent="Hotbar/PanelContainer/Seedpackets" instance=ExtResource("2_cjtsw")]
|
||||
layout_mode = 2
|
||||
|
||||
[node name="ShovelButton" parent="Hotbar" instance=ExtResource("3_bheea")]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue