Main Menu Wont Show After Changed Into A Imagemap [SOLVED]

Discuss how to use the Ren'Py engine to create visual novels and story-based games. New releases are announced in this section.
Forum rules
This is the right place for Ren'Py help. Please ask one question per thread, use a descriptive subject like 'NotFound error in option.rpy' , and include all the relevant information - especially any relevant code and traceback messages. Use the code tag to format scripts.
Post Reply
Message
Author
User avatar
pratomoastan
Regular
Posts: 39
Joined: Fri Mar 11, 2016 11:39 am
Projects: My High School Life
Organization: After School Things
Deviantart: pratomoastan
Location: Indonesia
Contact:

Main Menu Wont Show After Changed Into A Imagemap [SOLVED]

#1 Post by pratomoastan »

Hi today im re working my main menu from scratch, and use imagemap its worked just fine
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 Video For The Bug:
[youtube]https://youtu.be/KTeyZh-YGds[/youtube]
Last edited by pratomoastan on Sun Jul 03, 2016 11:58 am, edited 1 time in total.
~ Sempai !!!

User avatar
pratomoastan
Regular
Posts: 39
Joined: Fri Mar 11, 2016 11:39 am
Projects: My High School Life
Organization: After School Things
Deviantart: pratomoastan
Location: Indonesia
Contact:

Re: Main Menu Wont Show After Changed Into A Imagemap

#2 Post by pratomoastan »

Emm should i add the
tag menu << ?
~ Sempai !!!

User avatar
mobychan
Veteran
Posts: 275
Joined: Fri Apr 24, 2015 6:31 am
Projects: The Chosen - Sakura Pink & Gentian Blue
Organization: Foresoft
Location: Germany
Contact:

Re: Main Menu Wont Show After Changed Into A Imagemap

#3 Post by mobychan »

All menu screens should use the tag, it's so it knows they belong together/replace each other

User avatar
pratomoastan
Regular
Posts: 39
Joined: Fri Mar 11, 2016 11:39 am
Projects: My High School Life
Organization: After School Things
Deviantart: pratomoastan
Location: Indonesia
Contact:

Re: Main Menu Wont Show After Changed Into A Imagemap

#4 Post by pratomoastan »

mobychan wrote:All menu screens should use the tag, it's so it knows they belong together/replace each other
well then its worked after i add the tag >< okay thanks
~ Sempai !!!

Post Reply

Who is online

Users browsing this forum: No registered users