mirror of
https://github.com/thegatesbrowser/thegates.git
synced 2025-08-23 08:17:34 -04:00
support is_special in featured gates
This commit is contained in:
parent
dc75df3d60
commit
ca10a8482d
7 changed files with 18 additions and 11 deletions
|
@ -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)
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue