Forbidden plants

This commit is contained in:
Rendo 2025-07-29 04:41:38 +05:00
commit 3fe903f2b8
9 changed files with 92 additions and 36 deletions

View file

@ -1,10 +1,11 @@
[gd_scene load_steps=4 format=3 uid="uid://dymyownbt688c"]
[gd_scene load_steps=5 format=3 uid="uid://dymyownbt688c"]
[ext_resource type="Texture2D" uid="uid://dxyf557m4mq1p" path="res://assets/sprites/gui/EmptyPlantCard.png" id="1_x27jk"]
[ext_resource type="Texture2D" uid="uid://cabpf23ndlvx0" path="res://assets/sprites/gui/Selection.tres" id="2_m8071"]
[ext_resource type="Texture2D" uid="uid://cjkwy3u0wuax3" path="res://assets/sprites/gui/ForbiddenPacket.tres" id="3_ji8qd"]
[ext_resource type="Script" uid="uid://cy5t2lk5g75x7" path="res://addons/pvzadventure/scripts/seedpacket-editor/ForbiddableSeedpacket.cs" id="3_m8071"]
[node name="EditorSeedpacket" type="TextureButton"]
[node name="EditorSeedpacket" type="TextureButton" node_paths=PackedStringArray("preview", "forrbidTexture")]
anchors_preset = -1
anchor_right = 0.137
anchor_bottom = 0.28
@ -13,6 +14,9 @@ mouse_default_cursor_shape = 2
texture_normal = ExtResource("1_x27jk")
texture_focused = ExtResource("2_m8071")
stretch_mode = 0
script = ExtResource("3_m8071")
preview = NodePath("PlantPreviewContainer/Preview")
forrbidTexture = NodePath("ForbiddenTexture")
metadata/_edit_use_anchors_ = true
[node name="PlantPreviewContainer" type="Control" parent="."]

View file

@ -112,6 +112,7 @@ layout_mode = 2
visible = false
layout_mode = 2
size_flags_vertical = 3
alignment = 1
[node name="Label" type="Label" parent="VBoxContainer/ForbiddenTags"]
layout_mode = 2
@ -128,6 +129,7 @@ columns = 9
[node name="ForbiddenPlants" type="VBoxContainer" parent="VBoxContainer"]
layout_mode = 2
size_flags_vertical = 3
alignment = 1
[node name="Label" type="Label" parent="VBoxContainer/ForbiddenPlants"]
layout_mode = 2
@ -138,6 +140,7 @@ vertical_alignment = 1
[node name="FPlantsContainer" type="GridContainer" parent="VBoxContainer/ForbiddenPlants"]
unique_name_in_owner = true
layout_mode = 2
size_flags_horizontal = 4
size_flags_vertical = 3
columns = 9