PixelWrangler wrote:
The only element I'm having trouble with right now is the Yes/No Header... I want to put a background behind it (a semi-transparent Solid), but can't figure out how to address it correctly.
You can do it by setting the background property on style.yesno_window. For example:
Code: Select all
$ style.yesno_window.background = Solid((0, 0, 0, 255))
You may also want to set it to an appropriate Frame.
Another issue I ran across was with the PROMPT functionality... when you set the prompt window to a semi-transparent color, it "ghosts" the characters when you backspace over them. Not sure why, but I changed the prompt box background to a solid color, and it works fine now.
Hm... I'll check this out when I get home. Do you have a code sample. Btw, when you post Ren'Py code, post it in [ code ] [ /code ] tags (remove the spaces), so the board formats it readably.
Also, when you are positioning game menus and the like, is there a way to do so absolutely, rather than with ypos-[number] statements?
Well, ypos and xpos both take integer number of pixels from a containing widget. In the case of something that's contained by the screen, this does what you want.
For example:
Code: Select all
init:
$ style.mm_menu_window.ypos = 10
$ style.mm_menu_window.xpos = 20
show space ninja attacking at Position(xpos=42, ypos=37)
You still may need to adjust the xanchor and yanchor properties in conjunction with this.
I'll puzzle over the whole syntax thing and see if I can come up with anything. The two things I'd like to be able to do are transition out an individual text box and position objects relative to other objects.
You can transition out a text box... try code like:
Code: Select all
e "Old soldiers never die, they just fade away..."
with dissolve
On two lines like that.
Relative positioning is harder. I'll try to address it eventually, but it's not a top priority. I'll probably try to come up with some sort of general image manipulation framework for Ren'Py. So one could write something like:
Code: Select all
image foo = im.Composite((0, 0), Image("bar.jpg:"), (100, 50), Image("baz.jpg"))
Probably won't happen for a while, tho.