mirror of
https://github.com/Cookie-CHR/OfficeMadness-LD51.git
synced 2024-11-29 01:34:17 +00:00
28 lines
451 B
GDScript3
28 lines
451 B
GDScript3
|
extends Button
|
||
|
|
||
|
|
||
|
var minigame
|
||
|
|
||
|
var idle = preload("res://Sprites/Caller_idle.png")
|
||
|
var active = preload("res://Sprites/Caller_active.png")
|
||
|
|
||
|
|
||
|
# Called when the node enters the scene tree for the first time.
|
||
|
func _ready():
|
||
|
minigame = null
|
||
|
|
||
|
func on_pressed():
|
||
|
if not minigame == null:
|
||
|
MManager.m_open(self)
|
||
|
|
||
|
func m_choose():
|
||
|
minigame = MManager.m_choose()
|
||
|
|
||
|
func on_finished():
|
||
|
minigame = null
|
||
|
icon = idle
|
||
|
|
||
|
func change_to_active():
|
||
|
icon = active
|
||
|
|