change hover color, small fixes

This commit is contained in:
Nordup 2024-11-24 15:41:25 +04:00
parent ddae024043
commit 7ef4642582
9 changed files with 40 additions and 114 deletions

View file

@ -1,13 +1,18 @@
extends Node
extends Control
class_name BookmarkUI
@export var gate_events: GateEvents
@export var image: TextureRect
@export var title: Label
@export var button: Button
var url: String
func _ready() -> void:
button.pressed.connect(on_pressed)
func fill(gate: Gate) -> void:
if gate == null: return
@ -16,6 +21,6 @@ func fill(gate: Gate) -> void:
image.texture = FileTools.load_external_tex(gate.image)
func _on_base_button_pressed() -> void:
func on_pressed() -> void:
if url.is_empty(): return
gate_events.open_gate_emit(url)