Quick menu above the saybox
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.
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.
- 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
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?
Re: Quick menu above the saybox
(the delay is not because of that)
Change the yalign property of the quickmenu. You find it at line 261 of screens.rpy.
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
10 ? "RENPY"
20 GOTO 10
RUN
- 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
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?
- 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
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.gas wrote:Change the yalign property of the quickmenu. You find it at line 261 of screens.rpy.
Re: Quick menu above the saybox
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.
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
10 ? "RENPY"
20 GOTO 10
RUN
- 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
It still does not work T___Tgas 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.
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"
Who is online
Users browsing this forum: Google [Bot]