mirror of
https://github.com/Rundll86/Dog-Lynx-And-HCN.git
synced 2026-06-11 14:17:13 +08:00
feat: 更新饲料和面板逻辑,添加香蕉饲料,重构UI组件和状态管理
This commit is contained in:
@@ -28,7 +28,7 @@ script = ExtResource("1_2ea75")
|
||||
|
||||
[node name="container" type="VBoxContainer" parent="."]
|
||||
layout_mode = 2
|
||||
theme_override_constants/separation = 20
|
||||
theme_override_constants/separation = 10
|
||||
|
||||
[node name="selectBtn" type="Button" parent="container"]
|
||||
unique_name_in_owner = true
|
||||
|
||||
@@ -37,6 +37,10 @@ radius = 41.0122
|
||||
[node name="Rooster" instance=ExtResource("1_e5pl8")]
|
||||
script = ExtResource("2_oqdqd")
|
||||
cooldownUnit = 200.0
|
||||
inventory = {
|
||||
0: 100,
|
||||
1: 100
|
||||
}
|
||||
|
||||
[node name="sprint" parent="sounds" index="0"]
|
||||
stream = ExtResource("4_66s6c")
|
||||
|
||||
@@ -6,8 +6,8 @@
|
||||
[node name="Banana" instance=ExtResource("1_vapev")]
|
||||
avatarTexture = ExtResource("2_2mlfi")
|
||||
displayName = "香蕉"
|
||||
fields = Array[int]([0, 3])
|
||||
fieldValues = Array[float]([10.0, 0.1])
|
||||
fields = Array[int]([0, 3, 1])
|
||||
fieldValues = Array[float]([10.0, 0.1, 0.1])
|
||||
costs = Array[int]([0, 1])
|
||||
costCounts = Array[int]([10, 5])
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user