[SOLVED] How to implement this tricky preferences menu?

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
alexei
Regular
Posts: 137
Joined: Mon Sep 09, 2019 10:31 am
Completed: re:shape, Monster Boys Doctor, Hearts and Hexes, The Prince's Heart, Dragon Gazer
Projects: Motifs, Longing for Change, The Sinking of the Dream Chaser, Town of the Damned, Monster Boy Wars
Organization: Funigami
itch: funigami
Discord: alexei#5190
Contact:

[SOLVED] How to implement this tricky preferences menu?

#1 Post by alexei »

I want for the preferences quick menu button to appear when the ghost is. It's essentially an img button. How do I do this?
Image
Last edited by alexei on Sat Sep 11, 2021 4:42 pm, edited 1 time in total.

rayminator
Miko-Class Veteran
Posts: 793
Joined: Fri Feb 09, 2018 12:05 am
Location: Canada
Contact:

Re: How to implement this tricky preferences menu?

#2 Post by rayminator »

you would do it this way

Code: Select all

imagebutton:
     ypos 0
     xpos 0
     idle "image/your_image.png"
     hover "image/your_image.png"
     action ShowMenu("preferences") or Show("preferences")

alexei
Regular
Posts: 137
Joined: Mon Sep 09, 2019 10:31 am
Completed: re:shape, Monster Boys Doctor, Hearts and Hexes, The Prince's Heart, Dragon Gazer
Projects: Motifs, Longing for Change, The Sinking of the Dream Chaser, Town of the Damned, Monster Boy Wars
Organization: Funigami
itch: funigami
Discord: alexei#5190
Contact:

Re: How to implement this tricky preferences menu?

#3 Post by alexei »

ok, so I found the solution. I know how to implement img buttons, my question was referring as to where to place the preferences menu.

What I did was to remove the preferences text button from the quick menu screen and created an img button within the textbox screen. Then I just aligned it properly and it worked.

Post Reply

Who is online

Users browsing this forum: Ocelot