[Solved] Gamemenu return button not working
Posted: Thu Oct 15, 2020 3:25 pm
I'm working on a custom main menu using imagebuttons and everything else is working as intended except for one thing. When I go from main menu to settings and then try to use the return button, it starts the game instead of going back to the main menu. This is odd since I didn't change anything about the game menu, only main menu.
Main menu code:
Game menu return label code:
Any help? :0
Main menu code:
Code: Select all
screen main_menu():
imagemap:
ground "animated mainmenu"
idle "gui/mainmenuidle.png"
hover "gui/mainmenuhover.png"
hotspot (0, 454, 525, 110) action Start():
hover_sound "audio/hoversound.mp3"
activate_sound "audio/choicesound.mp3"
hotspot (0, 575, 525, 110) action ShowMenu("load"):
hover_sound "audio/hoversound.mp3"
activate_sound "audio/choicesound.mp3"
hotspot (0, 691, 525, 110) action ShowMenu("preferences"):
hover_sound "audio/hoversound.mp3"
activate_sound "audio/choicesound.mp3"
hotspot (0, 815, 525, 110) action ShowMenu("help"):
hover_sound "audio/hoversound.mp3"
activate_sound "audio/choicesound.mp3"
hotspot (0, 938, 525, 110) action Quit(confirm=not main_menu):
hover_sound "audio/hoversound.mp3"
activate_sound "audio/choicesound.mp3"
Code: Select all
textbutton _("Return"):
style "return_button"
action Return("main_menu")