1
1
mirror of https://github.com/Rundll86/Dog-Lynx-And-HCN.git synced 2026-06-12 06:37:13 +08:00

Add UI components for Feed and Item displays, including SVG resources

- Introduced FeedCard and FieldShow scenes with corresponding GDScript files for managing feed and item display.
- Added SVG resources for banana and baseball items.
- Updated ItemStore to include mappings for item types and names in Chinese.
- Enhanced FieldShow and ItemShow scripts to dynamically update UI elements based on exported properties.
- Implemented a new Feed class for structured feed data handling.
This commit is contained in:
2025-08-26 18:09:04 +08:00
parent 96b26f01be
commit 4a66374e24
14 changed files with 325 additions and 0 deletions
+35
View File
@@ -0,0 +1,35 @@
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="57" height="57" viewBox="-0.5 -0.5 57 57" version="1.1" xml:space="preserve">
<defs/>
<g>
<title>Slice 1</title>
<desc>Created with Sketch.</desc>
<g id="Page-1" stroke="none" fill-rule="evenodd">
<g id="baseball-[baseball,sports,ball,alex-eben-meyer]" fill-rule="nonzero">
<g id="Group-3">
<path d="M28,0 C35.7,0 42.7,3.1 47.8,8.2 C52.9,13.3 56,20.3 56,28 C56,35.7 52.9,42.7 47.8,47.8 C42.7,52.9 35.7,56 28,56 C20.3,56 13.3,52.9 8.2,47.8 C3.1,42.7 0,35.7 0,28 C0,20.3 3.1,13.3 8.2,8.2 C13.3,3.1 20.3,0 28,0 Z" id="Oval" fill="#FAF0E6" stroke-width="1"/>
<path d="M56,28.1 C56,21.8 53.9,16 50.3,11.4 C47.1,13.7 40.4,19.7 37,30.4 C37,30.4 33,42.4 38.9,53.8 C49.1,49.4 56,39.6 56,28.1 Z" id="Shape" fill="#F0E6D2" stroke-width="1"/>
</g>
<g id="Group-2">
<polyline id="Shape_1_" points="12.9 5.3 13.7 0.9 14.4 1.1 13.9 4.6 17.6 4.7 17.6 5.5 12.9 5.3" stroke-width="1" fill="#F01446" transform="matrix(1,0,0,1,32,10)"/>
<polyline id="Shape_2_" points="9 10.6 8.8 6.1 9.6 6 9.9 9.6 13.5 8.9 13.6 9.7 9 10.6" stroke-width="1" fill="#F01446" transform="matrix(1,0,0,1,32,10)"/>
<polyline id="Shape_3_" points="6.5 16.2 5 12 5.9 11.8 7 15.1 10.3 13.9 10.5 14.6 6.5 16.2" stroke-width="1" fill="#F01446" transform="matrix(1,0,0,1,32,10)"/>
<polyline id="Shape_4_" points="3.6 28.5 1 25 1.6 24.5 3.7 27.4 6.5 25.1 7 25.7 3.6 28.5" stroke-width="1" fill="#F01446" transform="matrix(1,0,0,1,32,10)"/>
<polyline id="Shape_5_" points="3.8 35.4 0.6 32.2 1.3 31.6 3.7 34.1 6.1 31.6 6.8 32.2 3.8 35.4" stroke-width="1" fill="#F01446" transform="matrix(1,0,0,1,32,10)"/>
<polyline id="Shape_6_" points="5.5 41.4 1.8 38.9 2.2 38.3 5.2 40.2 7 37.2 7.8 37.6 5.5 41.4" stroke-width="1" fill="#F01446" transform="matrix(1,0,0,1,32,10)"/>
<polyline id="Shape_7_" points="4.6 22 2.8 18.1 3.6 17.7 5 20.9 8.2 19.3 8.5 20 4.6 22" stroke-width="1" fill="#F01446" transform="matrix(1,0,0,1,32,10)"/>
<path d="M 50.2 11 C 46.5 13.2 43.4 16.3 41.2 19.9 C 35.3 29.4 32.7 43.7 38.5 54.1 C 38.7 54 39.1 53.9 39.3 53.8 C 34.9 45.8 34.4 32.6 41.9 20.4 C 44.1 16.8 47.1 13.9 50.7 11.8 C 50.5 11.4 50.3 11.3 50.2 11 Z " id="Shape_8_" stroke-width="1" fill="#F01446"/>
</g>
<g id="Group">
<polyline id="Shape_9_" points="6.6 39.1 5.9 43.5 5.1 43.4 5.6 39.9 2.1 39.8 2.2 39 6.6 39.1" stroke-width="1" fill="#F01446" transform="matrix(1,0,0,1,5,2)"/>
<polyline id="Shape_10_" points="10.2 34 10.5 38.4 9.7 38.4 9.5 35 6 35.6 5.9 34.8 10.2 34" stroke-width="1" fill="#F01446" transform="matrix(1,0,0,1,5,2)"/>
<polyline id="Shape_11_" points="12.7 28.4 14 32.5 13.2 32.7 12.2 29.5 9.1 30.7 8.7 30 12.7 28.4" stroke-width="1" fill="#F01446" transform="matrix(1,0,0,1,5,2)"/>
<polyline id="Shape_12_" points="15.3 16.3 17.8 19.7 17.2 20.2 15.2 17.4 12.7 19.6 12.2 19 15.3 16.3" stroke-width="1" fill="#F01446" transform="matrix(1,0,0,1,5,2)"/>
<polyline id="Shape_13_" points="15.2 9.5 18.1 12.6 17.6 13.1 15.2 10.6 13 13.1 12.3 12.6 15.2 9.5" stroke-width="1" fill="#F01446" transform="matrix(1,0,0,1,5,2)"/>
<polyline id="Shape_14_" points="13.6 3.5 17.1 5.9 16.7 6.6 13.8 4.7 12.1 7.5 11.5 7.1 13.6 3.5" stroke-width="1" fill="#F01446" transform="matrix(1,0,0,1,5,2)"/>
<polyline id="Shape_15_" points="14.4 22.7 16.1 26.6 15.4 26.9 14 23.7 11 25.4 10.7 24.7 14.4 22.7" stroke-width="1" fill="#F01446" transform="matrix(1,0,0,1,5,2)"/>
<path d="M 14.4 36.2 C 12.4 39.9 9.3 42.9 5.7 45 C 5.9 45.2 6 45.5 6.2 45.6 C 9.9 43.4 12.9 40.3 15 36.6 C 20.6 27.1 23.1 12.6 17.3 2.4 C 17.1 2.5 16.8 2.6 16.5 2.7 C 21 10.6 21.7 24 14.4 36.2 Z " id="Shape_16_" stroke-width="1" fill="#F01446"/>
</g>
</g>
</g>
</g>
</svg><!--rotationCenter:28:28-->

