Styling say_who_window [SOLVED]

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
colacatinthehat
Newbie
Posts: 7
Joined: Fri Mar 04, 2016 6:51 am
Contact:

Styling say_who_window [SOLVED]

#1 Post by colacatinthehat » Fri Mar 04, 2016 7:16 am

Hello! Sorry to bother anyone but I've run into a jam and my ten million tabs open doesn't seem to be helping so I thought I'd ask here!

I have a speech window mock-up with the "show_two_window" as a slight overlay like this:
Image

But when I actually try and implement it under "style.say_who_window" the window appears behind the text box like so:
Image

(Theres not much to the code just
style.say_who_window.left_margin=150
style.say_who_window.ypos=400)

I looked into layers but I can't seem to find anything about layering elements in the options menu

I'm not looking to have different text boxes for every character so I tried simply making speaking characters have the mock-up version and allow the default window to not have the "say_who" box but then I couldn't get the "say_label" to move to the right position it wouldn't budge or would mysteriously vanish.

I've programmed before a bit before but I'm pretty new to renpy so I'm a little lost! I hope you can help me!
Thank you for you time
Last edited by colacatinthehat on Fri Mar 04, 2016 9:18 am, edited 1 time in total.

User avatar
Impulse
Regular
Posts: 139
Joined: Wed Feb 24, 2016 5:44 pm
Projects: Tears of Glass [Romance VN, Supernatural, School, GxB]
Deviantart: mariscribbles
Contact:

Re: Styling say_who_window

#2 Post by Impulse » Fri Mar 04, 2016 7:53 am

Update: Realized that I didn't even answer the right question. I'm sorry, but I'm glad you got help :)
Last edited by Impulse on Sun Mar 06, 2016 4:22 pm, edited 1 time in total.
Current project (on hold):
Tears of Glass - [Romance otome, Supernatural, School, GxB] - http://lemmasoft.renai.us/forums/viewto ... 43&t=37523
Demo for Tears of Glass - viewtopic.php?f=45&t=38285

User avatar
gas
Miko-Class Veteran
Posts: 838
Joined: Mon Jan 26, 2009 7:21 pm
Contact:

Re: Styling say_who_window

#3 Post by gas » Fri Mar 04, 2016 8:14 am

I'm not tied in any way to the commenter above.

You need to rewrite the say() screen a little, to have the who window after the say window.

Code: Select all

    else:

        #--->CHANGES START HERE. The two window variant, but in fact is a normal window
        window:
            id "window"

            has vbox:
                style "say_vbox"

            text what id "what"
        if who:
            window:
                style "say_who_window" #use style.say_who_window.xpos and style.say_who_window.ypos declaration in your config script to place it where you want
 
                text who:
                    id "who"
NOTE: don't copy/paste directly, indent is not correct
If you want to debate on a reply I gave to your posts, please QUOTE ME or i'll not be notified about. << now red so probably you'll see it.

10 ? "RENPY"
20 GOTO 10

RUN

colacatinthehat
Newbie
Posts: 7
Joined: Fri Mar 04, 2016 6:51 am
Contact:

Re: Styling say_who_window

#4 Post by colacatinthehat » Fri Mar 04, 2016 9:17 am

gas wrote:I'm not tied in any way to the commenter above.

You need to rewrite the say() screen a little, to have the who window after the say window.
Ahh, thank you so much! You have freed me from window hell!! I hadn't thought to go hunting in the screens script but it seems so obvious now. Thank you soso much!! 8D

User avatar
korova
Veteran
Posts: 217
Joined: Sat Jun 27, 2009 5:15 pm
Completed: Ivy, Chocolate, Time, Clair Obscur
Projects: Writing exercises, The House [Nano18]
Tumblr: korova08
itch: korova
Location: Normandie, France
Contact:

Re: Styling say_who_window [SOLVED]

#5 Post by korova » Sat Mar 05, 2016 1:08 pm

I had a similar problem, that I solved using the "order_reverse" property of the vbox like that

Code: Select all

        # Cas avec deux fenêtres.
        vbox:
            style "say_two_window_vbox"
            order_reverse True  ### ===> added property

            if who:
                window:
                    style "say_who_window"

                    text who:
                        id "who"

            window:
                id "window"

                has vbox:
                    style "say_vbox"

                text what id "what"
 
documentation here http://www.renpy.org/doc/html/style_pro ... er_reverse

Post Reply

Who is online

Users browsing this forum: Google [Bot], Majestic-12 [Bot]