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/MakeFeed.gd
T
fallingshrimp 23bc9b3e20 Add SVG assets for strawberries and watermelons with import configurations
- Added `strawberry-a.svg` and its corresponding import file `strawberry-a.svg.import`.
- Added `watermelon-a.svg` and its corresponding import file `watermelon-a.svg.import`.
- Added `watermelon-c.svg` and its corresponding import file `watermelon-c.svg.import`.
- Configured texture compression settings for all SVG assets to optimize rendering.
2025-08-27 11:48:54 +08:00

29 lines
663 B
GDScript

@tool
extends FullscreenPanelBase
@onready var avaliableFeeds: Node = $"%avaliableFeeds"
@onready var feedCards: HBoxContainer = $"%feedcards"
func _ready():
for i in avaliableFeeds.get_children():
i.hide()
func beforeOpen():
var feeds: Array[Feed] = []
for i in avaliableFeeds.get_children():
feeds.append(i)
var allHad = false
while not allHad:
afterClose()
feeds.shuffle()
for i in range(3):
var feed = feeds[i]
var cloned = feed.duplicate() as Feed
cloned.show()
feedCards.add_child(cloned)
if cloned.allHad(UIState.player):
allHad = true
func afterClose():
for i in feedCards.get_children():
feedCards.remove_child(i)