bunch of fixes and changes done
This commit is contained in:
parent
4a9193e549
commit
73b9a706a3
59 changed files with 940 additions and 68 deletions
22
credits/credit_slot.gd
Normal file
22
credits/credit_slot.gd
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
extends ItemSlot
|
||||
|
||||
@export var link : String = ""
|
||||
|
||||
# Called when the node enters the scene tree for the first time.
|
||||
func _ready() -> void:
|
||||
super()
|
||||
block_taking = true
|
||||
if link != "":
|
||||
label.text = "🌐"
|
||||
pass # Replace with function body.
|
||||
|
||||
|
||||
# Called every frame. 'delta' is the elapsed time since the previous frame.
|
||||
func _process(delta: float) -> void:
|
||||
pass
|
||||
|
||||
|
||||
func _on_gui_input(event: InputEvent) -> void:
|
||||
if event.is_pressed() and link != "":
|
||||
OS.shell_open(link)
|
||||
#print("slot clicked")
|
||||
Loading…
Add table
Add a link
Reference in a new issue