mirror of
https://github.com/thegatesbrowser/thegates.git
synced 2025-08-24 11:17:26 -04:00
change hover color, small fixes
This commit is contained in:
parent
ddae024043
commit
7ef4642582
9 changed files with 40 additions and 114 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue