Quick menu above the saybox

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
DeXP
Newbie
Posts: 10
Joined: Wed Nov 12, 2014 10:39 am
Completed: One Manga Day
Github: DeXP
Skype: DeXPeriX
Soundcloud: dexp-music
Contact:

Quick menu above the saybox

#1 Post by DeXP »

I want to see my `quickmenu` above the `saybox`. I added `vbox` into `screen say`. This `vbox` has quckmenu buttons, window with id "window" and ` text what id "what"`. But now quick menu buttons click work correctly only after second click (when `cps` is not equal to zero). So, can I place quickmenu right on `say` screen? If not, how to place quickmenu above the saybox?

User avatar
gas
Miko-Class Veteran
Posts: 842
Joined: Mon Jan 26, 2009 7:21 pm
Contact:

Re: Quick menu above the saybox

#2 Post by gas »

(the delay is not because of that)

Change the yalign property of the quickmenu. You find it at line 261 of screens.rpy.
Last edited by gas on Wed Feb 08, 2017 4:52 pm, edited 1 time in total.
If you want to debate on a reply I gave to your posts, please QUOTE ME or i'll not be notified about. << now red so probably you'll see it.

10 ? "RENPY"
20 GOTO 10

RUN

User avatar
barsunduk
Regular
Posts: 33
Joined: Fri Jul 18, 2014 1:06 pm
Completed: «Crystal City», «Mega City», «Kilmonger», «Neuronaut», «Love, Death & Veggies», «Arrow Tourney», «Big Red Hood: Halloween», «Succubus Throne»
Projects: «Swordsman Tourney», «This Tiny Galaxy»
Organization: 7DOTS
itch: 7dots
Contact:

Re: Quick menu above the saybox

#3 Post by barsunduk »

Maybe, just place your quickmenu above the saybox by coordinate. For this you need to know the height of scalable saybox. Does anyone knows how to get it?

User avatar
DeXP
Newbie
Posts: 10
Joined: Wed Nov 12, 2014 10:39 am
Completed: One Manga Day
Github: DeXP
Skype: DeXPeriX
Soundcloud: dexp-music
Contact:

Re: Quick menu above the saybox

#4 Post by DeXP »

gas wrote:Change the yalign property of the quickmenu. You find it at line 261 of screens.rpy.
The height of saybox is dynamical. It's depends on text size. I can't place quickmenu to one statical position in total screen's coordinates.

User avatar
gas
Miko-Class Veteran
Posts: 842
Joined: Mon Jan 26, 2009 7:21 pm
Contact:

Re: Quick menu above the saybox

#5 Post by gas »

To do it programmatically you have to...
Do a void frame.
Insert a vbox.
Insert an hbox with buttons (but DON'T call it quick_menu in any reference).
THEN add the window with the proper id and all his own usual elements.

Your mistake was to put the buttons inside the window.
If you want to debate on a reply I gave to your posts, please QUOTE ME or i'll not be notified about. << now red so probably you'll see it.

10 ? "RENPY"
20 GOTO 10

RUN

User avatar
barsunduk
Regular
Posts: 33
Joined: Fri Jul 18, 2014 1:06 pm
Completed: «Crystal City», «Mega City», «Kilmonger», «Neuronaut», «Love, Death & Veggies», «Arrow Tourney», «Big Red Hood: Halloween», «Succubus Throne»
Projects: «Swordsman Tourney», «This Tiny Galaxy»
Organization: 7DOTS
itch: 7dots
Contact:

Re: Quick menu above the saybox

#6 Post by barsunduk »

gas wrote:To do it programmatically you have to...
Do a void frame.
Insert a vbox.
Insert an hbox with buttons (but DON'T call it quick_menu in any reference).
THEN add the window with the proper id and all his own usual elements.
It still does not work T___T
First click is for finish cps...

Code: Select all

vbox:
    style "say_two_window_vbox"
    # say_who and quickmenu
    hbox:
        xfill True
        frame:
            style "say_who_window"
            xminimum 400
            if who:
                text who:
                    id "who"
                    xalign .5
        hbox:
            xalign 1.0
            imagebutton auto "back %s" action Rollback()
            imagebutton auto "skip %s" action Skip()
            imagebutton auto "auto %s" action Preference("auto-forward", "toggle")
            imagebutton auto "hide %s" action HideInterface()
            imagebutton auto "save %s" action ShowMenu('save')
            imagebutton auto "pref %s" action ShowMenu('preferences')
    window:
        id "window"
        has vbox:
            style "say_vbox"
        text what id "what"

Post Reply

Who is online

Users browsing this forum: Google [Bot]