Can You Make The Namebox Below the Textbox?
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.
- tiya_nofurita
- Miko-Class Veteran
- Posts: 669
- Joined: Fri Jun 22, 2012 7:23 pm
- Completed: ALLBLACK Phase 1, Heart's Blight, Last Rx., EDDA Cafe, Kohana, Half Moon
- Projects: ALLBLACK Phase 2
- Organization: VN Project Indonesia
- Deviantart: SECONDARY-TARGET
- itch: NSAID
- Location: I can be everywhere
- Discord: 3,4-Methylendioxymethamphetamine#4886
- Contact:
Can You Make The Namebox Below the Textbox?
Just asking, is it possible for Ren'Py to place the namebox below the textbox, just like this game?
I've been trying with style.say_who_window whatever it is but to no avail.
I've been trying with style.say_who_window whatever it is but to no avail.
- PyTom
- Ren'Py Creator
- Posts: 16096
- Joined: Mon Feb 02, 2004 10:58 am
- Completed: Moonlight Walks
- Projects: Ren'Py
- IRC Nick: renpytom
- Github: renpytom
- itch: renpytom
- Location: Kings Park, NY
- Contact:
Re: Can You Make The Namebox Below the Textbox?
The way to do this is to edit screens.rpy, and change the order of things in the say screen.
Supporting creators since 2004
(When was the last time you backed up your game?)
"Do good work." - Virgil Ivan "Gus" Grissom(When was the last time you backed up your game?)
Software > Drama • https://www.patreon.com/renpytom
- tiya_nofurita
- Miko-Class Veteran
- Posts: 669
- Joined: Fri Jun 22, 2012 7:23 pm
- Completed: ALLBLACK Phase 1, Heart's Blight, Last Rx., EDDA Cafe, Kohana, Half Moon
- Projects: ALLBLACK Phase 2
- Organization: VN Project Indonesia
- Deviantart: SECONDARY-TARGET
- itch: NSAID
- Location: I can be everywhere
- Discord: 3,4-Methylendioxymethamphetamine#4886
- Contact:
Re: Can You Make The Namebox Below the Textbox?
Hm, it works, but how can I "centered" the position of namebox now?
This doesn't work as expected. I want it to be "centered" on the below screen, no matter how long the "say" sentence is.
This doesn't work as expected. I want it to be "centered" on the below screen, no matter how long the "say" sentence is.
Code: Select all
if not two_window:
# The one window variant.
window:
id "window"
has vbox:
style "say_vbox"
text what id "what"
if who:
vbox xalign 0.5 ypos 0.9:
text who id "who"
Last edited by tiya_nofurita on Thu May 15, 2014 7:41 pm, edited 1 time in total.
- 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: Can You Make The Namebox Below the Textbox?
try something like
Not tested.
Code: Select all
style say_who_window:
xalign 0.5
No, sorry! You must be mistaking me for someone else.
TOIRE NO HANAKO (A Story About Fear)
TOIRE NO HANAKO (A Story About Fear)
- tiya_nofurita
- Miko-Class Veteran
- Posts: 669
- Joined: Fri Jun 22, 2012 7:23 pm
- Completed: ALLBLACK Phase 1, Heart's Blight, Last Rx., EDDA Cafe, Kohana, Half Moon
- Projects: ALLBLACK Phase 2
- Organization: VN Project Indonesia
- Deviantart: SECONDARY-TARGET
- itch: NSAID
- Location: I can be everywhere
- Discord: 3,4-Methylendioxymethamphetamine#4886
- Contact:
Re: Can You Make The Namebox Below the Textbox?
Tried it, but the frame looks weird. It doesn't "stretch" as long as the textbox goes.
-
- Eileen-Class Veteran
- Posts: 1258
- Joined: Fri Sep 21, 2007 7:13 am
- Projects: a battle engine
- Contact:
Re: Can You Make The Namebox Below the Textbox?
Code: Select all
style say_who_window xfill True
style say_label xalign 0.5
- tiya_nofurita
- Miko-Class Veteran
- Posts: 669
- Joined: Fri Jun 22, 2012 7:23 pm
- Completed: ALLBLACK Phase 1, Heart's Blight, Last Rx., EDDA Cafe, Kohana, Half Moon
- Projects: ALLBLACK Phase 2
- Organization: VN Project Indonesia
- Deviantart: SECONDARY-TARGET
- itch: NSAID
- Location: I can be everywhere
- Discord: 3,4-Methylendioxymethamphetamine#4886
- Contact:
Re: Can You Make The Namebox Below the Textbox?
It works! Although now the "height" of the textbox between "narrated" and "say" sentences looks drastically different because of two window variant....I really have no idea how to implement this with one window variant, so it'd be the same height no matter "narrated" or "say" sentences.Asceai wrote:Code: Select all
style say_who_window xfill True style say_label xalign 0.5
Nevertheless thank you all for your help
-
- Eileen-Class Veteran
- Posts: 1258
- Joined: Fri Sep 21, 2007 7:13 am
- Projects: a battle engine
- Contact:
Re: Can You Make The Namebox Below the Textbox?
I don't know of a good way to do that with styles. What I'd do is move the 'if who:' check:
- Remove it and de-indent everything inside it so it's at the same level of indentation as 'if who:' before.
- Add 'if who:' in the place where the 'text who' code is, then indent that, so the who window appears even though the text doesn't.
- Then add an 'else:' statement to the 'if who:' with something like text "" so the window has a child of the right height.
Re: Can You Make The Namebox Below the Textbox?
You could do custom textboxes for the characters that have their names in the image so you wouldn't need a namebox.
I copied this from an old version project so the coding might have changed since then, but the general idea is the same.
Code: Select all
define tito = Character("", window_background="textbox_tito.png", BLAH BLAH OTHER PROPERTIES)
- tiya_nofurita
- Miko-Class Veteran
- Posts: 669
- Joined: Fri Jun 22, 2012 7:23 pm
- Completed: ALLBLACK Phase 1, Heart's Blight, Last Rx., EDDA Cafe, Kohana, Half Moon
- Projects: ALLBLACK Phase 2
- Organization: VN Project Indonesia
- Deviantart: SECONDARY-TARGET
- itch: NSAID
- Location: I can be everywhere
- Discord: 3,4-Methylendioxymethamphetamine#4886
- Contact:
Re: Can You Make The Namebox Below the Textbox?
Ah! That's very convenient and easy method lol never thought of that :p. Less flexible indeed and memory-consuming.15nick wrote:You could do custom textboxes for the characters that have their names in the image so you wouldn't need a namebox.I copied this from an old version project so the coding might have changed since then, but the general idea is the same.Code: Select all
define tito = Character("", window_background="textbox_tito.png", BLAH BLAH OTHER PROPERTIES)
I'll try it soon
Who is online
Users browsing this forum: Ahrefs [Bot], Google [Bot], Majestic-12 [Bot]