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

feat: 更新饲料和面板逻辑,添加香蕉饲料,重构UI组件和状态管理

This commit is contained in:
2025-08-26 22:31:28 +08:00
parent 51fc904a6a
commit 739be888f3
15 changed files with 103 additions and 22 deletions
@@ -1,9 +1,11 @@
[gd_scene load_steps=3 format=3 uid="uid://1n28ji5sl6bx"]
[gd_scene load_steps=4 format=3 uid="uid://1n28ji5sl6bx"]
[ext_resource type="PackedScene" uid="uid://d3qojeqa3difn" path="res://components/Abstracts/FullscreenPanelBase.tscn" id="1_1wmro"]
[ext_resource type="PackedScene" uid="uid://bykwevnv7keeh" path="res://components/Abstracts/FeedCardBase.tscn" id="2_ae402"]
[ext_resource type="Script" path="res://scripts/Contents/Panels/MakeFeed.gd" id="2_pr610"]
[ext_resource type="PackedScene" uid="uid://btisbc7ehj4fo" path="res://components/Feeds/Banana.tscn" id="3_f2lyw"]
[node name="MakeFeed" instance=ExtResource("1_1wmro")]
script = ExtResource("2_pr610")
[node name="wrapper" parent="content" index="0"]
theme_override_constants/separation = 50
@@ -53,15 +55,19 @@ fit_content = true
autowrap_mode = 0
[node name="feedcards" type="HBoxContainer" parent="content/wrapper" index="1"]
unique_name_in_owner = true
layout_mode = 2
theme_override_constants/separation = 30
alignment = 1
[node name="FeedCard" parent="content/wrapper/feedcards" index="0" instance=ExtResource("2_ae402")]
layout_mode = 2
[node name="avaliableFeeds" type="Node" parent="content/wrapper" index="2"]
unique_name_in_owner = true
[node name="FeedCard2" parent="content/wrapper/feedcards" index="1" instance=ExtResource("2_ae402")]
layout_mode = 2
[node name="Banana" parent="content/wrapper/avaliableFeeds" index="0" instance=ExtResource("3_f2lyw")]
visible = false
[node name="FeedCard3" parent="content/wrapper/feedcards" index="2" instance=ExtResource("2_ae402")]
layout_mode = 2
[node name="Banana2" parent="content/wrapper/avaliableFeeds" index="1" instance=ExtResource("3_f2lyw")]
visible = false
[node name="Banana3" parent="content/wrapper/avaliableFeeds" index="2" instance=ExtResource("3_f2lyw")]
visible = false
+4 -2
View File
@@ -20,6 +20,7 @@ corner_radius_bottom_right = 5
corner_radius_bottom_left = 5
[node name="UI" type="CanvasLayer"]
process_mode = 3
script = ExtResource("1_f00a6")
[node name="root" type="Control" parent="."]
@@ -59,7 +60,8 @@ unique_name_in_owner = true
layout_mode = 2
type = 1
[node name="fullscreenPanels" type="Control" parent="root"]
[node name="panels" type="Control" parent="root"]
unique_name_in_owner = true
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
@@ -67,6 +69,6 @@ anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
[node name="MakeFeed" parent="root/fullscreenPanels" instance=ExtResource("4_kkki3")]
[node name="MakeFeed" parent="root/panels" instance=ExtResource("4_kkki3")]
visible = false
layout_mode = 1