How can I change coordinates of in-game dialogue menus?
Forum rules
Ren'Py specific questions should be posted in the Ren'Py Questions and Annoucements forum, not here.
Ren'Py specific questions should be posted in the Ren'Py Questions and Annoucements forum, not here.
How can I change coordinates of in-game dialogue menus?
Can I put buttons with dialogue answers somewhere (for exemple, at bottom in NVL mode), or its always in the center of the screen?
Thanks!
Thanks!
Re: How can I change coordinates of in-game dialogue menus?
Yes - you can customise pretty much everything about the way Ren'Py displays stuff, including where the menu options show up.tohtamish wrote:Can I put buttons with dialogue answers somewhere (for exemple, at bottom in NVL mode), or its always in the center of the screen?
In general, you want to look at Properties and Styles for changing the appearance of things - it's probably best for you to read through that and come back with any questions you have rather than people trying to explain the whole subject to you in a forum post. I'd guess you probably want to find the container style that the menus are held inside and set its 'yalign' property to 1.0.
As a helper, you can hit Shift-I (IIRC) in-game and (so long as you have Developer Mode on) Ren'Py will report the styles of whatever you have the mouse over at the time - so to find out what styles to change to alter the positioning of menus, hold your mouse over a menu and hit Shift-I. (You can also get to this via the developer menu, Shift-D.)
Server error: user 'Jake' not found
Re: How can I change coordinates of in-game dialogue menus?
I have read that, but its too difficult for me, there isnt any ready solutions, so I posted new topic.Jake wrote:it's probably best for you to read through that
Re: How can I change coordinates of in-game dialogue menus?
If you'd read it already and didn't just need pointing to that, then you should have mentioned this salient fact in your initial post! :Ptohtamish wrote::roll:
To expand upon what I said in my previous post: if you get to the point in a Ren'Py game where you're looking at a menu, then move the mouse over a choice and hit Shift-I, then you get something like this:
Code: Select all
Style Inspector
- Window : menu_window (600x62)
- MultiBox : menu (600x62)
- Button : menu_choice_button[u'choice text'] (600x30)
Code: Select all
init:
$ style.menu_window.yalign = 1.0
(Ideally, you should probably stick stuff like this in the options.rpy file; there's a load of commented-out style stuff around line 100 onwards, somewhere around there would be great - just remember that that's already a Python block, so you don't need the '$' sign at the beginning. Really, it could be anywhere in an init block, but it needs to be after the call to 'theme.roundrect' on line 46 of options.rpy.)
I'm pretty sure there's a setting somewhere that you can use to have your menus turn up in-line with the dialog in the box at the bottom, but I can't for the life of me remember what it is, and I can't find it offhand in the docs.
Server error: user 'Jake' not found
Re: How can I change coordinates of in-game dialogue menus?
Of course I tried what u said, (I got "menu_choice_chosen") but I didnt know what to do with that, - so thanks alot!
Who is online
Users browsing this forum: No registered users