Almanach 👍
This commit is contained in:
parent
a5322daa53
commit
0a7950e17a
9 changed files with 74 additions and 79 deletions
BIN
assets/sprites/field.png
Normal file
BIN
assets/sprites/field.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 8.1 KiB |
34
assets/sprites/field.png.import
Normal file
34
assets/sprites/field.png.import
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://ksxucobpgv7n"
|
||||
path="res://.godot/imported/field.png-8fc12d6ddb4478900fc9b327337caa43.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://assets/sprites/field.png"
|
||||
dest_files=["res://.godot/imported/field.png-8fc12d6ddb4478900fc9b327337caa43.ctex"]
|
||||
|
||||
[params]
|
||||
|
||||
compress/mode=0
|
||||
compress/high_quality=false
|
||||
compress/lossy_quality=0.7
|
||||
compress/hdr_compression=1
|
||||
compress/normal_map=0
|
||||
compress/channel_pack=0
|
||||
mipmaps/generate=false
|
||||
mipmaps/limit=-1
|
||||
roughness/mode=0
|
||||
roughness/src_normal=""
|
||||
process/fix_alpha_border=true
|
||||
process/premult_alpha=false
|
||||
process/normal_map_invert_y=false
|
||||
process/hdr_as_srgb=false
|
||||
process/hdr_clamp_exposure=false
|
||||
process/size_limit=0
|
||||
detect_3d/compress_to=1
|
||||
|
|
@ -1,20 +1,8 @@
|
|||
[gd_resource type="Resource" script_class="PlantResource" load_steps=9 format=3 uid="uid://bf7vjtufjc8kt"]
|
||||
[gd_resource type="Resource" script_class="PlantResource" load_steps=4 format=3 uid="uid://bf7vjtufjc8kt"]
|
||||
|
||||
[ext_resource type="Texture2D" uid="uid://d4btl7vqi4v0q" path="res://assets/sprites/plants/aloe.tres" id="1_t4137"]
|
||||
[ext_resource type="Script" uid="uid://cyenlko1knygw" path="res://scripts/resources/PlantResource.cs" id="1_vw2kg"]
|
||||
[ext_resource type="PackedScene" uid="uid://bw1w8jp0yeypy" path="res://scenes/entities/plants/aloe.tscn" id="2_6a4ia"]
|
||||
[ext_resource type="Texture2D" uid="uid://c35dr3hiy66k0" path="res://assets/sprites/gui/ChooseYourSeeds/PremiumFrameField.tres" id="3_2s3af"]
|
||||
[ext_resource type="Texture2D" uid="uid://31jc2e7dijas" path="res://assets/sprites/gui/PremiumPlantCard.tres" id="3_vfv8g"]
|
||||
[ext_resource type="Script" uid="uid://3m7xks3xq3hl" path="res://scripts/gui/seedpackets/CustomSeedpacketFrame.cs" id="4_d5nqg"]
|
||||
|
||||
[sub_resource type="LabelSettings" id="LabelSettings_2s3af"]
|
||||
|
||||
[sub_resource type="Resource" id="Resource_5me4i"]
|
||||
script = ExtResource("4_d5nqg")
|
||||
frame = ExtResource("3_vfv8g")
|
||||
font = SubResource("LabelSettings_2s3af")
|
||||
almanachField = ExtResource("3_2s3af")
|
||||
metadata/_custom_type_script = "uid://3m7xks3xq3hl"
|
||||
|
||||
[resource]
|
||||
script = ExtResource("1_vw2kg")
|
||||
|
|
@ -25,5 +13,4 @@ Scene = ExtResource("2_6a4ia")
|
|||
ReloadTime = 15.0
|
||||
ReloadProgress = 0.0
|
||||
Preview = ExtResource("1_t4137")
|
||||
customFrame = SubResource("Resource_5me4i")
|
||||
Layer = 1
|
||||
|
|
|
|||
|
|
@ -65,7 +65,6 @@ scale = Vector2(0.999835, 0.999835)
|
|||
|
||||
[node name="LeftUpperLeg" parent="CanvasGroup/basic_zombie_walk/Zombie/Butt" index="2"]
|
||||
use_parent_material = false
|
||||
scale = Vector2(0.999834, 0.999834)
|
||||
|
||||
[node name="LeftLowerLeg" parent="CanvasGroup/basic_zombie_walk/Zombie/Butt/LeftUpperLeg" index="1"]
|
||||
scale = Vector2(0.999834, 0.999834)
|
||||
|
|
@ -75,7 +74,6 @@ scale = Vector2(0.999831, 0.999831)
|
|||
|
||||
[node name="Body" parent="CanvasGroup/basic_zombie_walk/Zombie/Butt" index="3"]
|
||||
use_parent_material = false
|
||||
scale = Vector2(0.999829, 0.999829)
|
||||
|
||||
[node name="RightUpperArm" parent="CanvasGroup/basic_zombie_walk/Zombie/Butt/Body" index="0"]
|
||||
use_parent_material = false
|
||||
|
|
@ -93,21 +91,9 @@ skew = -0.000141144
|
|||
[node name="Head" parent="CanvasGroup/basic_zombie_walk/Zombie/Butt/Body" index="3"]
|
||||
scale = Vector2(0.999827, 0.999827)
|
||||
|
||||
[node name="Right_Eye" parent="CanvasGroup/basic_zombie_walk/Zombie/Butt/Body/Head/HeadParticle/Head" index="0"]
|
||||
position = Vector2(-16, -8)
|
||||
scale = Vector2(1, 1)
|
||||
|
||||
[node name="Left_Eye" parent="CanvasGroup/basic_zombie_walk/Zombie/Butt/Body/Head/HeadParticle/Head" index="1"]
|
||||
position = Vector2(-4, -9)
|
||||
scale = Vector2(1, 1)
|
||||
|
||||
[node name="Jaw" parent="CanvasGroup/basic_zombie_walk/Zombie/Butt/Body/Head/HeadParticle/Head" index="2"]
|
||||
position = Vector2(-3.001, 2.9983)
|
||||
rotation = 0.00791286
|
||||
scale = Vector2(0.999827, 0.999827)
|
||||
|
||||
[node name="Jaw" parent="CanvasGroup/basic_zombie_walk/Zombie/Butt/Body/Head" index="1"]
|
||||
scale = Vector2(0.999827, 0.999827)
|
||||
|
||||
[node name="Hat" parent="CanvasGroup/basic_zombie_walk/Zombie/Butt/Body/Head" index="4"]
|
||||
position = Vector2(-6, -8)
|
||||
|
|
@ -117,16 +103,12 @@ position = Vector2(0.994479, -10.0058)
|
|||
texture = ExtResource("3_0nlp0")
|
||||
degradationStages = Array[Texture]([ExtResource("3_0nlp0"), ExtResource("4_xx7fu"), ExtResource("5_v1iwd")])
|
||||
|
||||
[node name="LeftUpperArm" parent="CanvasGroup/basic_zombie_walk/Zombie/Butt/Body" index="4"]
|
||||
scale = Vector2(0.999829, 0.999829)
|
||||
|
||||
[node name="Left_Lower_Arm" parent="CanvasGroup/basic_zombie_walk/Zombie/Butt/Body/LeftUpperArm/HandProjectile" index="0"]
|
||||
rotation = 0.0766625
|
||||
scale = Vector2(1, 1)
|
||||
|
||||
[node name="Left_Hand" parent="CanvasGroup/basic_zombie_walk/Zombie/Butt/Body/LeftUpperArm/HandProjectile/Left_Lower_Arm" index="0"]
|
||||
show_behind_parent = false
|
||||
position = Vector2(-0.99983, 12.9978)
|
||||
rotation = -0.0338341
|
||||
scale = Vector2(0.999658, 0.999658)
|
||||
|
||||
|
|
|
|||
|
|
@ -67,9 +67,6 @@ scale = Vector2(0.999825, 0.999825)
|
|||
[node name="RightLowerArm" parent="CanvasGroup/basic_zombie_walk/Zombie/Butt/Body/RightUpperArm" index="1"]
|
||||
scale = Vector2(0.999825, 0.999825)
|
||||
|
||||
[node name="RightHand" parent="CanvasGroup/basic_zombie_walk/Zombie/Butt/Body/RightUpperArm/RightLowerArm" index="0"]
|
||||
scale = Vector2(0.999829, 0.999829)
|
||||
|
||||
[node name="Tie" parent="CanvasGroup/basic_zombie_walk/Zombie/Butt/Body" index="2"]
|
||||
rotation = -0.109484
|
||||
skew = -9.78708e-05
|
||||
|
|
@ -77,14 +74,6 @@ skew = -9.78708e-05
|
|||
[node name="Head" parent="CanvasGroup/basic_zombie_walk/Zombie/Butt/Body" index="3"]
|
||||
scale = Vector2(0.999829, 0.999829)
|
||||
|
||||
[node name="Right_Eye" parent="CanvasGroup/basic_zombie_walk/Zombie/Butt/Body/Head/HeadParticle/Head" index="0"]
|
||||
position = Vector2(-16, -8)
|
||||
scale = Vector2(1, 1)
|
||||
|
||||
[node name="Left_Eye" parent="CanvasGroup/basic_zombie_walk/Zombie/Butt/Body/Head/HeadParticle/Head" index="1"]
|
||||
position = Vector2(-4, -9)
|
||||
scale = Vector2(1, 1)
|
||||
|
||||
[node name="Jaw" parent="CanvasGroup/basic_zombie_walk/Zombie/Butt/Body/Head/HeadParticle/Head" index="2"]
|
||||
position = Vector2(-2.73308, 2.35578)
|
||||
rotation = -0.0509399
|
||||
|
|
@ -128,7 +117,6 @@ rotation = -0.0477755
|
|||
scale = Vector2(0.999998, 0.999998)
|
||||
|
||||
[node name="Left_Hand" parent="CanvasGroup/basic_zombie_walk/Zombie/Butt/Body/LeftUpperArm/HandProjectile/Left_Lower_Arm" index="0"]
|
||||
position = Vector2(-0.99983, 12.9978)
|
||||
rotation = -0.135402
|
||||
scale = Vector2(0.999661, 0.999661)
|
||||
|
||||
|
|
|
|||
|
|
@ -1,8 +1,7 @@
|
|||
[gd_scene load_steps=62 format=3 uid="uid://bgqmwsb6ynm81"]
|
||||
[gd_scene load_steps=61 format=3 uid="uid://bgqmwsb6ynm81"]
|
||||
|
||||
[ext_resource type="PackedScene" uid="uid://co11v3w8hbwgf" path="res://scenes/entities/Zombies/zombie.tscn" id="1_fnu7s"]
|
||||
[ext_resource type="Shader" uid="uid://d0eo5uuj222c4" path="res://assets/shaders/CG_color_blender.gdshader" id="2_6qr4h"]
|
||||
[ext_resource type="Script" uid="uid://bcc7skl7ts6sh" path="res://scripts/systems/effects/Effect.cs" id="2_b583s"]
|
||||
[ext_resource type="Resource" uid="uid://dsg1vjx76ifgu" path="res://resources/effects/GarlicEffect.tres" id="3_b583s"]
|
||||
[ext_resource type="Script" uid="uid://dt5uj25u0g6y3" path="res://scripts/particles/FallParticle.cs" id="3_tu6af"]
|
||||
[ext_resource type="Script" uid="uid://c5v2og85t7s6j" path="res://scripts/zombies/behaviours/HoboBehaviour.cs" id="4_5selg"]
|
||||
|
|
@ -755,7 +754,7 @@ mult_value = 1.0
|
|||
[node name="Hobo" node_paths=PackedStringArray("_armor") instance=ExtResource("1_fnu7s")]
|
||||
_armor = NodePath("CanArmor")
|
||||
MaxHP = 130.0
|
||||
_effectImmunities = Array[ExtResource("2_b583s")]([ExtResource("3_b583s")])
|
||||
_effectImmunities = [ExtResource("3_b583s")]
|
||||
|
||||
[node name="CanvasGroup" parent="." index="0"]
|
||||
material = SubResource("ShaderMaterial_w8pya")
|
||||
|
|
@ -767,16 +766,16 @@ scale = Vector2(0.999902, 0.999902)
|
|||
texture = SubResource("AtlasTexture_txjqc")
|
||||
|
||||
[node name="RightUpperLeg" parent="CanvasGroup/basic_zombie_walk/Zombie/Butt" index="1"]
|
||||
scale = Vector2(0.999826, 0.999826)
|
||||
scale = Vector2(0.999827, 0.999827)
|
||||
|
||||
[node name="Right_Upper_Leg" parent="CanvasGroup/basic_zombie_walk/Zombie/Butt/RightUpperLeg" index="0"]
|
||||
texture = SubResource("AtlasTexture_b583s")
|
||||
|
||||
[node name="RightLowerLeg" parent="CanvasGroup/basic_zombie_walk/Zombie/Butt/RightUpperLeg" index="1"]
|
||||
scale = Vector2(0.999831, 0.999831)
|
||||
scale = Vector2(0.99983, 0.99983)
|
||||
|
||||
[node name="RightFoot" parent="CanvasGroup/basic_zombie_walk/Zombie/Butt/RightUpperLeg/RightLowerLeg" index="0"]
|
||||
scale = Vector2(0.999824, 0.999824)
|
||||
scale = Vector2(0.999826, 0.999826)
|
||||
|
||||
[node name="Right_Foot" parent="CanvasGroup/basic_zombie_walk/Zombie/Butt/RightUpperLeg/RightLowerLeg/RightFoot" index="0"]
|
||||
texture = SubResource("AtlasTexture_uoit3")
|
||||
|
|
@ -785,34 +784,34 @@ texture = SubResource("AtlasTexture_uoit3")
|
|||
texture = SubResource("AtlasTexture_vn3j1")
|
||||
|
||||
[node name="LeftUpperLeg" parent="CanvasGroup/basic_zombie_walk/Zombie/Butt" index="2"]
|
||||
scale = Vector2(0.999825, 0.999825)
|
||||
scale = Vector2(0.99983, 0.99983)
|
||||
|
||||
[node name="Left_Upper_Leg" parent="CanvasGroup/basic_zombie_walk/Zombie/Butt/LeftUpperLeg" index="0"]
|
||||
texture = SubResource("AtlasTexture_yb81c")
|
||||
|
||||
[node name="LeftLowerLeg" parent="CanvasGroup/basic_zombie_walk/Zombie/Butt/LeftUpperLeg" index="1"]
|
||||
scale = Vector2(0.99983, 0.99983)
|
||||
scale = Vector2(0.999828, 0.999828)
|
||||
|
||||
[node name="Left_Lower_Leg" parent="CanvasGroup/basic_zombie_walk/Zombie/Butt/LeftUpperLeg/LeftLowerLeg" index="0"]
|
||||
texture = SubResource("AtlasTexture_nlwsb")
|
||||
|
||||
[node name="LeftFoot" parent="CanvasGroup/basic_zombie_walk/Zombie/Butt/LeftUpperLeg/LeftLowerLeg" index="1"]
|
||||
scale = Vector2(0.999818, 0.999818)
|
||||
scale = Vector2(0.999819, 0.999819)
|
||||
|
||||
[node name="Left_Foot" parent="CanvasGroup/basic_zombie_walk/Zombie/Butt/LeftUpperLeg/LeftLowerLeg/LeftFoot" index="0"]
|
||||
texture = SubResource("AtlasTexture_8y6c0")
|
||||
|
||||
[node name="Body" parent="CanvasGroup/basic_zombie_walk/Zombie/Butt" index="3"]
|
||||
scale = Vector2(0.999829, 0.999829)
|
||||
scale = Vector2(0.999827, 0.999827)
|
||||
|
||||
[node name="RightUpperArm" parent="CanvasGroup/basic_zombie_walk/Zombie/Butt/Body" index="0"]
|
||||
scale = Vector2(0.999829, 0.999829)
|
||||
scale = Vector2(0.999828, 0.999828)
|
||||
|
||||
[node name="Right_Upper_Arm" parent="CanvasGroup/basic_zombie_walk/Zombie/Butt/Body/RightUpperArm" index="0"]
|
||||
texture = SubResource("AtlasTexture_nc6p3")
|
||||
|
||||
[node name="RightLowerArm" parent="CanvasGroup/basic_zombie_walk/Zombie/Butt/Body/RightUpperArm" index="1"]
|
||||
scale = Vector2(0.999817, 0.999817)
|
||||
scale = Vector2(0.999813, 0.999813)
|
||||
|
||||
[node name="RightHand" parent="CanvasGroup/basic_zombie_walk/Zombie/Butt/Body/RightUpperArm/RightLowerArm" index="0"]
|
||||
scale = Vector2(0.999828, 0.999828)
|
||||
|
|
@ -827,7 +826,8 @@ texture = SubResource("AtlasTexture_op0h6")
|
|||
texture = SubResource("AtlasTexture_0s5wm")
|
||||
|
||||
[node name="Tie" parent="CanvasGroup/basic_zombie_walk/Zombie/Butt/Body" index="2"]
|
||||
rotation = 0.0277344
|
||||
position = Vector2(-9, -21)
|
||||
rotation = 0.0584823
|
||||
scale = Vector2(1e-05, 1e-05)
|
||||
|
||||
[node name="Tie" parent="CanvasGroup/basic_zombie_walk/Zombie/Butt/Body/Tie" index="0"]
|
||||
|
|
@ -869,23 +869,18 @@ scale = Vector2(0.999827, 0.999827)
|
|||
texture = SubResource("AtlasTexture_pjhfy")
|
||||
|
||||
[node name="Right_Eye" parent="CanvasGroup/basic_zombie_walk/Zombie/Butt/Body/Head/HeadParticle/Head" index="0"]
|
||||
position = Vector2(-16, -8)
|
||||
scale = Vector2(1, 1)
|
||||
|
||||
[node name="Left_Eye" parent="CanvasGroup/basic_zombie_walk/Zombie/Butt/Body/Head/HeadParticle/Head" index="1"]
|
||||
position = Vector2(-4, -9.00001)
|
||||
scale = Vector2(1, 1)
|
||||
position = Vector2(-16, -7.99999)
|
||||
|
||||
[node name="Jaw" parent="CanvasGroup/basic_zombie_walk/Zombie/Butt/Body/Head/HeadParticle/Head" index="2"]
|
||||
position = Vector2(-3, 3)
|
||||
rotation = -0.0451082
|
||||
rotation = -0.0951176
|
||||
scale = Vector2(0.999827, 0.999827)
|
||||
texture = SubResource("AtlasTexture_7cvmi")
|
||||
offset = Vector2(-14, -2)
|
||||
|
||||
[node name="Trashcan_lid" type="Sprite2D" parent="CanvasGroup/basic_zombie_walk/Zombie/Butt/Body/Head/HeadParticle/Head" index="3"]
|
||||
z_index = -1
|
||||
position = Vector2(-0.00229692, -17.0131)
|
||||
position = Vector2(-0.00229764, -17.0131)
|
||||
scale = Vector2(0.999828, 0.999828)
|
||||
texture = SubResource("AtlasTexture_n380g")
|
||||
offset = Vector2(-0.5, -0.5)
|
||||
|
|
@ -913,7 +908,7 @@ scale = Vector2(0.999827, 0.999827)
|
|||
texture = SubResource("AtlasTexture_tebih")
|
||||
|
||||
[node name="Left_Lower_Arm" parent="CanvasGroup/basic_zombie_walk/Zombie/Butt/Body/LeftUpperArm/HandProjectile" index="0"]
|
||||
rotation = 0.0250187
|
||||
rotation = 0.0527558
|
||||
scale = Vector2(0.999999, 0.999999)
|
||||
texture = SubResource("AtlasTexture_auxav")
|
||||
|
||||
|
|
@ -923,7 +918,7 @@ scale = Vector2(0.999652, 0.999652)
|
|||
texture = SubResource("AtlasTexture_dntsa")
|
||||
|
||||
[node name="LeftLowerArm" parent="CanvasGroup/basic_zombie_walk/Zombie/Butt/Body/LeftUpperArm" index="2"]
|
||||
scale = Vector2(0.999829, 0.999829)
|
||||
scale = Vector2(0.99983, 0.99983)
|
||||
|
||||
[node name="LeftHand" parent="CanvasGroup/basic_zombie_walk/Zombie/Butt/Body/LeftUpperArm/LeftLowerArm" index="0"]
|
||||
scale = Vector2(0.999822, 0.999822)
|
||||
|
|
@ -944,7 +939,6 @@ advance_expression_base_node = NodePath("../Behaviour")
|
|||
|
||||
[node name="Mover" parent="." index="4"]
|
||||
_speed = SubResource("Resource_4248q")
|
||||
_speedControlMult = 0.0
|
||||
|
||||
[node name="HitPlayer" parent="." index="6"]
|
||||
playlist = Array[AudioStream]([ExtResource("8_4248q"), ExtResource("9_tu6af")])
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
[gd_scene load_steps=10 format=3 uid="uid://bvpt0q4j6nx18"]
|
||||
[gd_scene load_steps=11 format=3 uid="uid://bvpt0q4j6nx18"]
|
||||
|
||||
[ext_resource type="Texture2D" uid="uid://dr8a0rx42o3qy" path="res://assets/sprites/gui/ChooseYourSeeds/PlantFrame.tres" id="1_1hnxi"]
|
||||
[ext_resource type="Script" uid="uid://bs1qywtqijyd2" path="res://scenes/gui/almanach.gd" id="1_oy57w"]
|
||||
|
|
@ -6,6 +6,7 @@
|
|||
[ext_resource type="Script" uid="uid://covbig00p22di" path="res://scripts/gui/choose_your_seeds/Previewport.cs" id="2_ru62c"]
|
||||
[ext_resource type="Texture2D" uid="uid://dycdvvgmgmfu6" path="res://assets/sprites/gui/ChooseYourSeeds/FrameField.tres" id="3_oy57w"]
|
||||
[ext_resource type="Script" uid="uid://c36bj8u7jghc7" path="res://scripts/audio/ChannelPlayer.cs" id="6_7vo1l"]
|
||||
[ext_resource type="Texture2D" uid="uid://ksxucobpgv7n" path="res://assets/sprites/field.png" id="6_vvhxq"]
|
||||
[ext_resource type="AudioStream" uid="uid://bdx83fokp6kha" path="res://assets/audio/sfx/buttonclick.mp3" id="7_vvhxq"]
|
||||
|
||||
[sub_resource type="ViewportTexture" id="ViewportTexture_ru62c"]
|
||||
|
|
@ -21,10 +22,11 @@ anchor_bottom = 1.0
|
|||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
tab_alignment = 1
|
||||
current_tab = 0
|
||||
current_tab = 1
|
||||
script = ExtResource("1_oy57w")
|
||||
|
||||
[node name="plants" type="HBoxContainer" parent="."]
|
||||
visible = false
|
||||
layout_mode = 2
|
||||
metadata/_tab_index = 0
|
||||
|
||||
|
|
@ -54,12 +56,13 @@ size_flags_horizontal = 0
|
|||
size_flags_vertical = 0
|
||||
texture = ExtResource("1_1hnxi")
|
||||
|
||||
[node name="Previewport" type="SubViewport" parent="plants/Infobox/FrameAndTitle/VboxContainer/Frame" node_paths=PackedStringArray("title", "description")]
|
||||
[node name="Previewport" type="SubViewport" parent="plants/Infobox/FrameAndTitle/VboxContainer/Frame" node_paths=PackedStringArray("title", "description", "_frameField")]
|
||||
canvas_item_default_texture_filter = 0
|
||||
size = Vector2i(65, 65)
|
||||
script = ExtResource("2_ru62c")
|
||||
title = NodePath("../../../Label")
|
||||
description = NodePath("../../../../Description/ScrollContainer/RichTextLabel")
|
||||
_frameField = NodePath("FrameField")
|
||||
|
||||
[node name="FrameField" type="Sprite2D" parent="plants/Infobox/FrameAndTitle/VboxContainer/Frame/Previewport"]
|
||||
texture = ExtResource("3_oy57w")
|
||||
|
|
@ -106,7 +109,6 @@ theme_override_colors/font_selected_color = Color(0, 0, 0, 1)
|
|||
bbcode_enabled = true
|
||||
|
||||
[node name="zombies" type="HBoxContainer" parent="."]
|
||||
visible = false
|
||||
layout_mode = 2
|
||||
metadata/_tab_index = 1
|
||||
|
||||
|
|
@ -137,15 +139,21 @@ size_flags_horizontal = 0
|
|||
size_flags_vertical = 0
|
||||
texture = ExtResource("1_1hnxi")
|
||||
|
||||
[node name="Previewport" type="SubViewport" parent="zombies/Infobox/FrameAndTitle/VBoxContainer/Frame" node_paths=PackedStringArray("title", "description")]
|
||||
[node name="Previewport" type="SubViewport" parent="zombies/Infobox/FrameAndTitle/VBoxContainer/Frame" node_paths=PackedStringArray("title", "description", "_frameField")]
|
||||
canvas_item_default_texture_filter = 0
|
||||
size = Vector2i(130, 130)
|
||||
script = ExtResource("2_ru62c")
|
||||
title = NodePath("../../../Label")
|
||||
description = NodePath("../../../../Description/ScrollContainer/RichTextLabel")
|
||||
_frameField = NodePath("CanvasLayer/Field")
|
||||
|
||||
[node name="FrameField" type="Sprite2D" parent="zombies/Infobox/FrameAndTitle/VBoxContainer/Frame/Previewport"]
|
||||
texture = ExtResource("3_oy57w")
|
||||
[node name="CanvasLayer" type="CanvasLayer" parent="zombies/Infobox/FrameAndTitle/VBoxContainer/Frame/Previewport"]
|
||||
layer = -10
|
||||
follow_viewport_enabled = true
|
||||
|
||||
[node name="Field" type="Sprite2D" parent="zombies/Infobox/FrameAndTitle/VBoxContainer/Frame/Previewport/CanvasLayer"]
|
||||
position = Vector2(0, 30)
|
||||
texture = ExtResource("6_vvhxq")
|
||||
|
||||
[node name="Camera2D" type="Camera2D" parent="zombies/Infobox/FrameAndTitle/VBoxContainer/Frame/Previewport"]
|
||||
position = Vector2(0, -45)
|
||||
|
|
|
|||
|
|
@ -175,12 +175,13 @@ layout_mode = 2
|
|||
layout_mode = 2
|
||||
texture = ExtResource("2_so2bw")
|
||||
|
||||
[node name="Previewport" type="SubViewport" parent="Panel/MarginContainer/VBoxContainer/HBoxContainer/Frame" node_paths=PackedStringArray("title", "description")]
|
||||
[node name="Previewport" type="SubViewport" parent="Panel/MarginContainer/VBoxContainer/HBoxContainer/Frame" node_paths=PackedStringArray("title", "description", "_frameField")]
|
||||
canvas_item_default_texture_filter = 0
|
||||
size = Vector2i(65, 65)
|
||||
script = ExtResource("3_fmc0y")
|
||||
title = NodePath("../../PanelContainer/ScrollContainer/VBoxContainer/Title")
|
||||
description = NodePath("../../PanelContainer/ScrollContainer/VBoxContainer/Description")
|
||||
_frameField = NodePath("FrameField")
|
||||
|
||||
[node name="FrameField" type="Sprite2D" parent="Panel/MarginContainer/VBoxContainer/HBoxContainer/Frame/Previewport"]
|
||||
texture = ExtResource("3_rn5vx")
|
||||
|
|
|
|||
|
|
@ -11,11 +11,12 @@ public partial class Previewport : SubViewport
|
|||
|
||||
[Export] private Label title;
|
||||
[Export] private RichTextLabel description;
|
||||
[Export] private Sprite2D _frameField;
|
||||
|
||||
public override void _Ready()
|
||||
{
|
||||
GetParent().GetViewport().GuiFocusChanged += OnFocusChanged;
|
||||
start_Field = GetNode<Sprite2D>("FrameField").Texture;
|
||||
start_Field = _frameField.Texture;
|
||||
}
|
||||
|
||||
public void OnFocusChanged(Control node)
|
||||
|
|
@ -36,10 +37,10 @@ public partial class Previewport : SubViewport
|
|||
}
|
||||
if (resource.customFrame != null && resource.customFrame.almanachField != null)
|
||||
{
|
||||
GetNode<Sprite2D>("FrameField").Texture = resource.customFrame.almanachField;
|
||||
_frameField.Texture = resource.customFrame.almanachField;
|
||||
}
|
||||
else
|
||||
GetNode<Sprite2D>("FrameField").Texture = start_Field;
|
||||
_frameField.Texture = start_Field;
|
||||
current_display = resource.Scene.Instantiate();
|
||||
title.Text = Tr(resource.name_key);
|
||||
description.Text = Tr(resource.description_key);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue