overlapping the main text-box with character name text-box?
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.
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.
overlapping the main text-box with character name text-box?
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.
- 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
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:
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 > >
Re: overlapping the main text-box with character name text-b
no, it doesn't want to work.
here is how the code looks.
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
- 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
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 > >
Re: overlapping the main text-box with character name text-b
well yeah its on top of it now, but it changed location and the name of the character is not even there anymore...
- 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
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 > >
Re: overlapping the main text-box with character name text-b
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
- 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
Sorry, my bad. Dtop the = :
order_reverse True
order_reverse True
< < insert Rick Cook quote here > >
Re: overlapping the main text-box with character name text-b
oh gosh it worked!! thank you!!!
Re: overlapping the main text-box with character name text-b
wait wait wait!! this cause another problem! now my choice buttons arent working!
- 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
No, sorry! You must be mistaking me for someone else.
TOIRE NO HANAKO (A Story About Fear)
TOIRE NO HANAKO (A Story About Fear)
Re: overlapping the main text-box with character name text-b
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!
thanks! it turned out i made the ymaximum 0 by accident ^^"
thanks for the threads though!
Who is online
Users browsing this forum: Bing [Bot]