but i know there is something wrong when i try to click on return button from preferences
its wont change back to main menu ><, when i click on return its just showin pixellate effect and goes back to
preferences screen .
Code: Select all
screen main_menu():
imagemap:
ground 'images/system/menu.png'
hover 'images/system/menuhover.png'
hotspot (294, 173, 210, 53) action Start()
hotspot (307, 234, 185, 44) action ShowMenu('load')
hotspot (286, 294, 223, 51) action ShowMenu('preferences')
hotspot (325, 353, 149, 58) action Quit(confirm=False)
# This ensures that any other menu screen is replaced.
#tag menu
# The background of the main menu.
#window:
#style "mm_root"
# The main menu buttons.
#frame:
#style_group "mm"
#xalign .98
#yalign .98
#has hbox
#textbutton _("Start Game") action Start()
#textbutton _("Load Game") action ShowMenu("load")
#textbutton _("Config") action ShowMenu("preferences")
#textbutton _("Quit") action Quit(confirm=False)
#init -2:
# Make all the main menu buttons be the same size.
#style mm_button:
#size_group "mm"
Code For Navigation :
Code: Select all
screen navigation():
# The background of the game menu.
window:
style "gm_root"
# The various buttons.
frame:
style_group "gm_nav"
xalign .98
yalign .98
has hbox
textbutton _("Main Menu") action MainMenu()
textbutton _("Return") action Return()
textbutton _("Other Stuff") action ShowMenu("othperfs")
textbutton _("Quit") action Quit()
init -2:
# Make all game menu navigation buttons the same size.
style gm_nav_button:
size_group "gm_nav"
[youtube]https://youtu.be/KTeyZh-YGds[/youtube]