mirror of
https://github.com/thegatesbrowser/thegates.git
synced 2025-09-03 05:25:48 -04:00
17 lines
391 B
GDScript
17 lines
391 B
GDScript
extends HFlowContainer
|
|
|
|
@export var bookmarks: Bookmarks
|
|
@export var bookmark_scene: PackedScene
|
|
|
|
|
|
func _ready() -> void:
|
|
bookmarks.on_star.connect(show_bookmark)
|
|
for gate in bookmarks.gates.values():
|
|
show_bookmark(gate)
|
|
|
|
|
|
func show_bookmark(gate: Gate) -> void:
|
|
var bookmark: BookmarkUI = bookmark_scene.instantiate()
|
|
bookmark.fill(gate)
|
|
add_child(bookmark)
|
|
move_child(bookmark, 0)
|