Problem with character defined backgrund text window

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
johnstag123
Newbie
Posts: 14
Joined: Mon Dec 02, 2013 7:27 am
Contact:

Problem with character defined backgrund text window

#1 Post by johnstag123 » Thu Jan 09, 2014 3:41 am

Hello, I read from one of the renpy docs that you could change the text window background for a specific character.
define e = Character('Eileen', color="#c8ffc8", window_background="window1.png")
I tried it however, I'm having problems with the aligment. The next window screen of the others are alot bigger that then original. I tried to match the padding and the margin and others, however it still does not change. I was thinking of making it a style like the show_who_window but I'm not really sure how to do it. I also checked if it was problem with the images but it appears its not.
define L = Character(_('Louis Camoe'), color="#FF66CC", show_two_window=True , show_who_window_style="say_who_windowS", window_background="Louis.png")

define R = Character(_('Ryker Vanoe'), color="#FF66CC", show_two_window=True , show_who_window_style="say_who_windowS", window_background="Ryker.png")
Here is my setting in my options:
#########################################
## These settings let you customize the window containing the
## dialogue and narration, by replacing it with an image.

## The background of the window. In a Frame, the two numbers
## are the size of the left/right and top/bottom borders,
## respectively.

style.window.background = Frame("window.png", 12, 12)

## Margin is space surrounding the window, where the background
## is not drawn.

# style.window.left_margin = 6
# style.window.right_margin = 6
#style.window.top_margin = 6
style.window.bottom_margin = -2

# Padding is space inside the window, where the background is
## drawn.

style.window.left_padding = 35
style.window.right_padding = 35
style.window.top_padding = 30
#style.window.bottom_padding = 20

## This is the minimum height of the window, including the margins
## and padding.

style.window.yminimum = 170
The attachments shows the result (I disabled the show two window for now)
Attachments
original.png
problem 2.png
problem.png

User avatar
Alex
Lemma-Class Veteran
Posts: 2981
Joined: Fri Dec 11, 2009 5:25 pm
Contact:

Re: Problem with character defined backgrund text window

#2 Post by Alex » Thu Jan 09, 2014 1:00 pm

Try

Code: Select all

define L = Character(_('Louis Camoe'), color="#FF66CC", show_two_window=True , show_who_window_style="say_who_windowS", window_background=Frame("Louis.png", 12, 12) )

Post Reply

Who is online

Users browsing this forum: Google [Bot]