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.
119 lines
2.7 KiB
GDScript
119 lines
2.7 KiB
GDScript
extends CanvasLayer
|
|
|
|
#Areas
|
|
signal yourYard()
|
|
signal neighYard()
|
|
signal honestDungeon()
|
|
signal abandonedCastle()
|
|
|
|
#Tools
|
|
signal tool1()
|
|
signal tool2()
|
|
|
|
#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()
|
|
signal unlockHon()
|
|
#Honest
|
|
signal oneMoreCupcake6()
|
|
signal fasterCupcake6()
|
|
signal condensedCupcake6()
|
|
signal horseHealth()
|
|
signal cupcakeDamage()
|
|
signal sweetieDamage()
|
|
#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")
|
|
func _on_buy_straw1_pressed():
|
|
emit_signal("oneMoreCupcake3")
|
|
func _on_buy_straw2_pressed():
|
|
emit_signal("fasterCupcake3")
|
|
func _on_buy_straw3_pressed():
|
|
emit_signal("condensedCupcake3")
|
|
func _on_buy_straw4_pressed():
|
|
emit_signal("unlockRVel")
|
|
func _on_buy_rvel1_pressed():
|
|
emit_signal("oneMoreCupcake4")
|
|
func _on_buy_rvel2_pressed():
|
|
emit_signal("fasterCupcake4")
|
|
func _on_buy_rvel3_pressed():
|
|
emit_signal("condensedCupcake4")
|
|
func _on_buy_rvel4_pressed():
|
|
emit_signal("unlockCin")
|
|
func _on_buy_cin1_pressed():
|
|
emit_signal("oneMoreCupcake5")
|
|
func _on_buy_cin2_pressed():
|
|
emit_signal("fasterCupcake5")
|
|
func _on_buy_cin3_pressed():
|
|
emit_signal("condensedCupcake5")
|
|
func _on_buy_cin4_pressed():
|
|
emit_signal("unlockHon")
|
|
func _on_buy_hon1_pressed():
|
|
emit_signal("oneMoreCupcake6")
|
|
func _on_buy_hon2_pressed():
|
|
emit_signal("fasterCupcake6")
|
|
func _on_buy_hon3_pressed():
|
|
emit_signal("condensedCupcake6")
|
|
func _on_buy_hon4_pressed():
|
|
emit_signal("unlockNightmare")
|
|
func _on_buy_night1_pressed():
|
|
pass
|
|
func _on_buy_night2_pressed():
|
|
pass
|
|
func _on_buy_night3_pressed():
|
|
pass
|
|
func _on_buy_night4_pressed():
|
|
pass
|
|
|
|
##Areas
|
|
func _on_your_yard_pressed():
|
|
emit_signal("yourYard")
|
|
func _on_buy_neighbors_yard_pressed():
|
|
emit_signal("neighYard")
|
|
|
|
##Tools
|
|
func _on_tool_1_pressed():
|
|
emit_signal("tool1")
|
|
func _on_tool_2_pressed():
|
|
emit_signal("tool2")
|