newlon/addons/pvzadventure/scenes/zombie_editor.tscn
2025-07-16 04:11:26 +05:00

135 lines
5.6 KiB
Text

[gd_scene load_steps=10 format=3 uid="uid://db5ah76l43ng2"]
[ext_resource type="Script" uid="uid://bnuno3uhya4sg" path="res://addons/pvzadventure/scripts/ZE_AssetBrowser.cs" id="1_klhya"]
[ext_resource type="Script" uid="uid://bd5hl0etgvf5a" path="res://addons/pvzadventure/scripts/ZombieEditor.cs" id="1_thd7y"]
[ext_resource type="Script" uid="uid://do7s5mo36c280" path="res://addons/pvzadventure/scripts/ZE_GridContainer.cs" id="2_13ic4"]
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_thd7y"]
bg_color = Color(0.430693, 0.742747, 0.314214, 1)
corner_radius_top_left = 5
corner_radius_top_right = 5
corner_radius_bottom_right = 5
corner_radius_bottom_left = 5
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_a2umq"]
bg_color = Color(0.503317, 0.859941, 0.370424, 1)
corner_radius_top_left = 5
corner_radius_top_right = 5
corner_radius_bottom_right = 5
corner_radius_bottom_left = 5
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_13ic4"]
bg_color = Color(0.655235, 0.676224, 0.627655, 1)
corner_radius_top_left = 5
corner_radius_top_right = 5
corner_radius_bottom_right = 5
corner_radius_bottom_left = 5
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_h81wb"]
bg_color = Color(1, 0.617482, 0.590722, 1)
corner_radius_top_left = 5
corner_radius_top_right = 5
corner_radius_bottom_right = 5
corner_radius_bottom_left = 5
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_vak4b"]
bg_color = Color(0.655235, 0.676224, 0.627655, 1)
corner_radius_top_left = 5
corner_radius_top_right = 5
corner_radius_bottom_right = 5
corner_radius_bottom_left = 5
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_nm0oj"]
bg_color = Color(0.999983, 0.30398, 0.31271, 1)
corner_radius_top_left = 5
corner_radius_top_right = 5
corner_radius_bottom_right = 5
corner_radius_bottom_left = 5
[node name="ZombieEditor" type="VBoxContainer" node_paths=PackedStringArray("container")]
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
script = ExtResource("1_thd7y")
container = NodePath("ZombieGrid/HBoxContainer/RowEditors")
[node name="ZombieGrid" type="ScrollContainer" parent="."]
layout_mode = 2
size_flags_vertical = 3
size_flags_stretch_ratio = 3.0
horizontal_scroll_mode = 2
vertical_scroll_mode = 0
[node name="HBoxContainer" type="HBoxContainer" parent="ZombieGrid"]
layout_mode = 2
size_flags_horizontal = 3
size_flags_vertical = 3
[node name="RowEditors" type="HBoxContainer" parent="ZombieGrid/HBoxContainer"]
layout_mode = 2
size_flags_vertical = 3
size_flags_stretch_ratio = 3.0
script = ExtResource("2_13ic4")
[node name="ControlButtons" type="VBoxContainer" parent="ZombieGrid/HBoxContainer"]
layout_mode = 2
[node name="NewButton" type="Button" parent="ZombieGrid/HBoxContainer/ControlButtons"]
custom_minimum_size = Vector2(32, 0)
layout_mode = 2
size_flags_vertical = 3
theme_override_colors/font_disabled_color = Color(1, 1, 1, 1)
theme_override_colors/font_hover_pressed_color = Color(1, 1, 1, 1)
theme_override_colors/font_hover_color = Color(1, 1, 1, 1)
theme_override_colors/font_color = Color(1, 1, 1, 1)
theme_override_colors/font_focus_color = Color(1, 1, 1, 1)
theme_override_colors/font_pressed_color = Color(0, 0, 0, 1)
theme_override_font_sizes/font_size = 24
theme_override_styles/disabled_mirrored = SubResource("StyleBoxFlat_thd7y")
theme_override_styles/disabled = SubResource("StyleBoxFlat_thd7y")
theme_override_styles/hover_pressed = SubResource("StyleBoxFlat_a2umq")
theme_override_styles/hover_mirrored = SubResource("StyleBoxFlat_a2umq")
theme_override_styles/hover = SubResource("StyleBoxFlat_thd7y")
theme_override_styles/pressed_mirrored = SubResource("StyleBoxFlat_13ic4")
theme_override_styles/pressed = SubResource("StyleBoxFlat_13ic4")
theme_override_styles/normal_mirrored = SubResource("StyleBoxFlat_thd7y")
theme_override_styles/normal = SubResource("StyleBoxFlat_thd7y")
text = "+"
[node name="RemoveButton" type="Button" parent="ZombieGrid/HBoxContainer/ControlButtons"]
custom_minimum_size = Vector2(32, 0)
layout_mode = 2
size_flags_vertical = 3
theme_override_colors/font_disabled_color = Color(1, 1, 1, 1)
theme_override_colors/font_hover_pressed_color = Color(1, 1, 1, 1)
theme_override_colors/font_hover_color = Color(1, 1, 1, 1)
theme_override_colors/font_color = Color(1, 1, 1, 1)
theme_override_colors/font_focus_color = Color(1, 1, 1, 1)
theme_override_colors/font_pressed_color = Color(0, 0, 0, 1)
theme_override_font_sizes/font_size = 24
theme_override_styles/disabled_mirrored = SubResource("StyleBoxFlat_h81wb")
theme_override_styles/disabled = SubResource("StyleBoxFlat_h81wb")
theme_override_styles/hover_pressed = SubResource("StyleBoxFlat_h81wb")
theme_override_styles/hover_mirrored = SubResource("StyleBoxFlat_h81wb")
theme_override_styles/hover = SubResource("StyleBoxFlat_h81wb")
theme_override_styles/pressed_mirrored = SubResource("StyleBoxFlat_vak4b")
theme_override_styles/pressed = SubResource("StyleBoxFlat_vak4b")
theme_override_styles/normal_mirrored = SubResource("StyleBoxFlat_nm0oj")
theme_override_styles/normal = SubResource("StyleBoxFlat_nm0oj")
text = "-"
[node name="AssetBrowser" type="ScrollContainer" parent="."]
layout_mode = 2
size_flags_vertical = 3
vertical_scroll_mode = 0
[node name="HBoxContainer" type="HBoxContainer" parent="AssetBrowser"]
layout_mode = 2
size_flags_horizontal = 3
size_flags_vertical = 3
script = ExtResource("1_klhya")
[connection signal="pressed" from="ZombieGrid/HBoxContainer/ControlButtons/NewButton" to="ZombieGrid/HBoxContainer/RowEditors" method="AddSpawn"]
[connection signal="pressed" from="ZombieGrid/HBoxContainer/ControlButtons/RemoveButton" to="ZombieGrid/HBoxContainer/RowEditors" method="RemoveSpawn"]