1
1
mirror of https://github.com/Rundll86/Dog-Lynx-And-HCN.git synced 2026-06-01 17:01:53 +08:00
Files
Dog-Lynx-And-HCN/scripts/Contents/Panels/MakeFeed.gd
T
fallingshrimp b3b4fdafc2 Add new styleboxes and import energy texture
- Created a new SVG import for the energy texture, enabling better resource management and compression.
- Added a StyleBoxFlat resource for the top left panel with specified margins, background color, border width, and corner radius.
- Introduced a StyleBoxFlat resource for the top panel with similar properties, ensuring consistent UI design across panels.
2025-08-27 11:08:11 +08:00

24 lines
527 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 = []
for i in avaliableFeeds.get_children():
feeds.append(i)
feeds.shuffle()
for i in range(3):
var feed = feeds[i]
var cloned = feed.duplicate()
cloned.show()
feedCards.add_child(cloned)
func afterClose():
for i in feedCards.get_children():
feedCards.remove_child(i)