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

@ -2,7 +2,7 @@ extends Resource
class_name Bookmarks
signal on_ready()
signal on_star(gate: Gate, featured: bool)
signal on_star(gate: Gate)
signal on_unstar(gate: Gate)
signal on_update(gate: Gate)
signal save_icon(gate: Gate)
@ -49,14 +49,14 @@ func update(gate: Gate) -> void:
on_update.emit(gate)
func star(gate: Gate, featured: bool = false) -> void:
func star(gate: Gate) -> void:
if gates.has(gate.url): return
gates[gate.url] = gate
starred_gates.append(gate)
save_icon.emit(gate)
on_star.emit(gate, featured)
on_star.emit(gate)
func unstar(gate: Gate) -> void:

View file

@ -11,6 +11,10 @@ class_name Gate
@export var icon: String
@export var image: String
# Only for featured gates. Cleared when opened
@export var featured: bool
@export var is_special: bool
var resource_pack: String
var shared_libs_dir: String # local path where libs downloaded