How to disable Namebox? [answered]

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
User avatar
AsHLeX
Miko-Class Veteran
Posts: 556
Joined: Wed Dec 25, 2013 1:09 pm
Completed: Starlight Dreamers, Mysterious Melody, Town of Memories, Marked, To Fly, The Change, Him From The Past, A Forgotten Memory
Projects: Cafe Mysteria
Location: Malaysia
Contact:

How to disable Namebox? [answered]

#1 Post by AsHLeX »

Hey guys! Kind of a silly question here but I'm not used to the new Ren'py GUI. How do I disable the namebox? I want both the character name and the dialogue to just be in the same window, but I can't figure out how to do that since the namebox is enabled by default. Thanks!
Last edited by AsHLeX on Thu Oct 04, 2018 10:27 am, edited 1 time in total.
Image
New demo out 24/12/23!!

User avatar
xavimat
Eileen-Class Veteran
Posts: 1461
Joined: Sat Feb 25, 2012 8:45 pm
Completed: Yeshua, Jesus Life, Cops&Robbers
Projects: Fear&Love
Organization: Pilgrim Creations
Github: xavi-mat
itch: pilgrimcreations
Location: Spain
Discord: xavimat
Contact:

Re: How to disable Namebox?

#2 Post by xavimat »

I can think of two ways to do it:
1. Go to screens.rpy and search the "screen say(who, what):" line. The original screen has a window containing another window with the namebox and the text of the dialogue. You can change it, deleting the window of the namebox and adding a vbox. For example (code not tested):

Code: Select all

screen say(who, what):
    style_prefix "say"

    window:
        id "window"
        has vbox

        if who is not None:

            text who id "who"

        text what id "what"
2. Define your characters with None as the name and add a what_prefix with the actual name:

Code: Select all

define e = Character(None, what_prefix="{b}Eileen{/b}\n")
https://renpy.org/doc/html/dialogue.html#Character
Comunidad Ren'Py en español: ¡Únete a nuestro Discord!
Rhaier Kingdom A Ren'Py Multiplayer Adventure Visual Novel.
Cops&Robbers A two-player experiment | Fear&Love Why can't we say I love you?
Honest Critique (Avatar made with Chibi Maker by ~gen8)

User avatar
AsHLeX
Miko-Class Veteran
Posts: 556
Joined: Wed Dec 25, 2013 1:09 pm
Completed: Starlight Dreamers, Mysterious Melody, Town of Memories, Marked, To Fly, The Change, Him From The Past, A Forgotten Memory
Projects: Cafe Mysteria
Location: Malaysia
Contact:

Re: How to disable Namebox?

#3 Post by AsHLeX »

Hey, xavimat! Thanks for your help!
The first option works, but how do I customize where I want the name to be (like the location). It seems to be on the left in the middle by default.
Thanks!
Attachments
screenshot0001.png
Image
New demo out 24/12/23!!

User avatar
xavimat
Eileen-Class Veteran
Posts: 1461
Joined: Sat Feb 25, 2012 8:45 pm
Completed: Yeshua, Jesus Life, Cops&Robbers
Projects: Fear&Love
Organization: Pilgrim Creations
Github: xavi-mat
itch: pilgrimcreations
Location: Spain
Discord: xavimat
Contact:

Re: How to disable Namebox?

#4 Post by xavimat »

AsHLeX wrote: Mon Oct 01, 2018 12:22 amhow do I customize where I want the name to be (like the location).
Apply position properties to the line text who id "who"
https://www.renpy.org/doc/html/style_pr ... properties
Comunidad Ren'Py en español: ¡Únete a nuestro Discord!
Rhaier Kingdom A Ren'Py Multiplayer Adventure Visual Novel.
Cops&Robbers A two-player experiment | Fear&Love Why can't we say I love you?
Honest Critique (Avatar made with Chibi Maker by ~gen8)

User avatar
AsHLeX
Miko-Class Veteran
Posts: 556
Joined: Wed Dec 25, 2013 1:09 pm
Completed: Starlight Dreamers, Mysterious Melody, Town of Memories, Marked, To Fly, The Change, Him From The Past, A Forgotten Memory
Projects: Cafe Mysteria
Location: Malaysia
Contact:

Re: How to disable Namebox?

#5 Post by AsHLeX »

Got it, thanks xavimat! :)
Image
New demo out 24/12/23!!

Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot], Bing [Bot], Toma