mirror of
https://github.com/Cookie-CHR/OfficeMadness-LD51.git
synced 2024-11-25 08:04:19 +00:00
27 lines
451 B
GDScript
27 lines
451 B
GDScript
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
|
|
|