You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
64 lines
1.1 KiB
GDScript
64 lines
1.1 KiB
GDScript
extends CanvasLayer
|
|
|
|
#Vanilla
|
|
signal oneMoreCupcake()
|
|
signal fasterCupcake()
|
|
signal condensedCupcake1()
|
|
signal unlockChoc()
|
|
#Chocolate
|
|
signal oneMoreCupcake2()
|
|
signal fasterCupcake2()
|
|
signal condensedCupcake2()
|
|
signal unlockStraw()
|
|
#Strawberry
|
|
signal oneMoreCupcake3()
|
|
signal fasterCupcake3()
|
|
signal condensedCupcake3()
|
|
signal unlockRVel()
|
|
#Red Velvet
|
|
signal oneMoreCupcake4()
|
|
signal fasterCupcake4()
|
|
signal condensedCupcake4()
|
|
signal unlockCin()
|
|
#Cinnamon
|
|
signal oneMoreCupcake5()
|
|
signal fasterCupcake5()
|
|
signal condensedCupcake5()
|
|
#Nightmare
|
|
signal unlockNightmare()
|
|
|
|
func _on_close_pressed():
|
|
self.visible = false
|
|
|
|
|
|
func _on_buy_pressed():
|
|
emit_signal("oneMoreCupcake")
|
|
|
|
|
|
func _on_buy_van2_pressed():
|
|
emit_signal("fasterCupcake")
|
|
|
|
|
|
func _on_buy_van3_pressed():
|
|
emit_signal("condensedCupcake1")
|
|
|
|
|
|
func _on_buy_van4_pressed():
|
|
emit_signal("unlockChoc")
|
|
|
|
|
|
func _on_buy_choc1_pressed():
|
|
emit_signal("oneMoreCupcake2")
|
|
|
|
|
|
func _on_buy_choc2_pressed():
|
|
emit_signal("fasterCupcake2")
|
|
|
|
|
|
func _on_buy_choc3_pressed():
|
|
emit_signal("condensedCupcake2")
|
|
|
|
|
|
func _on_buy_choc4_pressed():
|
|
emit_signal("unlockStraw")
|