plant pick menu
This commit is contained in:
parent
73a2fe42ad
commit
32453f2e9d
18 changed files with 121 additions and 39 deletions
|
|
@ -1,14 +0,0 @@
|
|||
[gd_scene format=3 uid="uid://b1mbgkjvq5j76"]
|
||||
|
||||
[node name="Control" type="Control"]
|
||||
layout_mode = 3
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
|
||||
[node name="ColorRect" type="ColorRect" parent="."]
|
||||
layout_mode = 0
|
||||
offset_right = 189.0
|
||||
offset_bottom = 128.0
|
||||
34
scenes/gui/plants_pick_test.tscn
Normal file
34
scenes/gui/plants_pick_test.tscn
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
[gd_scene load_steps=4 format=3 uid="uid://boxt0hfowqe66"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://crlumefuo1biu" path="res://scripts/gui/plant_pick/seedpacket_generator.gd" id="1_celhi"]
|
||||
[ext_resource type="Script" uid="uid://co3yto3q7mnm7" path="res://scripts/level/level_data.gd" id="2_pdbkq"]
|
||||
[ext_resource type="Script" uid="uid://cbrhnb4tp4pem" path="res://scripts/gui/hotbar.gd" id="3_qyndx"]
|
||||
|
||||
[node name="PlantsPickTest" type="Control"]
|
||||
layout_mode = 3
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
|
||||
[node name="GridContainer" type="GridContainer" parent="."]
|
||||
layout_mode = 0
|
||||
anchor_left = 0.27
|
||||
anchor_top = 0.48
|
||||
anchor_right = 0.74
|
||||
anchor_bottom = 0.94
|
||||
columns = 3
|
||||
script = ExtResource("1_celhi")
|
||||
metadata/_edit_use_anchors_ = true
|
||||
|
||||
[node name="LevelData" type="Node" parent="."]
|
||||
script = ExtResource("2_pdbkq")
|
||||
|
||||
[node name="HBoxContainer" type="HBoxContainer" parent="."]
|
||||
layout_mode = 0
|
||||
offset_left = 69.0
|
||||
offset_top = 12.0
|
||||
offset_right = 479.0
|
||||
offset_bottom = 75.0
|
||||
script = ExtResource("3_qyndx")
|
||||
|
|
@ -1,7 +1,8 @@
|
|||
[gd_scene load_steps=11 format=3 uid="uid://bi4c34ii72y46"]
|
||||
[gd_scene load_steps=12 format=3 uid="uid://bi4c34ii72y46"]
|
||||
|
||||
[ext_resource type="Texture2D" uid="uid://dxyf557m4mq1p" path="res://assets/sprites/gui/EmptyPlantCard.png" id="1_4rm55"]
|
||||
[ext_resource type="Script" uid="uid://cepaa3acqx70d" path="res://scripts/gui/seedpacket/seedpacket.gd" id="1_c8vxi"]
|
||||
[ext_resource type="Texture2D" uid="uid://cabpf23ndlvx0" path="res://assets/sprites/gui/Selection.tres" id="3_fon4l"]
|
||||
[ext_resource type="Script" uid="uid://bppehhpn0u7ep" path="res://scripts/gui/seedpacket/seedpacket_cost_label.gd" id="3_tntkr"]
|
||||
[ext_resource type="Script" uid="uid://bx7k7g0ebkwef" path="res://scripts/gui/seedpacket/seedpacket_progressbar.gd" id="4_gr8e8"]
|
||||
[ext_resource type="Texture2D" uid="uid://dvldjlg0nr355" path="res://assets/sprites/atlases/atlas1.png" id="5_2cmc5"]
|
||||
|
|
@ -36,6 +37,7 @@ script = ExtResource("1_c8vxi")
|
|||
clip_children = 2
|
||||
layout_mode = 2
|
||||
texture_normal = ExtResource("1_4rm55")
|
||||
texture_focused = ExtResource("3_fon4l")
|
||||
stretch_mode = 0
|
||||
|
||||
[node name="Cost" type="Label" parent="TextureButton"]
|
||||
|
|
@ -65,6 +67,7 @@ offset_left = -27.0
|
|||
offset_top = -26.0
|
||||
offset_right = 24.984
|
||||
offset_bottom = -2.984
|
||||
mouse_filter = 2
|
||||
|
||||
[node name="Preview" type="TextureRect" parent="TextureButton/PreviewContainer"]
|
||||
layout_mode = 1
|
||||
|
|
@ -79,6 +82,7 @@ offset_right = -0.0800018
|
|||
offset_bottom = -0.0259933
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
mouse_filter = 2
|
||||
expand_mode = 1
|
||||
stretch_mode = 5
|
||||
|
||||
|
|
@ -89,6 +93,7 @@ anchor_right = 1.0
|
|||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
mouse_filter = 2
|
||||
theme_override_styles/background = SubResource("StyleBoxEmpty_tntkr")
|
||||
theme_override_styles/fill = SubResource("StyleBoxFlat_gr8e8")
|
||||
max_value = 1.0
|
||||
|
|
@ -96,7 +101,7 @@ fill_mode = 3
|
|||
show_percentage = false
|
||||
script = ExtResource("4_gr8e8")
|
||||
|
||||
[node name="AvaiabilityRect" type="ColorRect" parent="TextureButton"]
|
||||
[node name="Availability" type="ColorRect" parent="TextureButton"]
|
||||
visible = false
|
||||
layout_mode = 1
|
||||
anchors_preset = 15
|
||||
|
|
@ -104,6 +109,7 @@ anchor_right = 1.0
|
|||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
mouse_filter = 2
|
||||
color = Color(0, 0, 0, 0.247059)
|
||||
|
||||
[node name="Forbidden" type="TextureRect" parent="TextureButton"]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue