droppable items and win
This commit is contained in:
parent
0f6445d677
commit
5bdbfa4d82
47 changed files with 820 additions and 85 deletions
42
scenes/gui/frame.tscn
Normal file
42
scenes/gui/frame.tscn
Normal file
|
|
@ -0,0 +1,42 @@
|
|||
[gd_scene load_steps=5 format=3 uid="uid://disdegexxmcro"]
|
||||
|
||||
[ext_resource type="Texture2D" uid="uid://dr8a0rx42o3qy" path="res://assets/sprites/gui/ChooseYourSeeds/PlantFrame.tres" id="1_hc23v"]
|
||||
[ext_resource type="Script" uid="uid://covbig00p22di" path="res://scripts/gui/choose_your_seeds/Previewport.cs" id="2_cf55k"]
|
||||
[ext_resource type="Texture2D" uid="uid://ksxucobpgv7n" path="res://assets/sprites/field.png" id="3_7j5d4"]
|
||||
|
||||
[sub_resource type="ViewportTexture" id="ViewportTexture_7yl8g"]
|
||||
viewport_path = NodePath("zombies/Infobox/FrameAndTitle/VBoxContainer/Frame/Previewport")
|
||||
|
||||
[node name="Frame" type="TextureRect"]
|
||||
clip_contents = true
|
||||
size_flags_horizontal = 0
|
||||
size_flags_vertical = 0
|
||||
texture = ExtResource("1_hc23v")
|
||||
|
||||
[node name="Previewport" type="SubViewport" parent="." node_paths=PackedStringArray("_frameField")]
|
||||
canvas_item_default_texture_filter = 0
|
||||
size = Vector2i(130, 130)
|
||||
script = ExtResource("2_cf55k")
|
||||
_frameField = NodePath("CanvasLayer/Field")
|
||||
|
||||
[node name="CanvasLayer" type="CanvasLayer" parent="Previewport"]
|
||||
layer = -10
|
||||
follow_viewport_enabled = true
|
||||
|
||||
[node name="Field" type="Sprite2D" parent="Previewport/CanvasLayer"]
|
||||
position = Vector2(0, 30)
|
||||
texture = ExtResource("3_7j5d4")
|
||||
|
||||
[node name="Camera2D" type="Camera2D" parent="Previewport"]
|
||||
position = Vector2(0, -45)
|
||||
|
||||
[node name="Render" type="TextureRect" parent="."]
|
||||
show_behind_parent = true
|
||||
layout_mode = 1
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
texture = SubResource("ViewportTexture_7yl8g")
|
||||
expand_mode = 1
|
||||
Loading…
Add table
Add a link
Reference in a new issue