Changing Textbox for In-Game Messages

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
Endorphin
Veteran
Posts: 366
Joined: Mon Nov 22, 2010 10:52 am
Location: Germany
Contact:

Changing Textbox for In-Game Messages

#1 Post by Endorphin » Mon Nov 22, 2010 11:21 am

Hello! =)

So... I was messing around with Ren'Py, and finally got the windowskin I made to work.
Image
[Yeah, there are still buttons missing. I know that toggle_skipping makes a skip button, but what is the thing for auto?]
But like you can see in this picture, it's not symmetric, which means it looks rather really bad with this In-game Messages Script.
I'd like to change this textboxdesign to either the default one, or another frame thingy.
I guess I'd have to change "style.messageWindow = Style(style.window)", but I don't know what to insert. ^^"

(Warning: Yes, I'm a complete newbie. I started last frieday, and I'm currently a bit stressed so I'm still unexperienced. However, I hope that I'm not annoying you with a question you ansswered a thousand times.)

I hope that still somebody can help me. >.<
Well, thank you for reading~ ♥

- Ryouko
Last edited by Endorphin on Mon Nov 22, 2010 2:49 pm, edited 2 times in total.

User avatar
Jake
Support Hero
Posts: 3826
Joined: Sat Jun 17, 2006 7:28 pm
Contact:

Re: Changing Textbox for In-Game Messages

#2 Post by Jake » Mon Nov 22, 2010 11:48 am

Ryouko wrote: I guess I'd have to change "style.messageWindow = Style(style.window)", but I don't know what to insert. ^^"
I'm guessing you've changed the dialogue box by changing style.window.background?

If you only want your change there to apply to the dialogue box, and not all windows everywhere in your game, then you could change 'style.say_window' instead, which is literally just the window which gets used for dialogue. Like that any other styles which use style.window (like the one for the in-game messages) will still use the default.


(Alternatively, you could add extra lines to set up style.messageWindow in the same way that you changed style.window to alter your dialogue window, and it'll use those settings instead of the ones you gave for style.window. Basically you can change all kinds of style properties on these styles just by something like this:

Code: Select all

init python:
    style.messageWindow.background = "message_window_graphic.png"
    style.messageWindow.left_padding = 10
    style.messageWindow.right_padding = 10
and so on. Just make sure that you do it in an init python block - or in an init block with a '$' at the beginning of the line.
Server error: user 'Jake' not found

Endorphin
Veteran
Posts: 366
Joined: Mon Nov 22, 2010 10:52 am
Location: Germany
Contact:

Re: Changing Textbox for In-Game Messages

#3 Post by Endorphin » Mon Nov 22, 2010 11:54 am

Ah, so it's 'style.say_window'!
Thank you so much, you really made my day, Jake. ♥

Post Reply

Who is online

Users browsing this forum: No registered users