Initial commit (1/2)
This commit is contained in:
commit
3411c5796d
66 changed files with 2261 additions and 0 deletions
16
scripts/MenuButton.gd
Normal file
16
scripts/MenuButton.gd
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
extends NinePatchRect
|
||||
|
||||
class_name MenuDefaultButton
|
||||
|
||||
@export var Clickable : BaseButton
|
||||
|
||||
@onready var PlayerShip = get_tree().current_scene.get_node("MainShip")
|
||||
|
||||
func _ready():
|
||||
Clickable.button_up.connect(_button_up)
|
||||
|
||||
func _button_up():
|
||||
action()
|
||||
|
||||
func action():
|
||||
pass
|
||||
Loading…
Add table
Add a link
Reference in a new issue