Player-field manipulations
This commit is contained in:
parent
9ced321538
commit
74759e9e16
21 changed files with 270 additions and 54 deletions
|
|
@ -1,25 +1,33 @@
|
|||
[gd_scene load_steps=5 format=3 uid="uid://c8qru1yhnbbkl"]
|
||||
[gd_scene load_steps=9 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"]
|
||||
[ext_resource type="Shader" path="res://assets/shaders/gui_masking.gdshader" id="4_bryew"]
|
||||
[ext_resource type="Texture2D" uid="uid://dxyf557m4mq1p" path="res://assets/sprites/gui/EmptyPlantCard.png" id="5_2k0xq"]
|
||||
[ext_resource type="Texture2D" uid="uid://c1afy0ga6h1ic" path="res://assets/sprites/white_box.png" id="5_7xerl"]
|
||||
[ext_resource type="Script" path="res://scripts/components/gui/VeilResizer.cs" id="5_d6igb"]
|
||||
|
||||
[sub_resource type="LabelSettings" id="LabelSettings_js4li"]
|
||||
font_size = 13
|
||||
font_color = Color(0, 0, 0, 1)
|
||||
|
||||
[node name="PlantSlot" type="TextureButton" node_paths=PackedStringArray("_cost", "_icon")]
|
||||
[sub_resource type="ShaderMaterial" id="ShaderMaterial_qxf0q"]
|
||||
shader = ExtResource("4_bryew")
|
||||
shader_parameter/mask = ExtResource("5_2k0xq")
|
||||
|
||||
[node name="PlantSlot" type="TextureButton" node_paths=PackedStringArray("_cost", "_icon", "_timer")]
|
||||
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_normal = ExtResource("5_2k0xq")
|
||||
texture_focused = ExtResource("2_5mpv8")
|
||||
stretch_mode = 0
|
||||
script = ExtResource("3_eer7n")
|
||||
_cost = NodePath("Cost")
|
||||
_icon = NodePath("PlantPreviewContainer/Preview")
|
||||
_timer = NodePath("RechargeTimer")
|
||||
metadata/_edit_use_anchors_ = true
|
||||
|
||||
[node name="Cost" type="Label" parent="."]
|
||||
|
|
@ -68,3 +76,28 @@ mouse_filter = 2
|
|||
mouse_default_cursor_shape = 2
|
||||
expand_mode = 1
|
||||
stretch_mode = 5
|
||||
|
||||
[node name="Veil" type="TextureProgressBar" parent="." node_paths=PackedStringArray("_referenceTimer")]
|
||||
material = SubResource("ShaderMaterial_qxf0q")
|
||||
layout_mode = 1
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
mouse_filter = 2
|
||||
max_value = 1.0
|
||||
step = 0.001
|
||||
fill_mode = 3
|
||||
nine_patch_stretch = true
|
||||
texture_progress = ExtResource("5_7xerl")
|
||||
tint_progress = Color(0, 0, 0, 0.843137)
|
||||
script = ExtResource("5_d6igb")
|
||||
_referenceTimer = NodePath("../RechargeTimer")
|
||||
|
||||
[node name="RechargeTimer" type="Timer" parent="."]
|
||||
one_shot = true
|
||||
|
||||
[connection signal="focus_exited" from="." to="." method="OnFocusExited"]
|
||||
[connection signal="pressed" from="." to="." method="OnPressed"]
|
||||
[connection signal="timeout" from="RechargeTimer" to="." method="Timeout"]
|
||||
|
|
|
|||
|
|
@ -1,11 +1,13 @@
|
|||
[gd_scene load_steps=9 format=3 uid="uid://cfnmspei3k4p7"]
|
||||
[gd_scene load_steps=11 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="Theme" uid="uid://b8l285cjcgeyi" path="res://resources/GameStyle.tres" id="1_xf6ra"]
|
||||
[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="Resource" uid="uid://drm42f48urvc4" path="res://resources/plants/Sunflower.tres" id="5_6vih5"]
|
||||
[ext_resource type="PackedScene" uid="uid://u5l3jd00s8vd" path="res://scenes/gui/pause_button.tscn" id="5_jyq78"]
|
||||
|
||||
[sub_resource type="StyleBoxTexture" id="StyleBoxTexture_ps2iw"]
|
||||
|
|
@ -23,6 +25,7 @@ anchor_right = 1.0
|
|||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
theme = ExtResource("1_xf6ra")
|
||||
|
||||
[node name="Hotbar" type="HBoxContainer" parent="."]
|
||||
layout_mode = 1
|
||||
|
|
@ -51,6 +54,7 @@ _resource = ExtResource("3_42s2d")
|
|||
|
||||
[node name="SecondSlot" parent="Hotbar/PanelContainer/Seedpackets" instance=ExtResource("2_cjtsw")]
|
||||
layout_mode = 2
|
||||
_resource = ExtResource("5_6vih5")
|
||||
|
||||
[node name="ThirdSlot" parent="Hotbar/PanelContainer/Seedpackets" instance=ExtResource("2_cjtsw")]
|
||||
layout_mode = 2
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue