1
1
mirror of https://github.com/Rundll86/Dog-Lynx-And-HCN.git synced 2026-05-28 06:51:54 +08:00
Files
Dog-Lynx-And-HCN/scripts/Contents/Panels/SelectIntialFeed.gd
T
fallingshrimp 5a4ab83188 feat(Feed): 添加免费购买功能
在Feed结构中新增freeToBuy属性,当设置为true时允许免费购买物品。同时修改SelectIntialFeed面板,在初始化时将feed卡片设置为免费购买。移除UIState中不必要的调试打印语句。
2026-01-30 11:50:16 +08:00

13 lines
356 B
GDScript

@tool
extends FullscreenPanelBase
@onready var initialFeedSelection: HBoxContainer = $%initialFeedSelection
func beforeOpen(_args: Array = []):
for feed in initialFeedSelection.get_children():
feed.queue_free()
for feed in ComponentManager.feeds:
var card = feed.instantiate() as Feed
card.freeToBuy = true
initialFeedSelection.add_child(card)