support is_special in featured gates

This commit is contained in:
Nordup 2025-08-15 20:25:14 +07:00
parent dc75df3d60
commit ca10a8482d
7 changed files with 18 additions and 11 deletions

View file

@ -10,7 +10,7 @@ func _ready() -> void:
show_bookmark(gate)
func show_bookmark(gate: Gate, _featured: bool = false) -> void:
func show_bookmark(gate: Gate) -> void:
var bookmark: BookmarkUI = bookmark_scene.instantiate()
bookmark.fill(gate)
add_child(bookmark)

View file

@ -15,11 +15,11 @@ func _ready() -> void:
button_special.pressed.connect(on_pressed)
func fill(gate: Gate, special: bool = false) -> void:
func fill(gate: Gate) -> void:
if gate == null: return
button.visible = not special
button_special.visible = special
button.visible = not gate.is_special
button_special.visible = gate.is_special
url = gate.url
title.text = "Unnamed" if gate.title.is_empty() else gate.title