After

Width:  |  Height:  |  Size: 3.9 KiB

+37
View File
@@ -0,0 +1,37 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://bks8jmctleina"
path="res://.godot/imported/baseball.svg-1901705de42f4cc5a44a1e5f8046c228.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://resources/items/baseball.svg"
dest_files=["res://.godot/imported/baseball.svg-1901705de42f4cc5a44a1e5f8046c228.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
svg/scale=1.0
editor/scale_with_editor_scale=false
editor/convert_colors_with_editor_theme=false
+18
View File
@@ -0,0 +1,18 @@
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="46.3714714050293" height="46.397254943847656" viewBox="0.005429744720458984 -0.10458087921142578 46.3714714050293 46.397254943847656" version="1.1" xml:space="preserve">
<!-- Generator: Sketch 52.4 (67378) - http://www.bohemiancoding.com/sketch -->
<g>
<title>Slice 1</title>
<desc>Created with Sketch.</desc>
<g id="Page-1" stroke="none" fill-rule="evenodd">
<g id="basketball-[sports,basketball,alex-eben-meyer]">
<path d="M45.8574648,23.1360563 C45.8846538,13.3683614 39.6539895,4.68084279 30.3934296,1.57429566 C21.1328697,-1.53225146 10.9236157,1.64033263 5.05483732,9.44840822 C-0.813941103,17.2564838 -1.02330531,27.9452781 4.53521127,35.9771831 C7.82,42.015493 13.6056338,44.9957746 19.8512676,45.5335211 C26.0303958,46.4528578 32.3146456,44.7762762 37.2146479,40.9011268 C37.5969014,40.6419718 37.9726761,40.3698592 38.335493,40.0912676 C40.4134082,38.5367279 42.0338268,36.4507748 43.0261972,34.0529577 C44.8779518,30.7119673 45.852078,26.9558971 45.8574648,23.1360563 Z" id="Shape" fill="#E6781E" stroke-width="1"/>
<g id="Group">
<path d="M23.868169,0.505352113 L23.2202817,0.505352113 C23.1230986,13.8194366 23.0064789,30.3664789 23.1295775,45.7926761 L23.2073239,45.7926761 L23.7774648,45.7926761 C23.6543662,30.3535211 23.7709859,13.8194366 23.868169,0.505352113 Z" id="Shape" stroke-width="1" fill="#824600"/>
<path d="M0.596056338,22.3261972 C0.596056338,22.5529577 0.596056338,22.7797183 0.596056338,23.0129577 L45.8769014,23.0129577 C45.8769014,22.7797183 45.8769014,22.5464789 45.8769014,22.3197183 L0.596056338,22.3261972 Z" id="Shape" stroke-width="1" fill="#824600"/>
<path d="M32.2388732,14.1369014 C33.0678257,10.8081213 34.7543188,7.75456349 37.1304225,5.28028169 C36.955493,5.14422535 36.7740845,5.00169014 36.5926761,4.87211268 C34.1801721,7.41629412 32.4661572,10.5408005 31.6169014,13.9425352 C29.3039437,22.591831 30.6126761,34.195493 37.26,40.888169 C37.4543662,40.7585915 37.6357746,40.6160563 37.823662,40.48 C32.6794366,35.2709859 29.3039437,25.1315493 32.2388732,14.1369014 Z" id="Shape" stroke-width="1" fill="#824600"/>
<path d="M14.9014085,30.3340845 C16.2875264,25.1949269 16.445105,19.8017434 15.3614085,14.5904225 C14.5798336,10.8503822 12.8836511,7.36230095 10.424507,4.43802817 L9.88028169,4.82676056 C12.3017267,7.67541516 13.9701687,11.0858087 14.7329577,14.7459155 C17.1625352,26.0580282 13.4371831,35.7439437 8.09859155,40.5642254 C8.26704225,40.7283568 8.44197183,40.8838498 8.62338028,41.0307042 C11.5129577,38.4650704 13.6639437,34.8239437 14.9014085,30.3340845 Z" id="Shape" stroke-width="1" fill="#824600"/>
</g>
</g>
</g>
</g>
</svg><!--rotationCenter:23:23-->

After

Width:  |  Height:  |  Size: 2.7 KiB

+37
View File
@@ -0,0 +1,37 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://i42hs74gw5q5"
path="res://.godot/imported/basketball.svg-841211645b0b095ba7071de154659e69.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://resources/items/basketball.svg"
dest_files=["res://.godot/imported/basketball.svg-841211645b0b095ba7071de154659e69.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
svg/scale=1.0
editor/scale_with_editor_scale=false
editor/convert_colors_with_editor_theme=false