forked from team-sg/hero-mark-2
put more text on menus
This commit is contained in:
parent
f14e8ebdd0
commit
8ba46dc705
23 changed files with 373 additions and 69 deletions
14
menus/DeleteButton.gd
Normal file
14
menus/DeleteButton.gd
Normal file
|
@ -0,0 +1,14 @@
|
|||
extends TextureButton
|
||||
|
||||
onready var sprite = $AnimatedSprite
|
||||
|
||||
func _process(delta):
|
||||
if has_focus():
|
||||
sprite.playing = true
|
||||
else:
|
||||
sprite.playing = false
|
||||
sprite.frame = 0
|
||||
|
||||
func _gui_input(event):
|
||||
if event.is_action_pressed("ui_accept"):
|
||||
get_parent().set_kill_mode(!get_parent().kill_mode)
|
Loading…
Add table
Add a link
Reference in a new issue