2026-01-30 11:44:42 +08:00
|
|
|
@tool
|
|
|
|
|
extends FullscreenPanelBase
|
|
|
|
|
|
|
|
|
|
@onready var initialFeedSelection: HBoxContainer = $%initialFeedSelection
|
|
|
|
|
|
|
|
|
|
func beforeOpen(_args: Array = []):
|
|
|
|
|
for feed in initialFeedSelection.get_children():
|
|
|
|
|
feed.queue_free()
|
2026-01-30 12:21:02 +08:00
|
|
|
ComponentManager.feeds.shuffle()
|
2026-01-30 11:44:42 +08:00
|
|
|
for feed in ComponentManager.feeds:
|
|
|
|
|
var card = feed.instantiate() as Feed
|
2026-01-30 12:21:02 +08:00
|
|
|
if card.topic == FeedName.Topic.WEAPON:
|
|
|
|
|
continue
|
2026-01-30 11:50:16 +08:00
|
|
|
card.freeToBuy = true
|
2026-01-30 12:21:02 +08:00
|
|
|
card.selected.connect(func(_success): UIState.closeCurrentPanel())
|
2026-01-30 11:44:42 +08:00
|
|
|
initialFeedSelection.add_child(card)
|