Compare commits
15 Commits
ad070514d7
...
inventory
| Author | SHA1 | Date | |
|---|---|---|---|
| ec5d42068e | |||
| 8fdb395ae8 | |||
| 60928c520c | |||
| f3ed5e0ad0 | |||
| ee897db52b | |||
| 41201d7406 | |||
| 267172d026 | |||
| 917e6a5f7e | |||
| 23ef4e9a63 | |||
| fa7cc66748 | |||
| 7b006d19ef | |||
| d76218f88f | |||
| ae4f7d9c58 | |||
| 9a5caef52f | |||
| 2ab1c38de9 |
@@ -7,3 +7,6 @@
|
||||
**/*.tmp
|
||||
**/*.translation
|
||||
**/*~lock~
|
||||
|
||||
# override config can be used by developers to override the settings without pushing changes to the repository
|
||||
override.cfg
|
||||
|
||||
@@ -2,5 +2,6 @@
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net8.0</TargetFramework>
|
||||
<EnableDynamicLoading>true</EnableDynamicLoading>
|
||||
<Nullable>enable</Nullable>
|
||||
</PropertyGroup>
|
||||
</Project>
|
||||
@@ -0,0 +1,5 @@
|
||||
<wpf:ResourceDictionary xml:space="preserve" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:s="clr-namespace:System;assembly=mscorlib" xmlns:ss="urn:shemas-jetbrains-com:settings-storage-xaml" xmlns:wpf="http://schemas.microsoft.com/winfx/2006/xaml/presentation">
|
||||
<s:String x:Key="/Default/PatternsAndTemplates/LiveTemplates/Template/=0B2502BD29F5EC4798EEFD2950AA7E06/Description/@EntryValue">Godot Signal</s:String>
|
||||
<s:String x:Key="/Default/PatternsAndTemplates/LiveTemplates/Template/=0B2502BD29F5EC4798EEFD2950AA7E06/Text/@EntryValue">[Signal]
|
||||
public delegate void $SignalName$EventHandler($END$);</s:String>
|
||||
<s:String x:Key="/Default/PatternsAndTemplates/LiveTemplates/Template/=0B2502BD29F5EC4798EEFD2950AA7E06/Field/=SignalName/Expression/@EntryValue">suggestVariableName()</s:String></wpf:ResourceDictionary>
|
||||
|
After Width: | Height: | Size: 53 KiB |
@@ -0,0 +1,34 @@
|
||||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://404glx32r1w8"
|
||||
path="res://.godot/imported/Room_01_bench.png-328b3f3028551ff0043ac2fb97b022f3.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://art/indoor/room export/Room_01_bench.png"
|
||||
dest_files=["res://.godot/imported/Room_01_bench.png-328b3f3028551ff0043ac2fb97b022f3.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
|
||||
|
After Width: | Height: | Size: 59 KiB |
@@ -0,0 +1,34 @@
|
||||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://blg50is4kuh2f"
|
||||
path="res://.godot/imported/Room_01_chair.png-328452a0d99e488b5786d8b154b52b3a.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://art/indoor/room export/Room_01_chair.png"
|
||||
dest_files=["res://.godot/imported/Room_01_chair.png-328452a0d99e488b5786d8b154b52b3a.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
|
||||
|
After Width: | Height: | Size: 59 KiB |
@@ -0,0 +1,34 @@
|
||||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://n4ivgiclkuky"
|
||||
path="res://.godot/imported/Room_01_chair_01.png-03613fca748ab538fadbb0fb7e655232.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://art/indoor/room export/Room_01_chair_01.png"
|
||||
dest_files=["res://.godot/imported/Room_01_chair_01.png-03613fca748ab538fadbb0fb7e655232.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
|
||||
|
After Width: | Height: | Size: 54 KiB |
@@ -0,0 +1,34 @@
|
||||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://tyypifpte0pb"
|
||||
path="res://.godot/imported/Room_01_chugun.png-75f7d81015311859218a8728a2ee7104.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://art/indoor/room export/Room_01_chugun.png"
|
||||
dest_files=["res://.godot/imported/Room_01_chugun.png-75f7d81015311859218a8728a2ee7104.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
|
||||
|
After Width: | Height: | Size: 304 KiB |
@@ -0,0 +1,34 @@
|
||||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://vyk63d0pgqm5"
|
||||
path="res://.godot/imported/Room_01_dioor L.png-22c4a879c116d8655624265e2ada0e2f.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://art/indoor/room export/Room_01_dioor L.png"
|
||||
dest_files=["res://.godot/imported/Room_01_dioor L.png-22c4a879c116d8655624265e2ada0e2f.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
|
||||
|
After Width: | Height: | Size: 113 KiB |
@@ -0,0 +1,34 @@
|
||||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://bqwhptcgg5ons"
|
||||
path="res://.godot/imported/Room_01_dorr_R.png-f424a690ec85b9441794c737fce17aac.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://art/indoor/room export/Room_01_dorr_R.png"
|
||||
dest_files=["res://.godot/imported/Room_01_dorr_R.png-f424a690ec85b9441794c737fce17aac.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
|
||||
|
After Width: | Height: | Size: 69 KiB |
@@ -0,0 +1,34 @@
|
||||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://b2rj7wkyu6ehy"
|
||||
path="res://.godot/imported/Room_01_pechka.png-0d09fb1bcae3565b3750d1b80e53d9b0.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://art/indoor/room export/Room_01_pechka.png"
|
||||
dest_files=["res://.godot/imported/Room_01_pechka.png-0d09fb1bcae3565b3750d1b80e53d9b0.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
|
||||
|
After Width: | Height: | Size: 47 KiB |
@@ -0,0 +1,34 @@
|
||||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://bpi35nxbhput8"
|
||||
path="res://.godot/imported/Room_01_pechkaDoor.png-d4fe6861f3e62b3badfcdeaf023100d9.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://art/indoor/room export/Room_01_pechkaDoor.png"
|
||||
dest_files=["res://.godot/imported/Room_01_pechkaDoor.png-d4fe6861f3e62b3badfcdeaf023100d9.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
|
||||
|
After Width: | Height: | Size: 1.0 MiB |
@@ -0,0 +1,34 @@
|
||||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://dujucy41nlh4o"
|
||||
path="res://.godot/imported/Room_01_preview.png-63fb80abdbae2594d004baf9b260ae27.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://art/indoor/room export/Room_01_preview.png"
|
||||
dest_files=["res://.godot/imported/Room_01_preview.png-63fb80abdbae2594d004baf9b260ae27.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
|
||||
|
After Width: | Height: | Size: 52 KiB |
@@ -0,0 +1,34 @@
|
||||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://cop1vjvhwlsec"
|
||||
path="res://.godot/imported/Room_01_shelf.png-a4062eca05d3a3e4f662c296a58f454e.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://art/indoor/room export/Room_01_shelf.png"
|
||||
dest_files=["res://.godot/imported/Room_01_shelf.png-a4062eca05d3a3e4f662c296a58f454e.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
|
||||
|
After Width: | Height: | Size: 97 KiB |
@@ -0,0 +1,34 @@
|
||||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://cnhsxxps2cw5"
|
||||
path="res://.godot/imported/Room_01_table.png-fbaae555b63a5e38a4b2fdb537cc7f6a.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://art/indoor/room export/Room_01_table.png"
|
||||
dest_files=["res://.godot/imported/Room_01_table.png-fbaae555b63a5e38a4b2fdb537cc7f6a.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
|
||||
|
After Width: | Height: | Size: 852 KiB |
@@ -0,0 +1,34 @@
|
||||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://waqmjrxduxfq"
|
||||
path="res://.godot/imported/Room_01_walls.png-0b88a0e392242bbee1de1c8f54d2638a.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://art/indoor/room export/Room_01_walls.png"
|
||||
dest_files=["res://.godot/imported/Room_01_walls.png-0b88a0e392242bbee1de1c8f54d2638a.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
|
||||
|
After Width: | Height: | Size: 128 KiB |
@@ -0,0 +1,34 @@
|
||||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://dhvi5404cqioa"
|
||||
path="res://.godot/imported/Room_01_window.png-e1fa0df237c633ec8bc96ab7003ac8c2.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://art/indoor/room export/Room_01_window.png"
|
||||
dest_files=["res://.godot/imported/Room_01_window.png-e1fa0df237c633ec8bc96ab7003ac8c2.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
|
||||
|
After Width: | Height: | Size: 2.0 MiB |
@@ -0,0 +1,34 @@
|
||||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://3ln8aleyxgp1"
|
||||
path="res://.godot/imported/UI_bag_export_01.png-849f65e7f0ae9838cbd0b40d7db0adbf.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://art/ui/UI/UI_bag_export_01.png"
|
||||
dest_files=["res://.godot/imported/UI_bag_export_01.png-849f65e7f0ae9838cbd0b40d7db0adbf.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
|
||||
|
After Width: | Height: | Size: 94 KiB |
@@ -0,0 +1,34 @@
|
||||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://dcidjcsqk12p1"
|
||||
path="res://.godot/imported/UI_bag_export_02.png-1d79b1aa82b484e614d86097168b3404.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://art/ui/UI/UI_bag_export_02.png"
|
||||
dest_files=["res://.godot/imported/UI_bag_export_02.png-1d79b1aa82b484e614d86097168b3404.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,4 +1,4 @@
|
||||
[gd_scene load_steps=822 format=3 uid="uid://c25udixd5m6l0"]
|
||||
[gd_scene load_steps=821 format=3 uid="uid://c25udixd5m6l0"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://cjbclkxesh3hc" path="res://scripts/CSharp/Common/CharacterControls/Player2D.cs" id="1_ssqtd"]
|
||||
[ext_resource type="Script" uid="uid://b05uyj001ehwi" path="res://scripts/CSharp/Common/Farming/VesnaBehaviour2D.cs" id="1_yl84k"]
|
||||
@@ -698,7 +698,6 @@
|
||||
[ext_resource type="Texture2D" uid="uid://cxcaqeilw6qyv" path="res://art/animation/Vesna2D/Vesna Anims Sequences/S02-Walk/0018.png" id="484_2au4g"]
|
||||
[ext_resource type="Texture2D" uid="uid://tywawvrx32tv" path="res://art/animation/Vesna2D/Vesna Anims Sequences/S02-Walk/0019.png" id="485_tsiv1"]
|
||||
[ext_resource type="Texture2D" uid="uid://e0act1bcstyj" path="res://art/animation/Vesna2D/Vesna Anims Sequences/S02-Walk/0020.png" id="486_i2imi"]
|
||||
[ext_resource type="PackedScene" uid="uid://cgjc4wurbgimy" path="res://prefabs/UI/Inventory/Inventory.tscn" id="539_aew1f"]
|
||||
[ext_resource type="Texture2D" uid="uid://dihktwgykpaux" path="res://art/animation/Vesna2D/Vesna Anims Tools/F02-Walk-Harke/0001.png" id="545_mor3p"]
|
||||
[ext_resource type="Texture2D" uid="uid://gg5807j8g780" path="res://art/animation/Vesna2D/Vesna Anims Tools/F02-Walk-Harke/0002.png" id="546_gd1lw"]
|
||||
[ext_resource type="Texture2D" uid="uid://bldn11wgjaqle" path="res://art/animation/Vesna2D/Vesna Anims Tools/F02-Walk-Harke/0003.png" id="547_6lalt"]
|
||||
@@ -1581,7 +1580,7 @@ animations = [{
|
||||
}],
|
||||
"loop": true,
|
||||
"name": &"diagonal farming",
|
||||
"speed": 10.0
|
||||
"speed": 12.0
|
||||
}, {
|
||||
"frames": [{
|
||||
"duration": 1.0,
|
||||
@@ -3502,12 +3501,12 @@ y_sort_enabled = true
|
||||
script = ExtResource("1_yl84k")
|
||||
_farmingControls = NodePath("FarmingControls")
|
||||
|
||||
[node name="CharacterBody2D" type="CharacterBody2D" parent="." node_paths=PackedStringArray("_sprite")]
|
||||
[node name="CharacterBody2D" type="CharacterBody2D" parent="." node_paths=PackedStringArray("_sprite") groups=["PlantGrowing"]]
|
||||
position = Vector2(0, 374)
|
||||
collision_layer = 4
|
||||
collision_mask = 3
|
||||
script = ExtResource("1_ssqtd")
|
||||
_speed = 1500.0
|
||||
_speed = 500.0
|
||||
_sprite = NodePath("visuals/Animated Sprites")
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="CharacterBody2D"]
|
||||
@@ -3523,9 +3522,8 @@ position = Vector2(0, -374)
|
||||
[node name="Animated Sprites" type="AnimatedSprite2D" parent="CharacterBody2D/visuals"]
|
||||
position = Vector2(0, 450)
|
||||
sprite_frames = SubResource("SpriteFrames_4yiyq")
|
||||
animation = &"side pickup"
|
||||
frame = 6
|
||||
frame_progress = 0.00476268
|
||||
animation = &"diagonal farming"
|
||||
frame_progress = 0.503028
|
||||
offset = Vector2(0, -450)
|
||||
|
||||
[node name="Hoe" type="Sprite2D" parent="CharacterBody2D/visuals"]
|
||||
@@ -3558,13 +3556,6 @@ region_rect = Rect2(-1, 1128, 417, 299)
|
||||
position = Vector2(26, -469)
|
||||
zoom = Vector2(0.3, 0.3)
|
||||
|
||||
[node name="Inventory" parent="CharacterBody2D" instance=ExtResource("539_aew1f")]
|
||||
visible = false
|
||||
z_index = 100
|
||||
offset_top = 226.0
|
||||
offset_bottom = 226.0
|
||||
scale = Vector2(3, 3)
|
||||
|
||||
[node name="FarmingControls" type="Node2D" parent="." node_paths=PackedStringArray("_movingPlayer", "_camera")]
|
||||
script = ExtResource("291_31q85")
|
||||
_fieldPrefab = ExtResource("294_28qer")
|
||||
|
||||
@@ -1,20 +1,32 @@
|
||||
[gd_scene load_steps=5 format=3 uid="uid://cgjc4wurbgimy"]
|
||||
[gd_scene load_steps=11 format=3 uid="uid://cgjc4wurbgimy"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://hg7jay2kt441" path="res://scripts/CSharp/Common/Inventory/InventoryUi.cs" id="1_6wusm"]
|
||||
[ext_resource type="Script" uid="uid://b2jhdxcrhtm2d" path="res://scripts/CSharp/Common/Inventory/InventoryTestScript.cs" id="3_exrk4"]
|
||||
[ext_resource type="Resource" uid="uid://datee0flk1e84" path="res://resources/items/pickaxe.tres" id="4_5fdxq"]
|
||||
[ext_resource type="Texture2D" uid="uid://3ln8aleyxgp1" path="res://art/ui/UI/UI_bag_export_01.png" id="3_vvo7l"]
|
||||
[ext_resource type="Texture2D" uid="uid://dcidjcsqk12p1" path="res://art/ui/UI/UI_bag_export_02.png" id="4_df8i8"]
|
||||
[ext_resource type="Texture2D" uid="uid://c7wqla0mbu3np" path="res://art/ui/babushka_ui_tmp_inventory_select.png" id="4_tiss4"]
|
||||
[ext_resource type="PackedScene" uid="uid://c0kmdjeqkqrwv" path="res://prefabs/UI/Inventory/Slot.tscn" id="5_u7kje"]
|
||||
[ext_resource type="Resource" uid="uid://blr8tine5m0ma" path="res://resources/items/tomato.tres" id="7_l3npx"]
|
||||
[ext_resource type="Resource" uid="uid://c5yg3lx756v4v" path="res://resources/items/hoe.tres" id="7_vvo7l"]
|
||||
[ext_resource type="Resource" uid="uid://d1uuxp1lp4aro" path="res://resources/items/tomato_seed.tres" id="8_nw1un"]
|
||||
[ext_resource type="Resource" uid="uid://c7viddcd3kywp" path="res://resources/items/axe.tres" id="10_o7h8q"]
|
||||
|
||||
[node name="Inventory" type="Control"]
|
||||
[node name="CanvasLayer" type="CanvasLayer"]
|
||||
layer = 90
|
||||
follow_viewport_enabled = true
|
||||
|
||||
[node name="Inventory" type="Control" parent="."]
|
||||
layout_mode = 3
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
scale = Vector2(0.7, 0.7)
|
||||
script = ExtResource("1_6wusm")
|
||||
metadata/_edit_use_anchors_ = true
|
||||
|
||||
[node name="SlotsContainer" type="Control" parent="."]
|
||||
[node name="SlotsContainer" type="Control" parent="Inventory"]
|
||||
custom_minimum_size = Vector2(500, 0)
|
||||
layout_mode = 1
|
||||
anchors_preset = 13
|
||||
@@ -24,34 +36,23 @@ anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
|
||||
[node name="Slots" type="GridContainer" parent="SlotsContainer"]
|
||||
custom_minimum_size = Vector2(1000, 200)
|
||||
layout_mode = 1
|
||||
anchors_preset = -1
|
||||
anchor_left = 0.5
|
||||
anchor_top = 1.0
|
||||
anchor_right = 0.5
|
||||
anchor_bottom = 1.0
|
||||
offset_bottom = 200.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 0
|
||||
theme_override_constants/h_separation = 0
|
||||
theme_override_constants/v_separation = 0
|
||||
columns = 10
|
||||
|
||||
[node name="SlotSelectContainer" type="Control" parent="SlotsContainer"]
|
||||
custom_minimum_size = Vector2(1000, 100)
|
||||
[node name="SlotSelectContainer" type="Control" parent="Inventory/SlotsContainer"]
|
||||
custom_minimum_size = Vector2(900, 100)
|
||||
layout_mode = 1
|
||||
anchors_preset = 7
|
||||
anchor_left = 0.5
|
||||
anchor_top = 1.0
|
||||
anchor_right = 0.5
|
||||
anchor_bottom = 1.0
|
||||
offset_left = -450.0
|
||||
offset_top = -115.0
|
||||
offset_right = 450.0
|
||||
offset_bottom = -15.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 0
|
||||
|
||||
[node name="Selector" type="TextureRect" parent="SlotsContainer/SlotSelectContainer"]
|
||||
visible = false
|
||||
[node name="Selector" type="TextureRect" parent="Inventory/SlotsContainer/SlotSelectContainer"]
|
||||
z_index = 10
|
||||
custom_minimum_size = Vector2(100, 100)
|
||||
layout_mode = 0
|
||||
offset_left = 1.0
|
||||
@@ -60,11 +61,316 @@ offset_bottom = 100.0
|
||||
texture = ExtResource("4_tiss4")
|
||||
expand_mode = 1
|
||||
|
||||
[node name="InventoryTester" type="Node" parent="."]
|
||||
script = ExtResource("3_exrk4")
|
||||
_testItemToCreate = ExtResource("4_5fdxq")
|
||||
[node name="SlotsMover" type="Control" parent="Inventory/SlotsContainer"]
|
||||
custom_minimum_size = Vector2(900, 610)
|
||||
layout_mode = 1
|
||||
anchors_preset = 12
|
||||
anchor_top = 1.0
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
offset_left = -200.0
|
||||
offset_top = -611.0
|
||||
offset_right = 200.0
|
||||
offset_bottom = -1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 0
|
||||
|
||||
[node name="BabushkaUiTmpInventorySelect" type="Sprite2D" parent="."]
|
||||
visible = false
|
||||
position = Vector2(-648, 1020)
|
||||
texture = ExtResource("4_tiss4")
|
||||
[node name="BackgroundContainer" type="Control" parent="Inventory/SlotsContainer/SlotsMover"]
|
||||
layout_mode = 1
|
||||
anchors_preset = 0
|
||||
offset_left = 5.0
|
||||
offset_top = 384.0
|
||||
offset_right = 901.0
|
||||
offset_bottom = 1230.0
|
||||
mouse_filter = 2
|
||||
|
||||
[node name="TextureRect" type="TextureRect" parent="Inventory/SlotsContainer/SlotsMover/BackgroundContainer"]
|
||||
layout_mode = 1
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
offset_left = -305.0
|
||||
offset_right = 303.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
mouse_filter = 2
|
||||
texture = ExtResource("3_vvo7l")
|
||||
expand_mode = 3
|
||||
|
||||
[node name="TextureRect2" type="TextureRect" parent="Inventory/SlotsContainer/SlotsMover/BackgroundContainer"]
|
||||
layout_mode = 1
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
mouse_filter = 2
|
||||
texture = ExtResource("3_vvo7l")
|
||||
expand_mode = 3
|
||||
flip_h = true
|
||||
|
||||
[node name="TextureRect3" type="TextureRect" parent="Inventory/SlotsContainer/SlotsMover/BackgroundContainer"]
|
||||
layout_mode = 1
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
mouse_filter = 2
|
||||
texture = ExtResource("4_df8i8")
|
||||
expand_mode = 3
|
||||
flip_h = true
|
||||
|
||||
[node name="Slots" type="Control" parent="Inventory/SlotsContainer/SlotsMover"]
|
||||
custom_minimum_size = Vector2(900, 610)
|
||||
layout_mode = 1
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
offset_top = 496.0
|
||||
offset_bottom = 496.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
|
||||
[node name="Slot" parent="Inventory/SlotsContainer/SlotsMover/Slots" instance=ExtResource("5_u7kje")]
|
||||
layout_mode = 1
|
||||
|
||||
[node name="Slot2" parent="Inventory/SlotsContainer/SlotsMover/Slots" instance=ExtResource("5_u7kje")]
|
||||
layout_mode = 1
|
||||
offset_left = 100.0
|
||||
offset_right = 200.0
|
||||
|
||||
[node name="Slot3" parent="Inventory/SlotsContainer/SlotsMover/Slots" instance=ExtResource("5_u7kje")]
|
||||
layout_mode = 1
|
||||
offset_left = 201.0
|
||||
offset_right = 301.0
|
||||
|
||||
[node name="Slot4" parent="Inventory/SlotsContainer/SlotsMover/Slots" instance=ExtResource("5_u7kje")]
|
||||
layout_mode = 1
|
||||
offset_left = 301.0
|
||||
offset_right = 401.0
|
||||
|
||||
[node name="Slot5" parent="Inventory/SlotsContainer/SlotsMover/Slots" instance=ExtResource("5_u7kje")]
|
||||
layout_mode = 1
|
||||
offset_left = 401.0
|
||||
offset_right = 501.0
|
||||
|
||||
[node name="Slot6" parent="Inventory/SlotsContainer/SlotsMover/Slots" instance=ExtResource("5_u7kje")]
|
||||
layout_mode = 1
|
||||
offset_left = 501.0
|
||||
offset_right = 601.0
|
||||
|
||||
[node name="Slot7" parent="Inventory/SlotsContainer/SlotsMover/Slots" instance=ExtResource("5_u7kje")]
|
||||
layout_mode = 1
|
||||
offset_left = 601.0
|
||||
offset_right = 701.0
|
||||
|
||||
[node name="Slot8" parent="Inventory/SlotsContainer/SlotsMover/Slots" instance=ExtResource("5_u7kje")]
|
||||
layout_mode = 1
|
||||
offset_left = 702.0
|
||||
offset_right = 802.0
|
||||
|
||||
[node name="Slot9" parent="Inventory/SlotsContainer/SlotsMover/Slots" instance=ExtResource("5_u7kje")]
|
||||
layout_mode = 1
|
||||
offset_left = 802.0
|
||||
offset_right = 902.0
|
||||
|
||||
[node name="Slot10" parent="Inventory/SlotsContainer/SlotsMover/Slots" instance=ExtResource("5_u7kje")]
|
||||
layout_mode = 1
|
||||
offset_left = 101.0
|
||||
offset_top = 212.0
|
||||
offset_right = 201.0
|
||||
offset_bottom = 312.0
|
||||
|
||||
[node name="Slot11" parent="Inventory/SlotsContainer/SlotsMover/Slots" instance=ExtResource("5_u7kje")]
|
||||
layout_mode = 1
|
||||
offset_left = 201.0
|
||||
offset_top = 212.0
|
||||
offset_right = 301.0
|
||||
offset_bottom = 312.0
|
||||
|
||||
[node name="Slot12" parent="Inventory/SlotsContainer/SlotsMover/Slots" instance=ExtResource("5_u7kje")]
|
||||
layout_mode = 1
|
||||
offset_left = 301.0
|
||||
offset_top = 212.0
|
||||
offset_right = 401.0
|
||||
offset_bottom = 312.0
|
||||
|
||||
[node name="Slot13" parent="Inventory/SlotsContainer/SlotsMover/Slots" instance=ExtResource("5_u7kje")]
|
||||
layout_mode = 1
|
||||
offset_left = 401.0
|
||||
offset_top = 212.0
|
||||
offset_right = 501.0
|
||||
offset_bottom = 312.0
|
||||
|
||||
[node name="Slot14" parent="Inventory/SlotsContainer/SlotsMover/Slots" instance=ExtResource("5_u7kje")]
|
||||
layout_mode = 1
|
||||
offset_left = 501.0
|
||||
offset_top = 212.0
|
||||
offset_right = 601.0
|
||||
offset_bottom = 312.0
|
||||
|
||||
[node name="Slot15" parent="Inventory/SlotsContainer/SlotsMover/Slots" instance=ExtResource("5_u7kje")]
|
||||
layout_mode = 1
|
||||
offset_left = 602.0
|
||||
offset_top = 212.0
|
||||
offset_right = 702.0
|
||||
offset_bottom = 312.0
|
||||
|
||||
[node name="Slot16" parent="Inventory/SlotsContainer/SlotsMover/Slots" instance=ExtResource("5_u7kje")]
|
||||
layout_mode = 1
|
||||
offset_left = 702.0
|
||||
offset_top = 212.0
|
||||
offset_right = 802.0
|
||||
offset_bottom = 312.0
|
||||
|
||||
[node name="Slot17" parent="Inventory/SlotsContainer/SlotsMover/Slots" instance=ExtResource("5_u7kje")]
|
||||
layout_mode = 1
|
||||
offset_left = 102.0
|
||||
offset_top = 312.0
|
||||
offset_right = 202.0
|
||||
offset_bottom = 412.0
|
||||
|
||||
[node name="Slot18" parent="Inventory/SlotsContainer/SlotsMover/Slots" instance=ExtResource("5_u7kje")]
|
||||
layout_mode = 1
|
||||
offset_left = 202.0
|
||||
offset_top = 312.0
|
||||
offset_right = 302.0
|
||||
offset_bottom = 412.0
|
||||
|
||||
[node name="Slot19" parent="Inventory/SlotsContainer/SlotsMover/Slots" instance=ExtResource("5_u7kje")]
|
||||
layout_mode = 1
|
||||
offset_left = 302.0
|
||||
offset_top = 312.0
|
||||
offset_right = 402.0
|
||||
offset_bottom = 412.0
|
||||
|
||||
[node name="Slot20" parent="Inventory/SlotsContainer/SlotsMover/Slots" instance=ExtResource("5_u7kje")]
|
||||
layout_mode = 1
|
||||
offset_left = 402.0
|
||||
offset_top = 312.0
|
||||
offset_right = 502.0
|
||||
offset_bottom = 412.0
|
||||
|
||||
[node name="Slot21" parent="Inventory/SlotsContainer/SlotsMover/Slots" instance=ExtResource("5_u7kje")]
|
||||
layout_mode = 1
|
||||
offset_left = 502.0
|
||||
offset_top = 312.0
|
||||
offset_right = 602.0
|
||||
offset_bottom = 412.0
|
||||
|
||||
[node name="Slot22" parent="Inventory/SlotsContainer/SlotsMover/Slots" instance=ExtResource("5_u7kje")]
|
||||
layout_mode = 1
|
||||
offset_left = 603.0
|
||||
offset_top = 312.0
|
||||
offset_right = 703.0
|
||||
offset_bottom = 412.0
|
||||
|
||||
[node name="Slot23" parent="Inventory/SlotsContainer/SlotsMover/Slots" instance=ExtResource("5_u7kje")]
|
||||
layout_mode = 1
|
||||
offset_left = 703.0
|
||||
offset_top = 312.0
|
||||
offset_right = 803.0
|
||||
offset_bottom = 412.0
|
||||
|
||||
[node name="Slot24" parent="Inventory/SlotsContainer/SlotsMover/Slots" instance=ExtResource("5_u7kje")]
|
||||
layout_mode = 1
|
||||
offset_left = 102.0
|
||||
offset_top = 412.0
|
||||
offset_right = 202.0
|
||||
offset_bottom = 512.0
|
||||
|
||||
[node name="Slot25" parent="Inventory/SlotsContainer/SlotsMover/Slots" instance=ExtResource("5_u7kje")]
|
||||
layout_mode = 1
|
||||
offset_left = 202.0
|
||||
offset_top = 412.0
|
||||
offset_right = 302.0
|
||||
offset_bottom = 512.0
|
||||
|
||||
[node name="Slot26" parent="Inventory/SlotsContainer/SlotsMover/Slots" instance=ExtResource("5_u7kje")]
|
||||
layout_mode = 1
|
||||
offset_left = 302.0
|
||||
offset_top = 412.0
|
||||
offset_right = 402.0
|
||||
offset_bottom = 512.0
|
||||
|
||||
[node name="Slot27" parent="Inventory/SlotsContainer/SlotsMover/Slots" instance=ExtResource("5_u7kje")]
|
||||
layout_mode = 1
|
||||
offset_left = 402.0
|
||||
offset_top = 412.0
|
||||
offset_right = 502.0
|
||||
offset_bottom = 512.0
|
||||
|
||||
[node name="Slot28" parent="Inventory/SlotsContainer/SlotsMover/Slots" instance=ExtResource("5_u7kje")]
|
||||
layout_mode = 1
|
||||
offset_left = 502.0
|
||||
offset_top = 412.0
|
||||
offset_right = 602.0
|
||||
offset_bottom = 512.0
|
||||
|
||||
[node name="Slot29" parent="Inventory/SlotsContainer/SlotsMover/Slots" instance=ExtResource("5_u7kje")]
|
||||
layout_mode = 1
|
||||
offset_left = 603.0
|
||||
offset_top = 412.0
|
||||
offset_right = 703.0
|
||||
offset_bottom = 512.0
|
||||
|
||||
[node name="Slot30" parent="Inventory/SlotsContainer/SlotsMover/Slots" instance=ExtResource("5_u7kje")]
|
||||
layout_mode = 1
|
||||
offset_left = 703.0
|
||||
offset_top = 412.0
|
||||
offset_right = 803.0
|
||||
offset_bottom = 512.0
|
||||
|
||||
[node name="Slot31" parent="Inventory/SlotsContainer/SlotsMover/Slots" instance=ExtResource("5_u7kje")]
|
||||
layout_mode = 1
|
||||
offset_left = 102.0
|
||||
offset_top = 512.0
|
||||
offset_right = 202.0
|
||||
offset_bottom = 612.0
|
||||
|
||||
[node name="Slot32" parent="Inventory/SlotsContainer/SlotsMover/Slots" instance=ExtResource("5_u7kje")]
|
||||
layout_mode = 1
|
||||
offset_left = 202.0
|
||||
offset_top = 512.0
|
||||
offset_right = 302.0
|
||||
offset_bottom = 612.0
|
||||
|
||||
[node name="Slot33" parent="Inventory/SlotsContainer/SlotsMover/Slots" instance=ExtResource("5_u7kje")]
|
||||
layout_mode = 1
|
||||
offset_left = 302.0
|
||||
offset_top = 512.0
|
||||
offset_right = 402.0
|
||||
offset_bottom = 612.0
|
||||
|
||||
[node name="Slot34" parent="Inventory/SlotsContainer/SlotsMover/Slots" instance=ExtResource("5_u7kje")]
|
||||
layout_mode = 1
|
||||
offset_left = 402.0
|
||||
offset_top = 512.0
|
||||
offset_right = 502.0
|
||||
offset_bottom = 612.0
|
||||
|
||||
[node name="Slot35" parent="Inventory/SlotsContainer/SlotsMover/Slots" instance=ExtResource("5_u7kje")]
|
||||
layout_mode = 1
|
||||
offset_left = 502.0
|
||||
offset_top = 512.0
|
||||
offset_right = 602.0
|
||||
offset_bottom = 612.0
|
||||
|
||||
[node name="Slot36" parent="Inventory/SlotsContainer/SlotsMover/Slots" instance=ExtResource("5_u7kje")]
|
||||
layout_mode = 1
|
||||
offset_left = 603.0
|
||||
offset_top = 512.0
|
||||
offset_right = 703.0
|
||||
offset_bottom = 612.0
|
||||
|
||||
[node name="Slot37" parent="Inventory/SlotsContainer/SlotsMover/Slots" instance=ExtResource("5_u7kje")]
|
||||
layout_mode = 1
|
||||
offset_left = 703.0
|
||||
offset_top = 512.0
|
||||
offset_right = 803.0
|
||||
offset_bottom = 612.0
|
||||
|
||||
[node name="InventoryTester" type="Node" parent="Inventory"]
|
||||
script = ExtResource("3_exrk4")
|
||||
_testItemsToCreate = Array[Object]([ExtResource("7_l3npx"), ExtResource("7_l3npx"), ExtResource("8_nw1un"), ExtResource("7_vvo7l"), ExtResource("10_o7h8q"), ExtResource("7_l3npx"), ExtResource("8_nw1un"), ExtResource("8_nw1un"), ExtResource("8_nw1un"), ExtResource("8_nw1un"), ExtResource("7_vvo7l")])
|
||||
|
||||
@@ -1,7 +1,8 @@
|
||||
[gd_scene load_steps=4 format=3 uid="uid://c0kmdjeqkqrwv"]
|
||||
[gd_scene load_steps=5 format=3 uid="uid://c0kmdjeqkqrwv"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://bh6wcyxh1f0cv" path="res://scripts/CSharp/Common/Inventory/SlotUi.cs" id="1_au0l0"]
|
||||
[ext_resource type="Texture2D" uid="uid://c2dbd0q02x2h" path="res://art/ui/babushka_ui_inventory_slot.png" id="2_7emux"]
|
||||
[ext_resource type="Texture2D" uid="uid://0p52bm8b1nrl" path="res://art/ui/UI/inventory_standard.png" id="2_7emux"]
|
||||
[ext_resource type="Texture2D" uid="uid://cfxibry711o16" path="res://art/ui/UI/icons/icon-scythe.png" id="3_n5ryf"]
|
||||
|
||||
[sub_resource type="LabelSettings" id="LabelSettings_7emux"]
|
||||
font_size = 15
|
||||
@@ -10,19 +11,20 @@ font_color = Color(0.203922, 1, 1, 1)
|
||||
[node name="Slot" type="Control"]
|
||||
custom_minimum_size = Vector2(100, 100)
|
||||
layout_mode = 3
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
offset_bottom = 2.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
anchors_preset = 0
|
||||
offset_right = 100.0
|
||||
offset_bottom = 100.0
|
||||
script = ExtResource("1_au0l0")
|
||||
|
||||
[node name="TextureRect" type="TextureRect" parent="."]
|
||||
[node name="SlotBackground" type="TextureRect" parent="."]
|
||||
layout_mode = 1
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
offset_left = 3.0
|
||||
offset_top = 3.0
|
||||
offset_right = -3.0
|
||||
offset_bottom = -3.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
texture = ExtResource("2_7emux")
|
||||
@@ -45,18 +47,29 @@ vertical_alignment = 1
|
||||
layout_mode = 1
|
||||
anchors_preset = -1
|
||||
anchor_left = 1.0
|
||||
anchor_top = 1.0
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
offset_left = -409.0
|
||||
offset_top = -329.0
|
||||
offset_left = -50.0
|
||||
offset_top = 9.0
|
||||
offset_right = -10.0
|
||||
offset_bottom = -10.0
|
||||
offset_bottom = 49.0
|
||||
grow_horizontal = 0
|
||||
grow_vertical = 0
|
||||
theme_override_colors/font_color = Color(0, 0, 0, 1)
|
||||
text = "999"
|
||||
horizontal_alignment = 2
|
||||
vertical_alignment = 2
|
||||
|
||||
[node name="Icon" type="TextureRect" parent="."]
|
||||
layout_mode = 1
|
||||
anchors_preset = -1
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
offset_left = 10.0
|
||||
offset_top = 10.0
|
||||
offset_right = -10.0
|
||||
offset_bottom = -10.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
texture = ExtResource("3_n5ryf")
|
||||
expand_mode = 1
|
||||
|
||||
[connection signal="gui_input" from="." to="." method="_on_gui_input"]
|
||||
|
||||
@@ -14,6 +14,7 @@ z_index = 1
|
||||
scale = Vector2(2.225, 2.225)
|
||||
|
||||
[node name="FieldBehaviour" type="Sprite2D" parent="."]
|
||||
z_index = -1
|
||||
texture = ExtResource("3_lsfck")
|
||||
script = ExtResource("2_femni")
|
||||
Tilled = ExtResource("3_lsfck")
|
||||
|
||||
@@ -1,11 +1,24 @@
|
||||
[gd_scene load_steps=6 format=3 uid="uid://c3hwbwo423nbm"]
|
||||
[gd_scene load_steps=8 format=3 uid="uid://c3hwbwo423nbm"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://cms357f23fmfy" path="res://scripts/CSharp/Common/Farming/PlantBehaviour2D.cs" id="1_tikj4"]
|
||||
[ext_resource type="Shader" uid="uid://braevmqauoek7" path="res://prefabs/farm/swaying_plant.gdshader" id="2_goh03"]
|
||||
[ext_resource type="Texture2D" uid="uid://dtr4uga5uspg" path="res://art/farm/farming/farmobjekte/tomaten/tomaten baby.png" id="2_rmjrk"]
|
||||
[ext_resource type="Texture2D" uid="uid://b2gu6ur2xc7s4" path="res://art/farm/farming/farmobjekte/tomaten/tomaten blume.png" id="3_goh03"]
|
||||
[ext_resource type="Texture2D" uid="uid://cnwd3mb3jnuxm" path="res://art/farm/farming/farmobjekte/tomaten/teen adulte tomaten.png" id="4_u4cty"]
|
||||
[ext_resource type="PackedScene" uid="uid://cqc72e4hq6bcd" path="res://prefabs/interaction_area_2d.tscn" id="5_tikj4"]
|
||||
|
||||
[sub_resource type="ShaderMaterial" id="ShaderMaterial_u4cty"]
|
||||
shader = ExtResource("2_goh03")
|
||||
shader_parameter/speed = 3.0
|
||||
shader_parameter/minStrength = 0.05
|
||||
shader_parameter/maxStrength = 0.36
|
||||
shader_parameter/strengthScale = 100.0
|
||||
shader_parameter/interval = 3.5
|
||||
shader_parameter/detail = 1.0
|
||||
shader_parameter/distortion = 0.0
|
||||
shader_parameter/heightOffset = 0.635
|
||||
shader_parameter/offset = 0.0
|
||||
|
||||
[node name="BasePlant" type="Node2D" node_paths=PackedStringArray("_seeds", "_smallPlants", "_bigPlants", "_readyPlants")]
|
||||
script = ExtResource("1_tikj4")
|
||||
_seeds = [NodePath("Seeds/TomatoSeed"), NodePath("Seeds/TomatoSeed2"), NodePath("Seeds/TomatoSeed3")]
|
||||
@@ -18,6 +31,8 @@ position = Vector2(0, 0.5)
|
||||
|
||||
[node name="TomatoSeed" type="Sprite2D" parent="Seeds"]
|
||||
visible = false
|
||||
y_sort_enabled = true
|
||||
material = SubResource("ShaderMaterial_u4cty")
|
||||
texture = ExtResource("2_rmjrk")
|
||||
flip_v = true
|
||||
region_enabled = true
|
||||
@@ -25,6 +40,8 @@ region_rect = Rect2(-2, 15, 85, 81)
|
||||
|
||||
[node name="TomatoSeed2" type="Sprite2D" parent="Seeds"]
|
||||
visible = false
|
||||
y_sort_enabled = true
|
||||
material = SubResource("ShaderMaterial_u4cty")
|
||||
texture = ExtResource("2_rmjrk")
|
||||
flip_v = true
|
||||
region_enabled = true
|
||||
@@ -32,6 +49,8 @@ region_rect = Rect2(15, 177, 84, 108)
|
||||
|
||||
[node name="TomatoSeed3" type="Sprite2D" parent="Seeds"]
|
||||
visible = false
|
||||
y_sort_enabled = true
|
||||
material = SubResource("ShaderMaterial_u4cty")
|
||||
texture = ExtResource("2_rmjrk")
|
||||
flip_v = true
|
||||
region_enabled = true
|
||||
@@ -42,24 +61,32 @@ position = Vector2(0, 0.5)
|
||||
|
||||
[node name="01" type="Sprite2D" parent="SmallPlant"]
|
||||
visible = false
|
||||
y_sort_enabled = true
|
||||
material = SubResource("ShaderMaterial_u4cty")
|
||||
texture = ExtResource("2_rmjrk")
|
||||
region_enabled = true
|
||||
region_rect = Rect2(203, 1, 128, 164)
|
||||
|
||||
[node name="02" type="Sprite2D" parent="SmallPlant"]
|
||||
visible = false
|
||||
y_sort_enabled = true
|
||||
material = SubResource("ShaderMaterial_u4cty")
|
||||
texture = ExtResource("2_rmjrk")
|
||||
region_enabled = true
|
||||
region_rect = Rect2(218, 204, 112, 130)
|
||||
|
||||
[node name="03" type="Sprite2D" parent="SmallPlant"]
|
||||
visible = false
|
||||
y_sort_enabled = true
|
||||
material = SubResource("ShaderMaterial_u4cty")
|
||||
texture = ExtResource("2_rmjrk")
|
||||
region_enabled = true
|
||||
region_rect = Rect2(224, 399, 105, 105)
|
||||
|
||||
[node name="04" type="Sprite2D" parent="SmallPlant"]
|
||||
visible = false
|
||||
y_sort_enabled = true
|
||||
material = SubResource("ShaderMaterial_u4cty")
|
||||
texture = ExtResource("2_rmjrk")
|
||||
region_enabled = true
|
||||
region_rect = Rect2(228, 600, 85, 92)
|
||||
@@ -69,24 +96,32 @@ position = Vector2(0, 2)
|
||||
|
||||
[node name="01" type="Sprite2D" parent="BigPlant"]
|
||||
visible = false
|
||||
y_sort_enabled = true
|
||||
material = SubResource("ShaderMaterial_u4cty")
|
||||
texture = ExtResource("3_goh03")
|
||||
region_enabled = true
|
||||
region_rect = Rect2(-8, 1, 498, 682)
|
||||
|
||||
[node name="02" type="Sprite2D" parent="BigPlant"]
|
||||
visible = false
|
||||
y_sort_enabled = true
|
||||
material = SubResource("ShaderMaterial_u4cty")
|
||||
texture = ExtResource("3_goh03")
|
||||
region_enabled = true
|
||||
region_rect = Rect2(575, 82, 516, 591)
|
||||
|
||||
[node name="03" type="Sprite2D" parent="BigPlant"]
|
||||
visible = false
|
||||
y_sort_enabled = true
|
||||
material = SubResource("ShaderMaterial_u4cty")
|
||||
texture = ExtResource("3_goh03")
|
||||
region_enabled = true
|
||||
region_rect = Rect2(-25, 694, 521, 687)
|
||||
|
||||
[node name="04" type="Sprite2D" parent="BigPlant"]
|
||||
visible = false
|
||||
y_sort_enabled = true
|
||||
material = SubResource("ShaderMaterial_u4cty")
|
||||
texture = ExtResource("3_goh03")
|
||||
region_enabled = true
|
||||
region_rect = Rect2(546, 697, 535, 687)
|
||||
@@ -96,24 +131,32 @@ position = Vector2(0, 2.3)
|
||||
|
||||
[node name="01" type="Sprite2D" parent="ReadyPlant"]
|
||||
visible = false
|
||||
y_sort_enabled = true
|
||||
material = SubResource("ShaderMaterial_u4cty")
|
||||
texture = ExtResource("4_u4cty")
|
||||
region_enabled = true
|
||||
region_rect = Rect2(399, 3, 679, 808)
|
||||
|
||||
[node name="02" type="Sprite2D" parent="ReadyPlant"]
|
||||
visible = false
|
||||
y_sort_enabled = true
|
||||
material = SubResource("ShaderMaterial_u4cty")
|
||||
texture = ExtResource("4_u4cty")
|
||||
region_enabled = true
|
||||
region_rect = Rect2(1077, 109, 633, 695)
|
||||
|
||||
[node name="03" type="Sprite2D" parent="ReadyPlant"]
|
||||
visible = false
|
||||
y_sort_enabled = true
|
||||
material = SubResource("ShaderMaterial_u4cty")
|
||||
texture = ExtResource("4_u4cty")
|
||||
region_enabled = true
|
||||
region_rect = Rect2(415, 838, 639, 817)
|
||||
|
||||
[node name="04" type="Sprite2D" parent="ReadyPlant"]
|
||||
visible = false
|
||||
y_sort_enabled = true
|
||||
material = SubResource("ShaderMaterial_u4cty")
|
||||
texture = ExtResource("4_u4cty")
|
||||
region_enabled = true
|
||||
region_rect = Rect2(1167, 863, 528, 785)
|
||||
|
||||
@@ -0,0 +1,43 @@
|
||||
// original wind shader from https://github.com/Maujoe/godot-simple-wind-shader-2d/tree/master/assets/maujoe.simple_wind_shader_2d
|
||||
// original script modified by HungryProton so that the assets are moving differently : https://pastebin.com/VL3AfV8D
|
||||
//
|
||||
// speed - The speed of the wind movement.
|
||||
// minStrength - The minimal strength of the wind movement.
|
||||
// maxStrength - The maximal strength of the wind movement.
|
||||
// strengthScale - Scalefactor for the wind strength.
|
||||
// interval - The time between minimal and maximal strength changes.
|
||||
// detail - The detail (number of waves) of the wind movement.
|
||||
// distortion - The strength of geometry distortion.
|
||||
// heightOffset - The height where the wind begins to move. By default 0.0.
|
||||
|
||||
shader_type canvas_item;
|
||||
render_mode blend_mix;
|
||||
|
||||
// Wind settings.
|
||||
uniform float speed = 1.0;
|
||||
uniform float minStrength : hint_range(0.0, 1.0) = 0.05;
|
||||
uniform float maxStrength : hint_range(0.0, 1.0) = 0.01;
|
||||
uniform float strengthScale = 100.0;
|
||||
uniform float interval = 3.5;
|
||||
uniform float detail = 1.0;
|
||||
uniform float distortion : hint_range(0.0, 1.0);
|
||||
uniform float heightOffset : hint_range(0.0, 1.0);
|
||||
|
||||
// With the offset value, you can if you want different moves for each asset. Just put a random value (1, 2, 3) in the editor. Don't forget to mark the material as unique if you use this
|
||||
uniform float offset = 0;
|
||||
|
||||
|
||||
float getWind(vec2 vertex, vec2 uv, float time){
|
||||
float diff = pow(maxStrength - minStrength, 2.0);
|
||||
float strength = clamp(minStrength + diff + sin(time / interval) * diff, minStrength, maxStrength) * strengthScale;
|
||||
float wind = (sin(time) + cos(time * detail)) * strength * max(0.0, (1.0-uv.y) - heightOffset);
|
||||
|
||||
return wind;
|
||||
}
|
||||
|
||||
void vertex() {
|
||||
vec4 pos = MODEL_MATRIX * vec4(0.0, 0.0, 0.0, 1.0);
|
||||
float time = TIME * speed + offset;
|
||||
//float time = TIME * speed + pos.x * pos.y ; not working when moving...
|
||||
VERTEX.x += getWind(VERTEX.xy, UV, time);
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
uid://braevmqauoek7
|
||||
@@ -0,0 +1,67 @@
|
||||
[gd_scene load_steps=9 format=3 uid="uid://dpbbroif2tnil"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://btusf04xnywhm" path="res://scripts/CSharp/Common/Inventory/ItemOnGround2D.cs" id="1_tlhp6"]
|
||||
[ext_resource type="Script" uid="uid://c8suoi3i6kqai" path="res://scripts/CSharp/Common/Inventory/ItemOnGroundSpawnWith.cs" id="3_xu8me"]
|
||||
[ext_resource type="PackedScene" uid="uid://cqc72e4hq6bcd" path="res://prefabs/interaction_area_2d.tscn" id="4_xu8me"]
|
||||
[ext_resource type="Texture2D" uid="uid://cfxibry711o16" path="res://art/ui/UI/icons/icon-scythe.png" id="5_harr4"]
|
||||
|
||||
[sub_resource type="Theme" id="Theme_tlhp6"]
|
||||
default_font_size = 80
|
||||
|
||||
[sub_resource type="Theme" id="Theme_harr4"]
|
||||
default_font_size = 40
|
||||
|
||||
[sub_resource type="CircleShape2D" id="CircleShape2D_tlhp6"]
|
||||
resource_local_to_scene = true
|
||||
radius = 300.0
|
||||
|
||||
[sub_resource type="Theme" id="Theme_xu8me"]
|
||||
default_font_size = 75
|
||||
|
||||
[node name="GenericItemOnGround" type="Node2D"]
|
||||
script = ExtResource("1_tlhp6")
|
||||
|
||||
[node name="SpawnWithItem" type="Node" parent="."]
|
||||
script = ExtResource("3_xu8me")
|
||||
|
||||
[node name="ItemLabel" type="Label" parent="."]
|
||||
offset_left = -264.0
|
||||
offset_top = -396.0
|
||||
offset_right = 269.0
|
||||
offset_bottom = -197.0
|
||||
theme = SubResource("Theme_tlhp6")
|
||||
text = "test"
|
||||
horizontal_alignment = 1
|
||||
vertical_alignment = 1
|
||||
|
||||
[node name="PickupErrorLabel" type="Label" parent="."]
|
||||
offset_left = -237.0
|
||||
offset_top = -330.0
|
||||
offset_right = 236.0
|
||||
offset_bottom = -232.0
|
||||
theme = SubResource("Theme_harr4")
|
||||
text = "thewe waf a pwoblem wiph picking up te item UWU"
|
||||
autowrap_mode = 3
|
||||
|
||||
[node name="InteractionArea2" parent="." instance=ExtResource("4_xu8me")]
|
||||
|
||||
[node name="CollisionShape3D" parent="InteractionArea2/Area2D" index="0"]
|
||||
shape = SubResource("CircleShape2D_tlhp6")
|
||||
|
||||
[node name="Label" parent="InteractionArea2" index="1"]
|
||||
offset_left = -142.0
|
||||
offset_top = -278.0
|
||||
offset_right = 1.0
|
||||
offset_bottom = -170.0
|
||||
theme = SubResource("Theme_xu8me")
|
||||
horizontal_alignment = 1
|
||||
vertical_alignment = 1
|
||||
|
||||
[node name="Icon" type="Sprite2D" parent="."]
|
||||
position = Vector2(5, -300)
|
||||
scale = Vector2(0.868852, 0.868852)
|
||||
texture = ExtResource("5_harr4")
|
||||
|
||||
[connection signal="Interacted" from="InteractionArea2" to="." method="TryPickUp"]
|
||||
|
||||
[editable path="InteractionArea2"]
|
||||
@@ -69,11 +69,17 @@ text/autopauses={}
|
||||
[display]
|
||||
|
||||
window/size/always_on_top=true
|
||||
window/stretch/mode="viewport"
|
||||
window/stretch/aspect="keep_height"
|
||||
|
||||
[dotnet]
|
||||
|
||||
project/assembly_name="Babushka"
|
||||
|
||||
[editor]
|
||||
|
||||
movie_writer/movie_file="/home/kaddi/Documents/Repos/Godot/Babushka/clips/clip.avi"
|
||||
|
||||
[editor_plugins]
|
||||
|
||||
enabled=PackedStringArray("res://addons/anthonyec.camera_preview/plugin.cfg", "res://addons/dialogic/plugin.cfg")
|
||||
@@ -91,6 +97,10 @@ folder_colors={
|
||||
"res://shader/": "pink"
|
||||
}
|
||||
|
||||
[global_group]
|
||||
|
||||
PlantGrowing=""
|
||||
|
||||
[input]
|
||||
|
||||
move_left={
|
||||
|
||||
@@ -1,10 +1,12 @@
|
||||
[gd_resource type="Resource" script_class="ItemResource" load_steps=2 format=3 uid="uid://cndd64batns31"]
|
||||
[gd_resource type="Resource" script_class="ItemResource" load_steps=3 format=3 uid="uid://cndd64batns31"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://cbskymrxs6ksu" path="res://scripts/CSharp/Common/Inventory/ItemResource.cs" id="1_8k5aa"]
|
||||
[ext_resource type="Texture2D" uid="uid://bh7oo5mypstyp" path="res://art/ui/UI/icons/icon-watercan.png" id="1_roi0v"]
|
||||
|
||||
[resource]
|
||||
script = ExtResource("1_8k5aa")
|
||||
name = "Buck the Bucket"
|
||||
name = "Can"
|
||||
color = Color(0.336269, 0.489145, 0.825324, 1)
|
||||
icon = ExtResource("1_roi0v")
|
||||
maxStack = 1
|
||||
metadata/_custom_type_script = "uid://cbskymrxs6ksu"
|
||||
|
||||
@@ -1,10 +1,12 @@
|
||||
[gd_resource type="Resource" script_class="ItemResource" load_steps=2 format=3 uid="uid://c5yg3lx756v4v"]
|
||||
[gd_resource type="Resource" script_class="ItemResource" load_steps=3 format=3 uid="uid://c5yg3lx756v4v"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://cbskymrxs6ksu" path="res://scripts/CSharp/Common/Inventory/ItemResource.cs" id="1_06nef"]
|
||||
[ext_resource type="Texture2D" uid="uid://cfxibry711o16" path="res://art/ui/UI/icons/icon-scythe.png" id="1_jd58x"]
|
||||
|
||||
[resource]
|
||||
script = ExtResource("1_06nef")
|
||||
name = "Your Mom"
|
||||
name = "Hoe"
|
||||
color = Color(0.751421, 0.329615, 0.570911, 1)
|
||||
icon = ExtResource("1_jd58x")
|
||||
maxStack = 1
|
||||
metadata/_custom_type_script = "uid://cbskymrxs6ksu"
|
||||
|
||||
@@ -6,4 +6,5 @@
|
||||
script = ExtResource("1_07aya")
|
||||
name = "Pick Axe"
|
||||
color = Color(0.589014, 0.823353, 0.998475, 1)
|
||||
maxStack = 1
|
||||
metadata/_custom_type_script = "uid://cbskymrxs6ksu"
|
||||
|
||||
@@ -0,0 +1,12 @@
|
||||
[gd_resource type="Resource" script_class="ItemResource" load_steps=3 format=3 uid="uid://blr8tine5m0ma"]
|
||||
|
||||
[ext_resource type="Texture2D" uid="uid://c3wht0nakaki1" path="res://art/ui/UI/icons/icon-fruit-tomatoe.png" id="1_k7rt3"]
|
||||
[ext_resource type="Script" uid="uid://cbskymrxs6ksu" path="res://scripts/CSharp/Common/Inventory/ItemResource.cs" id="1_olvff"]
|
||||
|
||||
[resource]
|
||||
script = ExtResource("1_olvff")
|
||||
name = "Tomato"
|
||||
color = Color(0.941176, 0, 0, 1)
|
||||
icon = ExtResource("1_k7rt3")
|
||||
maxStack = 20
|
||||
metadata/_custom_type_script = "uid://cbskymrxs6ksu"
|
||||
@@ -1,10 +1,12 @@
|
||||
[gd_resource type="Resource" script_class="ItemResource" load_steps=2 format=3 uid="uid://d1uuxp1lp4aro"]
|
||||
[gd_resource type="Resource" script_class="ItemResource" load_steps=3 format=3 uid="uid://d1uuxp1lp4aro"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://cbskymrxs6ksu" path="res://scripts/CSharp/Common/Inventory/ItemResource.cs" id="1_dustj"]
|
||||
[ext_resource type="Texture2D" uid="uid://ce04nexh36uwe" path="res://art/ui/UI/icons/icon-seed-tomatoe.png" id="1_u15c2"]
|
||||
|
||||
[resource]
|
||||
script = ExtResource("1_dustj")
|
||||
name = "Tomato Seed"
|
||||
color = Color(0.135039, 0.307214, 0.333128, 1)
|
||||
icon = ExtResource("1_u15c2")
|
||||
maxStack = 20
|
||||
metadata/_custom_type_script = "uid://cbskymrxs6ksu"
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
[gd_scene load_steps=54 format=3 uid="uid://gigb28qk8t12"]
|
||||
[gd_scene load_steps=58 format=3 uid="uid://gigb28qk8t12"]
|
||||
|
||||
[ext_resource type="PackedScene" uid="uid://c25udixd5m6l0" path="res://prefabs/Player2D.tscn" id="1_7wfwe"]
|
||||
[ext_resource type="Texture2D" uid="uid://8sr11ex30n0m" path="res://art/mockups/Kenney_Backgrounds/Samples/uncolored_hills.png" id="2_7b2ri"]
|
||||
@@ -25,12 +25,14 @@
|
||||
[ext_resource type="Texture2D" uid="uid://3ed3dgq3irn2" path="res://art/farm/farming/farmobjekte/zaun/tilable fence end part2.png" id="21_if5vh"]
|
||||
[ext_resource type="Texture2D" uid="uid://dg7rlugnq0t45" path="res://art/farm/farming/farmobjekte/brünnen.png" id="21_ualyd"]
|
||||
[ext_resource type="Script" uid="uid://dhxtdhfqx3bte" path="res://scripts/CSharp/Common/Farming/FieldService2D.cs" id="25_0qu0h"]
|
||||
[ext_resource type="PackedScene" uid="uid://dpbbroif2tnil" path="res://prefabs/interactions/generic_item_on_ground_2d.tscn" id="25_hukxv"]
|
||||
[ext_resource type="Resource" uid="uid://cndd64batns31" path="res://resources/items/bucket.tres" id="26_2nee2"]
|
||||
[ext_resource type="Resource" uid="uid://c5yg3lx756v4v" path="res://resources/items/hoe.tres" id="26_ipqaa"]
|
||||
[ext_resource type="Resource" uid="uid://c7viddcd3kywp" path="res://resources/items/axe.tres" id="27_ipqaa"]
|
||||
[ext_resource type="PackedScene" uid="uid://cqc72e4hq6bcd" path="res://prefabs/interaction_area_2d.tscn" id="27_klb81"]
|
||||
[ext_resource type="PackedScene" uid="uid://ce0mc0ddijmyi" path="res://prefabs/interactions/sprite_switcher_2d.tscn" id="28_p6n74"]
|
||||
[ext_resource type="Script" uid="uid://btusf04xnywhm" path="res://scripts/CSharp/Common/Inventory/ItemOnGround2D.cs" id="29_hukxv"]
|
||||
[ext_resource type="PackedScene" path="res://prefabs/interactions/sprite_switcher_2d.tscn" id="28_p6n74"]
|
||||
[ext_resource type="Texture2D" uid="uid://x8hr8287ff2n" path="res://art/farm/farming/farmobjekte/tools atlas.png" id="29_p6n74"]
|
||||
[ext_resource type="Script" uid="uid://bdsel2amlbnuq" path="res://scripts/CSharp/Common/Inventory/ItemOnGroundSpawnWith2D.cs" id="30_2nee2"]
|
||||
[ext_resource type="Resource" uid="uid://c5yg3lx756v4v" path="res://resources/items/hoe.tres" id="31_r0vdg"]
|
||||
[ext_resource type="PackedScene" uid="uid://cgjc4wurbgimy" path="res://prefabs/UI/Inventory/Inventory.tscn" id="32_2nee2"]
|
||||
|
||||
[sub_resource type="ShaderMaterial" id="ShaderMaterial_xy0kg"]
|
||||
shader = ExtResource("13_7p0hq")
|
||||
@@ -87,21 +89,6 @@ size = Vector2(374, 295.995)
|
||||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_klb81"]
|
||||
size = Vector2(353, 296)
|
||||
|
||||
[sub_resource type="ShaderMaterial" id="ShaderMaterial_lhtpe"]
|
||||
shader = ExtResource("13_7p0hq")
|
||||
shader_parameter/hue_shift = 0.0
|
||||
shader_parameter/saturation_mult = 1.0
|
||||
shader_parameter/value_mult = 1.068
|
||||
shader_parameter/brightness_add = 0.0
|
||||
shader_parameter/contrast_mult = 0.913
|
||||
|
||||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_2nee2"]
|
||||
size = Vector2(14208, 1176)
|
||||
|
||||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_p6n74"]
|
||||
resource_local_to_scene = true
|
||||
size = Vector2(7048, 1192)
|
||||
|
||||
[sub_resource type="ShaderMaterial" id="ShaderMaterial_2vojv"]
|
||||
shader = ExtResource("13_7p0hq")
|
||||
shader_parameter/hue_shift = 0.0
|
||||
@@ -117,6 +104,29 @@ size = Vector2(728, 368)
|
||||
resource_local_to_scene = true
|
||||
radius = 600.0
|
||||
|
||||
[sub_resource type="CircleShape2D" id="CircleShape2D_2nee2"]
|
||||
resource_local_to_scene = true
|
||||
radius = 300.0
|
||||
|
||||
[sub_resource type="CircleShape2D" id="CircleShape2D_ipqaa"]
|
||||
resource_local_to_scene = true
|
||||
radius = 300.0
|
||||
|
||||
[sub_resource type="ShaderMaterial" id="ShaderMaterial_lhtpe"]
|
||||
shader = ExtResource("13_7p0hq")
|
||||
shader_parameter/hue_shift = 0.0
|
||||
shader_parameter/saturation_mult = 1.0
|
||||
shader_parameter/value_mult = 1.068
|
||||
shader_parameter/brightness_add = 0.0
|
||||
shader_parameter/contrast_mult = 0.913
|
||||
|
||||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_2nee2"]
|
||||
size = Vector2(14208, 1176)
|
||||
|
||||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_p6n74"]
|
||||
resource_local_to_scene = true
|
||||
size = Vector2(7048, 1192)
|
||||
|
||||
[sub_resource type="CircleShape2D" id="CircleShape2D_kxdmn"]
|
||||
resource_local_to_scene = true
|
||||
radius = 300.0
|
||||
@@ -664,53 +674,14 @@ collision_mask = 2
|
||||
position = Vector2(-206.5, 12.001)
|
||||
shape = SubResource("RectangleShape2D_klb81")
|
||||
|
||||
[node name="Farm visuals" type="Node2D" parent="."]
|
||||
|
||||
[node name="Static" type="Node2D" parent="Farm visuals"]
|
||||
|
||||
[node name="House Mockup" type="Sprite2D" parent="Farm visuals/Static"]
|
||||
visible = false
|
||||
material = SubResource("ShaderMaterial_lhtpe")
|
||||
position = Vector2(5280, 1600)
|
||||
scale = Vector2(5, 5)
|
||||
texture = ExtResource("2_lhtpe")
|
||||
|
||||
[node name="StaticBody2D" type="StaticBody2D" parent="Farm visuals/Static/House Mockup"]
|
||||
visible = false
|
||||
collision_layer = 2
|
||||
collision_mask = 6
|
||||
|
||||
[node name="CollisionPolygon2D" type="CollisionPolygon2D" parent="Farm visuals/Static/House Mockup/StaticBody2D"]
|
||||
visible = false
|
||||
position = Vector2(-257.6, 236.8)
|
||||
polygon = PackedVector2Array(232, -4.80005, 0, 0, 0, -96, -262.4, -97.6, -265.6, -260.8, -310.4, -260.8, -235.2, -321.6, -124.8, -323.2, -57.6, -424, 84.8, -436.8, 118.4, -452.8, 136, -436.8, 726.4, -452.8, 817.6, -299.2, 785.6, -291.2, 785.6, -108.8, 241.6, -94.4)
|
||||
disabled = true
|
||||
|
||||
[node name="FieldParent" type="Node2D" parent="Farm visuals"]
|
||||
position = Vector2(48, 0)
|
||||
script = ExtResource("25_0qu0h")
|
||||
metadata/_custom_type_script = "uid://dhxtdhfqx3bte"
|
||||
|
||||
[node name="Area2D" type="Area2D" parent="Farm visuals/FieldParent"]
|
||||
position = Vector2(-48, -16)
|
||||
collision_mask = 5
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="Farm visuals/FieldParent/Area2D"]
|
||||
position = Vector2(1536, 2964)
|
||||
shape = SubResource("RectangleShape2D_2nee2")
|
||||
|
||||
[node name="CollisionShape2D2" type="CollisionShape2D" parent="Farm visuals/FieldParent/Area2D"]
|
||||
position = Vector2(13772, 2960)
|
||||
shape = SubResource("RectangleShape2D_p6n74")
|
||||
|
||||
[node name="YSorted" type="Node2D" parent="."]
|
||||
z_index = 1
|
||||
y_sort_enabled = true
|
||||
|
||||
[node name="Player2d" parent="YSorted" node_paths=PackedStringArray("_fieldParent") instance=ExtResource("1_7wfwe")]
|
||||
z_index = 1
|
||||
position = Vector2(1064, 2128)
|
||||
_fieldParent = NodePath("../../Farm visuals/FieldParent")
|
||||
position = Vector2(1071, 2125)
|
||||
_fieldParent = NodePath("../Farm visuals/FieldParent")
|
||||
|
||||
[node name="Brünnen" type="Sprite2D" parent="YSorted"]
|
||||
z_index = 1
|
||||
@@ -734,6 +705,73 @@ _id = 1
|
||||
position = Vector2(80, -368)
|
||||
shape = SubResource("CircleShape2D_p6n74")
|
||||
|
||||
[node name="HoeGenericPickup" parent="YSorted" instance=ExtResource("25_hukxv")]
|
||||
position = Vector2(4482, 1978)
|
||||
|
||||
[node name="SpawnWithItem" parent="YSorted/HoeGenericPickup" index="0"]
|
||||
_blueprint = ExtResource("26_ipqaa")
|
||||
|
||||
[node name="CollisionShape3D" parent="YSorted/HoeGenericPickup/InteractionArea2/Area2D" index="0"]
|
||||
shape = SubResource("CircleShape2D_2nee2")
|
||||
|
||||
[node name="GenericPickupWithoutIcon" parent="YSorted" instance=ExtResource("25_hukxv")]
|
||||
position = Vector2(3657, 1978)
|
||||
|
||||
[node name="SpawnWithItem" parent="YSorted/GenericPickupWithoutIcon" index="0"]
|
||||
_blueprint = ExtResource("27_ipqaa")
|
||||
|
||||
[node name="CollisionShape3D" parent="YSorted/GenericPickupWithoutIcon/InteractionArea2/Area2D" index="0"]
|
||||
shape = SubResource("CircleShape2D_2nee2")
|
||||
|
||||
[node name="CanGenericPickup" parent="YSorted" instance=ExtResource("25_hukxv")]
|
||||
position = Vector2(2795, 2001)
|
||||
|
||||
[node name="SpawnWithItem" parent="YSorted/CanGenericPickup" index="0"]
|
||||
_blueprint = ExtResource("26_2nee2")
|
||||
|
||||
[node name="CollisionShape3D" parent="YSorted/CanGenericPickup/InteractionArea2/Area2D" index="0"]
|
||||
shape = SubResource("CircleShape2D_ipqaa")
|
||||
|
||||
[node name="Farm visuals" type="Node2D" parent="YSorted"]
|
||||
position = Vector2(-60, 122)
|
||||
|
||||
[node name="Static" type="Node2D" parent="YSorted/Farm visuals"]
|
||||
|
||||
[node name="House Mockup" type="Sprite2D" parent="YSorted/Farm visuals/Static"]
|
||||
visible = false
|
||||
material = SubResource("ShaderMaterial_lhtpe")
|
||||
position = Vector2(5280, 1600)
|
||||
scale = Vector2(5, 5)
|
||||
texture = ExtResource("2_lhtpe")
|
||||
|
||||
[node name="StaticBody2D" type="StaticBody2D" parent="YSorted/Farm visuals/Static/House Mockup"]
|
||||
visible = false
|
||||
collision_layer = 2
|
||||
collision_mask = 6
|
||||
|
||||
[node name="CollisionPolygon2D" type="CollisionPolygon2D" parent="YSorted/Farm visuals/Static/House Mockup/StaticBody2D"]
|
||||
visible = false
|
||||
position = Vector2(-257.6, 236.8)
|
||||
polygon = PackedVector2Array(232, -4.80005, 0, 0, 0, -96, -262.4, -97.6, -265.6, -260.8, -310.4, -260.8, -235.2, -321.6, -124.8, -323.2, -57.6, -424, 84.8, -436.8, 118.4, -452.8, 136, -436.8, 726.4, -452.8, 817.6, -299.2, 785.6, -291.2, 785.6, -108.8, 241.6, -94.4)
|
||||
disabled = true
|
||||
|
||||
[node name="FieldParent" type="Node2D" parent="YSorted/Farm visuals"]
|
||||
position = Vector2(48, 0)
|
||||
script = ExtResource("25_0qu0h")
|
||||
metadata/_custom_type_script = "uid://dhxtdhfqx3bte"
|
||||
|
||||
[node name="Area2D" type="Area2D" parent="YSorted/Farm visuals/FieldParent"]
|
||||
position = Vector2(-48, -16)
|
||||
collision_mask = 5
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="YSorted/Farm visuals/FieldParent/Area2D"]
|
||||
position = Vector2(1536, 2964)
|
||||
shape = SubResource("RectangleShape2D_2nee2")
|
||||
|
||||
[node name="CollisionShape2D2" type="CollisionShape2D" parent="YSorted/Farm visuals/FieldParent/Area2D"]
|
||||
position = Vector2(13772, 2960)
|
||||
shape = SubResource("RectangleShape2D_p6n74")
|
||||
|
||||
[node name="Hoe Pickup" parent="." node_paths=PackedStringArray("_sprites") instance=ExtResource("27_klb81")]
|
||||
position = Vector2(7728, 2000)
|
||||
rotation = 3.3074
|
||||
@@ -748,13 +786,6 @@ shape = SubResource("CircleShape2D_kxdmn")
|
||||
[node name="SpriteSwitcher2d" parent="Hoe Pickup" instance=ExtResource("28_p6n74")]
|
||||
scale = Vector2(0.5, 0.5)
|
||||
|
||||
[node name="ItemOnGround" type="Node" parent="Hoe Pickup"]
|
||||
script = ExtResource("29_hukxv")
|
||||
|
||||
[node name="Node" type="Node" parent="Hoe Pickup/ItemOnGround"]
|
||||
script = ExtResource("30_2nee2")
|
||||
_blueprint = ExtResource("31_r0vdg")
|
||||
|
||||
[node name="Watercan Pickup" parent="." node_paths=PackedStringArray("_sprites") instance=ExtResource("27_klb81")]
|
||||
position = Vector2(8400, 2024)
|
||||
_sprites = NodePath("ActiveInactive")
|
||||
@@ -779,16 +810,39 @@ region_rect = Rect2(-2, 1135, 421, 292)
|
||||
texture = ExtResource("29_p6n74")
|
||||
region_rect = Rect2(1, 1138, 418, 288)
|
||||
|
||||
[connection signal="mouse_entered" from="Farm visuals/FieldParent/Area2D" to="Farm visuals/FieldParent" method="MouseEnteredAllowedArea"]
|
||||
[connection signal="mouse_exited" from="Farm visuals/FieldParent/Area2D" to="Farm visuals/FieldParent" method="MouseExitedAllowedArea"]
|
||||
[node name="CanvasLayer" parent="." instance=ExtResource("32_2nee2")]
|
||||
follow_viewport_enabled = false
|
||||
|
||||
[node name="Inventory" parent="CanvasLayer" index="0"]
|
||||
anchors_preset = 7
|
||||
anchor_left = 0.5
|
||||
anchor_top = 1.0
|
||||
anchor_right = 0.5
|
||||
offset_left = -172.8
|
||||
offset_top = -194.4
|
||||
offset_right = 172.8
|
||||
grow_vertical = 0
|
||||
size_flags_horizontal = 4
|
||||
size_flags_vertical = 8
|
||||
_inventoryOpenedOffset = -600.0
|
||||
|
||||
[connection signal="PickedUpTool" from="YSorted/Player2d" to="Hoe Pickup" method="SetSpriteActiveState"]
|
||||
[connection signal="PickedUpTool" from="YSorted/Player2d" to="Watercan Pickup" method="SetSpriteActiveState"]
|
||||
[connection signal="InteractedTool" from="YSorted/Brünnen/InteractionArea" to="YSorted/Player2d" method="TryFillWateringCan"]
|
||||
[connection signal="Interacted" from="Hoe Pickup" to="Hoe Pickup/ItemOnGround" method="TryPickUp"]
|
||||
[connection signal="mouse_entered" from="YSorted/Farm visuals/FieldParent/Area2D" to="YSorted/Farm visuals/FieldParent" method="MouseEnteredAllowedArea"]
|
||||
[connection signal="mouse_exited" from="YSorted/Farm visuals/FieldParent/Area2D" to="YSorted/Farm visuals/FieldParent" method="MouseExitedAllowedArea"]
|
||||
[connection signal="InteractedTool" from="Hoe Pickup" to="YSorted/Player2d" method="ActivateTool"]
|
||||
[connection signal="InteractedTool" from="Watercan Pickup" to="YSorted/Player2d" method="ActivateTool"]
|
||||
|
||||
[editable path="YSorted/Player2d"]
|
||||
[editable path="YSorted/Brünnen/InteractionArea"]
|
||||
[editable path="YSorted/HoeGenericPickup"]
|
||||
[editable path="YSorted/HoeGenericPickup/InteractionArea2"]
|
||||
[editable path="YSorted/GenericPickupWithoutIcon"]
|
||||
[editable path="YSorted/GenericPickupWithoutIcon/InteractionArea2"]
|
||||
[editable path="YSorted/CanGenericPickup"]
|
||||
[editable path="YSorted/CanGenericPickup/InteractionArea2"]
|
||||
[editable path="Hoe Pickup"]
|
||||
[editable path="Watercan Pickup"]
|
||||
[editable path="Watercan Pickup/ActiveInactive"]
|
||||
[editable path="CanvasLayer"]
|
||||
|
||||
@@ -1,27 +1,95 @@
|
||||
[gd_scene load_steps=4 format=3 uid="uid://bm21nqepnwaik"]
|
||||
[gd_scene load_steps=13 format=3 uid="uid://bm21nqepnwaik"]
|
||||
|
||||
[ext_resource type="Texture2D" uid="uid://c02unlmw2y6vv" path="res://art/indoor/misfortune_perspective_test.png" id="1_wvosl"]
|
||||
[ext_resource type="PackedScene" uid="uid://c25udixd5m6l0" path="res://prefabs/Player2D.tscn" id="2_a2ood"]
|
||||
[ext_resource type="Texture2D" uid="uid://waqmjrxduxfq" path="res://art/indoor/room export/Room_01_walls.png" id="3_a2ood"]
|
||||
[ext_resource type="Texture2D" uid="uid://cnhsxxps2cw5" path="res://art/indoor/room export/Room_01_table.png" id="3_je1cl"]
|
||||
[ext_resource type="Texture2D" uid="uid://blg50is4kuh2f" path="res://art/indoor/room export/Room_01_chair.png" id="4_hjjhl"]
|
||||
[ext_resource type="Texture2D" uid="uid://bqwhptcgg5ons" path="res://art/indoor/room export/Room_01_dorr_R.png" id="5_8o6or"]
|
||||
[ext_resource type="Texture2D" uid="uid://dhvi5404cqioa" path="res://art/indoor/room export/Room_01_window.png" id="6_j5d18"]
|
||||
[ext_resource type="Texture2D" uid="uid://404glx32r1w8" path="res://art/indoor/room export/Room_01_bench.png" id="7_ciwvv"]
|
||||
[ext_resource type="Texture2D" uid="uid://vyk63d0pgqm5" path="res://art/indoor/room export/Room_01_dioor L.png" id="8_wuntg"]
|
||||
[ext_resource type="Texture2D" uid="uid://b2rj7wkyu6ehy" path="res://art/indoor/room export/Room_01_pechka.png" id="9_aivb2"]
|
||||
[ext_resource type="Texture2D" uid="uid://bpi35nxbhput8" path="res://art/indoor/room export/Room_01_pechkaDoor.png" id="10_835kg"]
|
||||
[ext_resource type="Texture2D" uid="uid://tyypifpte0pb" path="res://art/indoor/room export/Room_01_chugun.png" id="11_atjbs"]
|
||||
|
||||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_a2ood"]
|
||||
size = Vector2(1241.67, 409.333)
|
||||
resource_local_to_scene = true
|
||||
size = Vector2(7680, 1336)
|
||||
|
||||
[node name="IndoorTest" type="Node2D"]
|
||||
y_sort_enabled = true
|
||||
|
||||
[node name="background" type="Sprite2D" parent="."]
|
||||
scale = Vector2(3, 3)
|
||||
texture = ExtResource("1_wvosl")
|
||||
texture = ExtResource("3_a2ood")
|
||||
flip_h = true
|
||||
region_rect = Rect2(111, 292, 3323, 2160)
|
||||
|
||||
[node name="StaticBody2D" type="StaticBody2D" parent="background"]
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="background/StaticBody2D"]
|
||||
position = Vector2(2.5, -129.667)
|
||||
position = Vector2(-1912, -396)
|
||||
shape = SubResource("RectangleShape2D_a2ood")
|
||||
|
||||
[node name="Player2d" parent="." instance=ExtResource("2_a2ood")]
|
||||
position = Vector2(-3, 509)
|
||||
position = Vector2(-3312, 112)
|
||||
|
||||
[node name="Camera2D" type="Camera2D" parent="."]
|
||||
offset = Vector2(100, 0)
|
||||
zoom = Vector2(0.325, 0.325)
|
||||
[node name="Room01Walls2" type="Sprite2D" parent="."]
|
||||
position = Vector2(-3840, 0)
|
||||
texture = ExtResource("3_a2ood")
|
||||
|
||||
[node name="Room01Table" type="Sprite2D" parent="."]
|
||||
y_sort_enabled = true
|
||||
position = Vector2(-2056, 888)
|
||||
texture = ExtResource("3_je1cl")
|
||||
offset = Vector2(192, -848)
|
||||
|
||||
[node name="Room01Chair" type="Sprite2D" parent="."]
|
||||
position = Vector2(-2792, 1096)
|
||||
texture = ExtResource("4_hjjhl")
|
||||
offset = Vector2(216, -1064)
|
||||
|
||||
[node name="Room01Chair2" type="Sprite2D" parent="."]
|
||||
position = Vector2(-1304, 1080)
|
||||
texture = ExtResource("4_hjjhl")
|
||||
offset = Vector2(184, -1056)
|
||||
|
||||
[node name="Room01DorrR" type="Sprite2D" parent="."]
|
||||
position = Vector2(-216, 8)
|
||||
texture = ExtResource("5_8o6or")
|
||||
|
||||
[node name="Room01Window4" type="Sprite2D" parent="."]
|
||||
position = Vector2(-352, 8)
|
||||
texture = ExtResource("6_j5d18")
|
||||
|
||||
[node name="Room01Bench" type="Sprite2D" parent="."]
|
||||
position = Vector2(-3280, 24)
|
||||
texture = ExtResource("7_ciwvv")
|
||||
|
||||
[node name="Room01DioorL" type="Sprite2D" parent="."]
|
||||
position = Vector2(-3400, 8)
|
||||
texture = ExtResource("8_wuntg")
|
||||
|
||||
[node name="Room01Pechka" type="Sprite2D" parent="."]
|
||||
position = Vector2(-752, 0)
|
||||
texture = ExtResource("9_aivb2")
|
||||
|
||||
[node name="Room01PechkaDoor" type="Sprite2D" parent="."]
|
||||
position = Vector2(-704, 0)
|
||||
texture = ExtResource("10_835kg")
|
||||
|
||||
[node name="Room01Chugun" type="Sprite2D" parent="."]
|
||||
position = Vector2(-736, 8)
|
||||
texture = ExtResource("11_atjbs")
|
||||
|
||||
[node name="Room01Window2" type="Sprite2D" parent="."]
|
||||
position = Vector2(-2952, 16)
|
||||
texture = ExtResource("6_j5d18")
|
||||
|
||||
[node name="Room01Window3" type="Sprite2D" parent="."]
|
||||
position = Vector2(-1720, 16)
|
||||
texture = ExtResource("6_j5d18")
|
||||
|
||||
[node name="Room01Bench2" type="Sprite2D" parent="."]
|
||||
position = Vector2(-1160, 40)
|
||||
texture = ExtResource("7_ciwvv")
|
||||
flip_h = true
|
||||
|
||||
@@ -6,11 +6,11 @@ public partial class InteractionArea2D : Node2D
|
||||
{
|
||||
[Export] private Area2D _area;
|
||||
[Export] private Label _label;
|
||||
[Export] private SpriteSwitcher2D _sprites;
|
||||
[Export] private SpriteSwitcher2D _sprites; // TODO: remove
|
||||
[Export] private bool _showLabel = true;
|
||||
[Export] private int _id;
|
||||
[Export] private int _id; // TODO: remove
|
||||
|
||||
[Signal] public delegate void InteractedToolEventHandler(int id);
|
||||
[Signal] public delegate void InteractedToolEventHandler(int id); // TODO: remove
|
||||
[Signal] public delegate void InteractedEventHandler();
|
||||
|
||||
public void OnPlayerEntered(Node2D player)
|
||||
@@ -34,7 +34,7 @@ public partial class InteractionArea2D : Node2D
|
||||
}
|
||||
}
|
||||
|
||||
public void SetSpriteActiveState(bool success, int id)
|
||||
public void SetSpriteActiveState(bool success, int id) // TODO: remove
|
||||
{
|
||||
if (_id == id)
|
||||
{
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
using System.Threading;
|
||||
|
||||
using System.Threading.Tasks;
|
||||
using Godot;
|
||||
|
||||
@@ -8,6 +8,7 @@ public partial class Player2D : CharacterBody2D
|
||||
{
|
||||
[Export] private float _speed = 100f;
|
||||
[Export] private AnimatedSprite2D _sprite;
|
||||
[Export] private SceneTree.GroupCallFlags _fieldFlags;
|
||||
|
||||
// -1 means no tool.
|
||||
private int _toolID = -1;
|
||||
@@ -15,13 +16,14 @@ public partial class Player2D : CharacterBody2D
|
||||
private bool anyActionPressed;
|
||||
private bool _wateringInProgress;
|
||||
private bool _pickupAnimationInProgress;
|
||||
private bool _farmingAnimationInProgress;
|
||||
private Vector2 _lastDirection = Vector2.Zero;
|
||||
|
||||
public override void _Process(double delta)
|
||||
{
|
||||
anyActionPressed = false;
|
||||
|
||||
if (_pickupAnimationInProgress || _wateringInProgress)
|
||||
if (_pickupAnimationInProgress || _wateringInProgress || _farmingAnimationInProgress)
|
||||
return;
|
||||
|
||||
if (Input.IsActionPressed("move_right"))
|
||||
@@ -115,6 +117,9 @@ public partial class Player2D : CharacterBody2D
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Called by FarmingControls Signal.
|
||||
/// </summary>
|
||||
public void PlayWateringAnimation()
|
||||
{
|
||||
if (_toolID == 1 && !_wateringInProgress)
|
||||
@@ -146,4 +151,18 @@ public partial class Player2D : CharacterBody2D
|
||||
_pickupAnimationInProgress = false;
|
||||
}
|
||||
|
||||
public void PlayFarmingAnimation()
|
||||
{
|
||||
_sprite.Animation = "diagonal farming";
|
||||
_sprite.Play();
|
||||
_farmingAnimationInProgress = true;
|
||||
Task.Run(DelayedFarmingReset);
|
||||
}
|
||||
|
||||
private async Task DelayedFarmingReset()
|
||||
{
|
||||
await Task.Delay(1000);
|
||||
_farmingAnimationInProgress = false;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
using System;
|
||||
using Babushka.scripts.CSharp.Common.CharacterControls;
|
||||
using Godot;
|
||||
|
||||
namespace Babushka.scripts.CSharp.Common.Farming;
|
||||
@@ -17,6 +18,7 @@ public partial class PlantBehaviour2D : Node2D
|
||||
|
||||
private Sprite2D _currentPlantSprite = null;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Transitions the plant to its next growth stage.
|
||||
/// </summary>
|
||||
@@ -25,6 +27,8 @@ public partial class PlantBehaviour2D : Node2D
|
||||
if (_field.FieldState != FieldState.Watered)
|
||||
return;
|
||||
|
||||
GetTree().CallGroup("PlantGrowing", Player2D.MethodName.PlayFarmingAnimation);
|
||||
|
||||
switch (_state)
|
||||
{
|
||||
case PlantState.None:
|
||||
|
||||
@@ -1,13 +1,27 @@
|
||||
#nullable enable
|
||||
using System;
|
||||
using Godot;
|
||||
|
||||
namespace Babushka.scripts.CSharp.Common.Inventory;
|
||||
|
||||
public partial class InventoryManager : Node
|
||||
{
|
||||
public static InventoryManager Instance { get; private set; }
|
||||
[Signal]
|
||||
public delegate void SlotIndexChangedEventHandler(int newIndex);
|
||||
|
||||
public InventoryInstance playerInventory;
|
||||
public static InventoryManager Instance { get; private set; } = null!;
|
||||
public int CurrentSelectedSlotIndex
|
||||
{
|
||||
get => _currentSelectedSlotIndex;
|
||||
set
|
||||
{
|
||||
_currentSelectedSlotIndex = value;
|
||||
EmitSignalSlotIndexChanged(_currentSelectedSlotIndex);
|
||||
}
|
||||
}
|
||||
|
||||
public InventoryInstance playerInventory = new InventoryInstance();
|
||||
|
||||
private int _currentSelectedSlotIndex = 0;
|
||||
|
||||
public override void _EnterTree()
|
||||
{
|
||||
@@ -16,8 +30,7 @@ public partial class InventoryManager : Node
|
||||
|
||||
public override void _Ready()
|
||||
{
|
||||
playerInventory = new InventoryInstance();
|
||||
playerInventory.SlotAmount = 30;
|
||||
playerInventory.SlotAmount = 37;
|
||||
}
|
||||
|
||||
public InventoryActionResult CreateItem(
|
||||
@@ -68,4 +81,14 @@ public partial class InventoryManager : Node
|
||||
{
|
||||
return playerInventory.AddItem(itemInstance);
|
||||
}
|
||||
|
||||
public InventorySlot GetCurrentSelectedSlot()
|
||||
{
|
||||
if (CurrentSelectedSlotIndex < 0 || CurrentSelectedSlotIndex > 8)
|
||||
throw new ArgumentOutOfRangeException(
|
||||
nameof(CurrentSelectedSlotIndex),
|
||||
"currentInventoryBarIndex must be between 0 and 8 (inclusively)");
|
||||
|
||||
return playerInventory.Slots[CurrentSelectedSlotIndex];
|
||||
}
|
||||
}
|
||||
@@ -3,15 +3,14 @@ namespace Babushka.scripts.CSharp.Common.Inventory;
|
||||
|
||||
public partial class InventoryTestScript : Node
|
||||
{
|
||||
[Export]
|
||||
private ItemResource _testItemToCreate;
|
||||
[Export(PropertyHint.ArrayType)]
|
||||
private ItemResource[] _testItemsToCreate;
|
||||
|
||||
public override void _Ready()
|
||||
{
|
||||
InventoryManager.Instance.CreateItem(_testItemToCreate, InventoryManager.Instance.playerInventory);
|
||||
InventoryManager.Instance.CreateItem(_testItemToCreate, InventoryManager.Instance.playerInventory);
|
||||
InventoryManager.Instance.CreateItem(_testItemToCreate, InventoryManager.Instance.playerInventory);
|
||||
InventoryManager.Instance.CreateItem(_testItemToCreate, InventoryManager.Instance.playerInventory);
|
||||
GD.Print("Added items");
|
||||
foreach (var itemResource in _testItemsToCreate)
|
||||
{
|
||||
InventoryManager.Instance.CreateItem(itemResource, InventoryManager.Instance.playerInventory);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,28 +1,34 @@
|
||||
#nullable enable
|
||||
using Godot;
|
||||
|
||||
namespace Babushka.scripts.CSharp.Common.Inventory;
|
||||
|
||||
public partial class InventoryUi : Control
|
||||
{
|
||||
private GridContainer _slots;
|
||||
private Control _slots;
|
||||
private Control _slotsMover;
|
||||
private InventoryInstance _playerInventory;
|
||||
private Control _slotSelect;
|
||||
|
||||
private int? _slotOnMouse;
|
||||
|
||||
private int _selectedSlot = 0;
|
||||
|
||||
private bool _inventoryExtended = false;
|
||||
private Tween? _inventoryExtensionTween;
|
||||
|
||||
[Export]
|
||||
private float _inventoryClosedOffset = 0f;
|
||||
|
||||
[Export]
|
||||
private float _inventoryOpenedOffset = 200f;
|
||||
|
||||
public override void _Ready()
|
||||
{
|
||||
GD.Print("Ready inventory ui");
|
||||
_slots = GetNode<GridContainer>("SlotsContainer/Slots");
|
||||
_slots = GetNode<Control>("SlotsContainer/SlotsMover/Slots");
|
||||
_slotsMover = GetNode<Control>("SlotsContainer/SlotsMover");
|
||||
_playerInventory = InventoryManager.Instance.playerInventory;
|
||||
_slotSelect = GetNode<Control>("SlotsContainer/SlotSelectContainer/Selector");
|
||||
PopulateSlots();
|
||||
//PopulateSlots();
|
||||
SubscribeSlots();
|
||||
SetSlotContent();
|
||||
SetSlotSelectPosition();
|
||||
InventoryManager.Instance.playerInventory.InventoryContentsChanged += SetSlotContent;
|
||||
@@ -40,21 +46,43 @@ public partial class InventoryUi : Control
|
||||
var inventorySlot = _playerInventory.Slots[i];
|
||||
var uiSlot = _slots.GetChild(i) as SlotUi;
|
||||
|
||||
uiSlot!.nameLabel.Text = inventorySlot.itemInstance?.blueprint.name ?? "";
|
||||
if (inventorySlot.itemInstance != null)
|
||||
{
|
||||
var blueprint = inventorySlot.itemInstance.blueprint;
|
||||
var amount = inventorySlot.itemInstance.amount;
|
||||
|
||||
if (blueprint.icon != null)
|
||||
{
|
||||
// show icon
|
||||
uiSlot!.nameLabel.Text = "";
|
||||
|
||||
uiSlot.icon.Texture = blueprint.icon;
|
||||
}
|
||||
else
|
||||
{
|
||||
// show name label
|
||||
uiSlot!.nameLabel.Text = inventorySlot.itemInstance.blueprint.name;
|
||||
uiSlot!.nameLabel.LabelSettings = uiSlot!.nameLabel.LabelSettings.Duplicate() as LabelSettings;
|
||||
uiSlot!.nameLabel.LabelSettings!.FontColor = inventorySlot.itemInstance?.blueprint.color ?? Colors.White;
|
||||
|
||||
var amountText = inventorySlot.itemInstance != null &&
|
||||
inventorySlot.itemInstance.amount != 1
|
||||
? inventorySlot.itemInstance.amount.ToString()
|
||||
: "";
|
||||
uiSlot!.amountLabel.Text = amountText;
|
||||
uiSlot.icon.Texture = null;
|
||||
}
|
||||
|
||||
// amount
|
||||
uiSlot!.amountLabel.Text = amount != 1 ? amount.ToString() : "";
|
||||
}
|
||||
else
|
||||
{
|
||||
uiSlot!.nameLabel.Text = "";
|
||||
uiSlot!.icon.Texture = null;
|
||||
uiSlot!.amountLabel.Text = "";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private void SetSlotSelectPosition()
|
||||
{
|
||||
_slotSelect.Position = new Vector2(_selectedSlot * 100, 0);
|
||||
_slotSelect.Position = new Vector2(InventoryManager.Instance.CurrentSelectedSlotIndex * 100, 0);
|
||||
}
|
||||
|
||||
private void PopulateSlots()
|
||||
@@ -69,6 +97,16 @@ public partial class InventoryUi : Control
|
||||
}
|
||||
}
|
||||
|
||||
private void SubscribeSlots()
|
||||
{
|
||||
for (var index = 0; index < _playerInventory.Slots.Count; index++)
|
||||
{
|
||||
var slotInstance = _slots.GetChild<SlotUi>(index);
|
||||
slotInstance.index = index;
|
||||
slotInstance.Clicked += SlotClicked;
|
||||
}
|
||||
}
|
||||
|
||||
private void UnsubscribeSlots()
|
||||
{
|
||||
for (var index = 0; index < _playerInventory.Slots.Count; index++)
|
||||
@@ -108,17 +146,17 @@ public partial class InventoryUi : Control
|
||||
|
||||
if (Input.IsActionJustPressed("ui_inventory_disadvance"))
|
||||
{
|
||||
_selectedSlot++;
|
||||
if (_selectedSlot > 9)
|
||||
_selectedSlot = 0;
|
||||
InventoryManager.Instance.CurrentSelectedSlotIndex++;
|
||||
if (InventoryManager.Instance.CurrentSelectedSlotIndex > 8)
|
||||
InventoryManager.Instance.CurrentSelectedSlotIndex = 0;
|
||||
SetSlotSelectPosition();
|
||||
}
|
||||
|
||||
if (Input.IsActionJustPressed("ui_inventory_advance"))
|
||||
{
|
||||
_selectedSlot--;
|
||||
if (_selectedSlot < 0)
|
||||
_selectedSlot = 9;
|
||||
InventoryManager.Instance.CurrentSelectedSlotIndex--;
|
||||
if (InventoryManager.Instance.CurrentSelectedSlotIndex < 0)
|
||||
InventoryManager.Instance.CurrentSelectedSlotIndex = 8;
|
||||
SetSlotSelectPosition();
|
||||
}
|
||||
}
|
||||
@@ -130,21 +168,21 @@ public partial class InventoryUi : Control
|
||||
_inventoryExtended = !_inventoryExtended;
|
||||
if (_inventoryExtended)
|
||||
{
|
||||
//GD.Print("Open inventory");
|
||||
GD.Print("Open inventory");
|
||||
_inventoryExtensionTween = GetTree().CreateTween();
|
||||
_slotSelect.Hide();
|
||||
_inventoryExtensionTween
|
||||
.TweenProperty(_slots, "offset_bottom", -100, 0.4)
|
||||
.TweenProperty(_slotsMover, "offset_bottom", _inventoryOpenedOffset, 0.4)
|
||||
.SetTrans(Tween.TransitionType.Quad)
|
||||
.SetEase(Tween.EaseType.Out);
|
||||
}
|
||||
else
|
||||
{
|
||||
//GD.Print("Close inventory");
|
||||
GD.Print("Close inventory");
|
||||
_inventoryExtensionTween = GetTree().CreateTween();
|
||||
_slotSelect.Show();
|
||||
_inventoryExtensionTween
|
||||
.TweenProperty(_slots, "offset_bottom", 200, 0.4)
|
||||
.TweenProperty(_slotsMover, "offset_bottom", _inventoryClosedOffset, 0.4)
|
||||
.SetTrans(Tween.TransitionType.Quad)
|
||||
.SetEase(Tween.EaseType.Out);
|
||||
|
||||
|
||||
@@ -0,0 +1,65 @@
|
||||
using Godot;
|
||||
|
||||
namespace Babushka.scripts.CSharp.Common.Inventory;
|
||||
|
||||
public partial class ItemOnGround2D : Node
|
||||
{
|
||||
private ItemInstance _itemInstance;
|
||||
|
||||
[Export]
|
||||
private bool _infiniteSupply = false;
|
||||
|
||||
private Label _itemLabel => GetNode<Label>("ItemLabel");
|
||||
private Label _pickupErrorLabel => GetNode<Label>("PickupErrorLabel");
|
||||
private Sprite2D _iconSprite => GetNode<Sprite2D>("Icon");
|
||||
|
||||
public ItemInstance itemInstance
|
||||
{
|
||||
get => _itemInstance;
|
||||
set
|
||||
{
|
||||
_itemInstance = value;
|
||||
UpdateVisuals();
|
||||
}
|
||||
}
|
||||
|
||||
public override void _Ready()
|
||||
{
|
||||
UpdateVisuals();
|
||||
_pickupErrorLabel.Text = "";
|
||||
}
|
||||
|
||||
public void TryPickUp()
|
||||
{
|
||||
GD.Print("Trying to pick up item");
|
||||
|
||||
var result = InventoryManager.Instance.CollectItem(itemInstance.Clone());
|
||||
if (result == InventoryActionResult.Success)
|
||||
{
|
||||
if (!_infiniteSupply)
|
||||
{
|
||||
QueueFree();
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
_pickupErrorLabel.Text = "Inventory Full";
|
||||
var tween = GetTree().CreateTween();
|
||||
tween.TweenInterval(2);
|
||||
tween.TweenCallback(Callable.From(() => _pickupErrorLabel.Text = ""));
|
||||
}
|
||||
}
|
||||
|
||||
public void UpdateVisuals()
|
||||
{
|
||||
_iconSprite.Texture = itemInstance?.blueprint?.icon;
|
||||
if (_iconSprite.Texture == null)
|
||||
{
|
||||
_itemLabel.Text = itemInstance?.blueprint?.name ?? "Error Item";
|
||||
}
|
||||
else
|
||||
{
|
||||
_itemLabel.Text = "";
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
uid://btusf04xnywhm
|
||||
@@ -10,7 +10,7 @@ public partial class ItemOnGroundSpawnWith : Node
|
||||
{
|
||||
if(_blueprint == null) return;
|
||||
|
||||
var parent = GetParent<ItemOnGround>();
|
||||
var parent = GetParent<ItemOnGround2D>();
|
||||
parent.itemInstance = new ItemInstance { blueprint = _blueprint };
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,16 @@
|
||||
using Godot;
|
||||
|
||||
namespace Babushka.scripts.CSharp.Common.Inventory;
|
||||
|
||||
public partial class ItemOnGroundSpawnWith2D : Node
|
||||
{
|
||||
[Export] private ItemResource? _blueprint = null;
|
||||
|
||||
public override void _EnterTree()
|
||||
{
|
||||
if(_blueprint == null) return;
|
||||
|
||||
var parent = GetParent<ItemOnGround2D>();
|
||||
parent.itemInstance = new ItemInstance { blueprint = _blueprint };
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
uid://bdsel2amlbnuq
|
||||
@@ -10,6 +10,9 @@ public partial class ItemResource : Resource
|
||||
[Export]
|
||||
public Color color;
|
||||
|
||||
[Export]
|
||||
public Texture2D? icon;
|
||||
|
||||
[Export]
|
||||
public int maxStack;
|
||||
|
||||
|
||||
@@ -8,6 +8,7 @@ public partial class SlotUi : Control
|
||||
public Label nameLabel;
|
||||
public int index;
|
||||
public Label amountLabel;
|
||||
public TextureRect icon;
|
||||
|
||||
[Signal] public delegate void ClickedEventHandler(int index);
|
||||
|
||||
@@ -15,6 +16,7 @@ public partial class SlotUi : Control
|
||||
{
|
||||
nameLabel = GetNode<Label>("NameLabel");
|
||||
amountLabel = GetNode<Label>("AmountLabel");
|
||||
icon = GetNode<TextureRect>("Icon");
|
||||
}
|
||||
|
||||
public void _on_gui_input(InputEvent ev)
|
||||
|
||||