imagemap method of GUI

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
User avatar
Posts: 78
Joined: Sat Jul 04, 2015 4:05 pm

imagemap method of GUI

#1 Post by Mooneon » Sun Nov 17, 2019 2:30 am

because of the new gui script which i dont like - can you use this code for customizing the GUI :

Code: Select all

screen main_menu():

    # This ensures that any other menu screen is replaced.
    tag menu

    # The background of the main menu.
        style "mm_root"

        ground "GUI/main_idle.png"
        idle "GUI/main_idle.png"
        hover "GUI/main_hover.png"

        alpha False
        # This is so that everything transparent is invisible to the cursor.

        hotspot (600, 961, 147, 79) action Start() activate_sound "click.wav"
        hotspot (854, 964, 138, 83) action ShowMenu("load") activate_sound "click.wav"
        hotspot (1137, 958, 178, 96) action ShowMenu("preferences") activate_sound "click.wav"
        hotspot (1481, 958, 130, 88) action Help() activate_sound "click.wav"
        hotspot (1727, 961, 119, 92) action Quit(confirm=False)
can you delete gui.rpy? Also, is there any way to get the old script of screens.rpy and options.rpy?

User avatar
Posts: 78
Joined: Sat Jul 04, 2015 4:05 pm

Re: imagemap method of GUI

#2 Post by Mooneon » Mon Nov 18, 2019 1:14 am

yeah, what a stupid question to even reply to

User avatar
Arbiter of the Internets
Posts: 4053
Joined: Tue Aug 26, 2003 4:37 am
Completed: lots; see website!
Projects: something mysterious involving yuri, usually
Organization: Hanako Games
Tumblr: hanakogames

Re: imagemap method of GUI

#3 Post by papillon » Mon Nov 18, 2019 7:33 pm

Personally I end up with a ton of different old versions of RenPy installed for various reasons. The easy way to get older versions of those files is to download an older RenPy installer, I'm pretty sure they're still available.

I can't answer questions about imagemaps because I'm always so sad that people use them :D OTOH, 'try it and see' is probably a start?

User avatar
Lemma-Class Veteran
Posts: 3000
Joined: Mon Dec 14, 2015 5:05 am
Location: Your monitor

Re: imagemap method of GUI

#4 Post by Imperf3kt » Mon Nov 18, 2019 8:30 pm

As long as you have a style called mm_root, that code will work fine.

In my personal opinion however, imagemaps are outdated and should be replaced with imagebuttons.

Much easier, can be animated, and don't need as many images as imagemaps, so tend to result in smaller filesizes.
Warning: May contain trace amounts of gratuitous plot.
pro·gram·mer (noun) An organism capable of converting caffeine into code.

Imperf3kt Blackjack - a WIP blackjack game for Android made using Ren'Py
Free Android GUI - Updated occasionally

Post Reply

Who is online

Users browsing this forum: Bing [Bot]