Text Window Frame Border Problem

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
PrettieAngel
Regular
Posts: 51
Joined: Sat Nov 13, 2010 1:30 am
Projects: Aurora Spirit
Location: Earth
Contact:

Text Window Frame Border Problem

#1 Post by PrettieAngel »

My project's being going rather slowly and I've only now upgraded it to Ren'Py 6.14.1, when it seems that the previous code I used for the background of the text window no longer works as I want it (previously used 6.11.2). I've tweaked the code to be as close as I can get it but rather than displaying the 6 pixels for the bottom border, a line seems to be showing up from the part of the image I didn't define as being on the border. I've included some images, since I'm not very good at explaining what I mean.
I've tried to look around a bit for the solution but I don't really know what this is caused by, so I hope somebody might be able to help me. Thanks.


EDIT: It seems I've been able to fix this by setting tile=True, though I would appreciate it if somebody could shed some light on why the previous code doesn't seem to work with the new version.

The code I'm using to customise the text window is as follows:

Code: Select all

    #########################################
    ## 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("frame2.png", 85, 180, 215, 6)

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

    style.window.left_margin = 16
    style.window.right_margin = 16
    style.window.top_margin = 0
    style.window.bottom_margin = 16

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

    style.window.left_padding = 16
    style.window.right_padding = 16
    style.window.top_padding = 12
    style.window.bottom_padding = 12

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

    style.window.yminimum = 176

Attachments
The image I'm using for the frame.
The image I'm using for the frame.
This is how it was before, and what I want it to look like.
This is how it was before, and what I want it to look like.
This is how it is right now.
This is how it is right now.
Image

Post Reply

Who is online

Users browsing this forum: AWizardWithWords, Google [Bot], NeonNights, piinkpuddiin