overlapping the main text-box with character name text-box?

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
maricore
Regular
Posts: 41
Joined: Fri Jan 22, 2016 5:48 pm

overlapping the main text-box with character name text-box?

#1 Post by maricore »

that's just a very small tweak i wish i knew how to do, the text box seems to be in-front of the character's name text box, can i possibly make it the other way around? i want the character name text box to be in-front of the narration text box.
Attachments
how it looks like.
how it looks like.

User avatar
Ocelot
Lemma-Class Veteran
Posts: 2401
Joined: Tue Aug 23, 2016 10:35 am
Github: MiiNiPaa
Discord: MiiNiPaa#4384
Contact:

Re: overlapping the main text-box with character name text-b

#2 Post by Ocelot »

https://www.renpy.org/doc/html/screen_special.html#say

Find "say" screen (in screens.rpy) and make sure that part with "who" comes after "what" part

SOmething like:

Code: Select all

screen say(who, what):

    window id "window":
        has vbox

        text what id "what"

        if who:
            text who id "who"
< < insert Rick Cook quote here > >

maricore
Regular
Posts: 41
Joined: Fri Jan 22, 2016 5:48 pm

Re: overlapping the main text-box with character name text-b

#3 Post by maricore »

no, it doesn't want to work.
here is how the code looks.

Code: Select all

# Say
#
# Screen that's used to display adv-mode dialogue.
# http://www.renpy.org/doc/html/screen_special.html#say
screen say(who, what, side_image=None, two_window=False):

    # Decide if we want to use the one-window or two-window variant.
    if not two_window:

        # The one window variant.
        window:
            id "window"

            has vbox:
                style "say_vbox"

            if who:
                text who id "who"

            text what id "what"

    else:

        # The two window variant.
        vbox:
            style "say_two_window_vbox"

            if who:
                window:
                    style "say_who_window"

                    text who:
                        id "who"

            window:
                id "window"

                has vbox:
                    style "say_vbox"

                text what id "what"

    # If there's a side image, display it above the text.
    if side_image:
        add side_image
    else:
        add SideImage() xalign 0.0 yalign 1.0

    # Use the quick menu.
    use quick_menu

User avatar
Ocelot
Lemma-Class Veteran
Posts: 2401
Joined: Tue Aug 23, 2016 10:35 am
Github: MiiNiPaa
Discord: MiiNiPaa#4384
Contact:

Re: overlapping the main text-box with character name text-b

#4 Post by Ocelot »

As you are probably using two-window style, you need to make corresponding change in it:

Code: Select all

else:

    # The two window variant.
    vbox:
        style "say_two_window_vbox"
        window:
            id "window"

            has vbox:
                style "say_vbox"

            text what id "what"

        if who:
            window:
                style "say_who_window"

                text who:
                    id "who"
< < insert Rick Cook quote here > >

maricore
Regular
Posts: 41
Joined: Fri Jan 22, 2016 5:48 pm

Re: overlapping the main text-box with character name text-b

#5 Post by maricore »

well yeah its on top of it now, but it changed location and the name of the character is not even there anymore...
Attachments
bandicam 2016-10-19 11-54-33-140.jpg

User avatar
Ocelot
Lemma-Class Veteran
Posts: 2401
Joined: Tue Aug 23, 2016 10:35 am
Github: MiiNiPaa
Discord: MiiNiPaa#4384
Contact:

Re: overlapping the main text-box with character name text-b

#6 Post by Ocelot »

Ok, time for plan B: return everything as it was before, but add order_reverse = True after vbox:

Code: Select all

else:
    # The two window variant.
    vbox:
        order_reverse = True
        # rest
< < insert Rick Cook quote here > >

maricore
Regular
Posts: 41
Joined: Fri Jan 22, 2016 5:48 pm

Re: overlapping the main text-box with character name text-b

#7 Post by maricore »

gave me this error

Code: Select all

I'm sorry, but errors were detected in your script. Please correct the
errors listed below, and try again.


File "game/screens.rpy", line 34: expected a keyword argument or end of line.
    order_reverse = True
                  ^

Ren'Py Version: Ren'Py 6.99.11.1749

User avatar
Ocelot
Lemma-Class Veteran
Posts: 2401
Joined: Tue Aug 23, 2016 10:35 am
Github: MiiNiPaa
Discord: MiiNiPaa#4384
Contact:

Re: overlapping the main text-box with character name text-b

#8 Post by Ocelot »

Sorry, my bad. Dtop the = :
order_reverse True
< < insert Rick Cook quote here > >

maricore
Regular
Posts: 41
Joined: Fri Jan 22, 2016 5:48 pm

Re: overlapping the main text-box with character name text-b

#9 Post by maricore »

oh gosh it worked!! thank you!!!

maricore
Regular
Posts: 41
Joined: Fri Jan 22, 2016 5:48 pm

Re: overlapping the main text-box with character name text-b

#10 Post by maricore »

wait wait wait!! this cause another problem! now my choice buttons arent working!

User avatar
Donmai
Eileen-Class Veteran
Posts: 1960
Joined: Sun Jun 10, 2012 1:45 am
Completed: Toire No Hanako, Li'l Red [NaNoRenO 2013], The One in LOVE [NaNoRenO 2014], Running Blade [NaNoRenO 2016], The Other Question, To The Girl With Sunflowers
Projects: Slumberland
Location: Brazil
Contact:

Re: overlapping the main text-box with character name text-b

#11 Post by Donmai »

Image
No, sorry! You must be mistaking me for someone else.
TOIRE NO HANAKO (A Story About Fear)

maricore
Regular
Posts: 41
Joined: Fri Jan 22, 2016 5:48 pm

Re: overlapping the main text-box with character name text-b

#12 Post by maricore »

oh....that was here the hole time? how didn't show up in my google search?!

thanks! it turned out i made the ymaximum 0 by accident ^^"

thanks for the threads though!

Post Reply

Who is online

Users browsing this forum: Bing [Bot]