Fully working menu system
This commit is contained in:
parent
1fa10004b3
commit
6eef2c781c
11 changed files with 93 additions and 9 deletions
13
scripts/Classes/Menu/transit_button.gd
Normal file
13
scripts/Classes/Menu/transit_button.gd
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
extends Button
|
||||
|
||||
## Represents button which changes menu resource on parent Menu
|
||||
class_name TransitButton
|
||||
|
||||
## This is used when button_up is activated
|
||||
var id: int = -1
|
||||
|
||||
func _init():
|
||||
get_tree().create_timer(0.05).timeout.connect(_ready)
|
||||
|
||||
func _ready():
|
||||
button_up.connect(get_parent().transit_menu.bind(id))
|
||||
Loading…
Add table
Add a link
Reference in a new issue