Quick Menu Problems [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
Skaiya
Regular
Posts: 95
Joined: Tue Sep 25, 2012 5:42 pm
Projects: My Lovely Pastry, Crystal Diamonds Shatter, IWSTBMTB
Tumblr: skaiya-art
Deviantart: skaiyaart
Location: The Netherlands
Contact:

Quick Menu Problems [SOLVED]

#1 Post by Skaiya »

Okay so guys,

Here's the deal. I'd like to customise the Quick Menu.
I followed some "tutorials" and I am getting some problems, I am probably overlooking something small.

It looks like this: [mind the place-holders]
Image

First off, it's not behind the textbox.
Second, the hotspots aren't working either.
Third, I'd really like it when you hover over them they move up a bit?

Anyway, here is my code and I am confused.

Code: Select all

# Quick Menu
#
# A screen that's included by the default say screen, and adds quick access to
# several useful functions.
screen quick_menu:
    # Add an in-game quick menu.
    hbox:
        style_group "quick"
    
        xalign 1.0
        yalign 0.8
        imagemap:
                ground "gui/textbox.png"
                hover "gui/textbox1.png"
                hotspot (646, 376, 54, 68) action ShowMenu('save')
                hotspot (572, 561, 61, 31) action ShowMenu('load')
                hotspot (687, 560, 36, 24) action ShowMenu('preferences')  
    
init -2:
    style quick_button:
        is default
        background None
        xpadding 5

    style quick_button_text:
        is default
        size 12
        idle_color "#8888"
        hover_color "#ccc"
        selected_idle_color "#cc08"
        selected_hover_color "#cc0"
        insensitive_color "#4448"
Thank you!
Last edited by Skaiya on Wed Jan 14, 2015 5:09 am, edited 1 time in total.
My dA
My Tumblr
Currently working on:
My Lovely Pastry, Crystal Diamonds Shatter, IWSTBMTB.

User avatar
trooper6
Lemma-Class Veteran
Posts: 3712
Joined: Sat Jul 09, 2011 10:33 pm
Projects: A Close Shave
Location: Medford, MA
Contact:

Re: Quick Menu Problems

#2 Post by trooper6 »

If you want them to move a bit, I think you might want image buttons. Check out this tutorial and see if it helps you at all:

http://lemmasoft.renai.us/forums/viewto ... 51&t=22565
A Close Shave:
*Last Thing Done (Aug 17): Finished coding emotions and camera for 4/10 main labels.
*Currently Doing: Coding of emotions and camera for the labels--On 5/10
*First Next thing to do: Code in all CG and special animation stuff
*Next Next thing to do: Set up film animation
*Other Thing to Do: Do SFX and Score (maybe think about eye blinks?)
Check out My Clock Cookbook Recipe: http://lemmasoft.renai.us/forums/viewto ... 51&t=21978

User avatar
Skaiya
Regular
Posts: 95
Joined: Tue Sep 25, 2012 5:42 pm
Projects: My Lovely Pastry, Crystal Diamonds Shatter, IWSTBMTB
Tumblr: skaiya-art
Deviantart: skaiyaart
Location: The Netherlands
Contact:

Re: Quick Menu Problems

#3 Post by Skaiya »

trooper6 wrote:If you want them to move a bit, I think you might want image buttons. Check out this tutorial and see if it helps you at all:

http://lemmasoft.renai.us/forums/viewto ... 51&t=22565
I did look at this and I didn't understand why it needs so many quick menu's.

Also I did this before:

Code: Select all

screen quick_menu:
    imagebutton auto "gui/save_%s.png" action ShowMenu('save') xpos 690 ypos 390 focus_mask True
    imagebutton auto "gui/load_%s.png" action ShowMenu ('load') xpos 760 ypos 390 focus_mask True
    imagebutton auto "gui/prefs_%s.png" action ShowMenu ('preferences') xpos 850 ypos 390 focus_mask True
And it gives me this error:
Exception: not a displayable: None
My dA
My Tumblr
Currently working on:
My Lovely Pastry, Crystal Diamonds Shatter, IWSTBMTB.

User avatar
Skaiya
Regular
Posts: 95
Joined: Tue Sep 25, 2012 5:42 pm
Projects: My Lovely Pastry, Crystal Diamonds Shatter, IWSTBMTB
Tumblr: skaiya-art
Deviantart: skaiyaart
Location: The Netherlands
Contact:

Re: Quick Menu Problems

#4 Post by Skaiya »

Never mind.
After playing around with copy pasting the code from http://lemmasoft.renai.us/forums/viewto ... 51&t=22565
I figured it out >.<
My dA
My Tumblr
Currently working on:
My Lovely Pastry, Crystal Diamonds Shatter, IWSTBMTB.

Post Reply

Who is online

Users browsing this forum: Google [Bot], LuckyT