Custom name 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
Zenytee
Newbie
Posts: 21
Joined: Thu Mar 24, 2016 2:31 pm
Contact:

Custom name box

#1 Post by Zenytee »

Hello :)
I have a question. How do I delete the name text in the front? the white one with the black border.
http://i67.tinypic.com/10oogpd.png
When I try to make the custom name box for each individual character I get an error


This is the code in options.rpy

Code: Select all

    style.say_who_window.background = Frame("FILE NAME HERE", 50, 50)
    style.say_who_window1.xalign = 0.0
    style.say_who_window1.yalign = 1.0
    style.say_who_window1.xpos = 2 
    style.say_who_window1.ypos = 49 
    style.say_who_window1.left_padding = 15
    style.say_who_window1.top_padding = 15
    style.say_who_window1.right_padding = 15 
    style.say_who_window1.bottom_padding = 15
    style.say_who_window1.xminimum = 190 
    style.say_who_window1.yminimum = 50 
and I put in screens:

Code: Select all

      vbox:
            style "say_two_window_vbox"

            if who:
                window:
                    style "who_window_style"

                    text who:
                        id "who"

            window:
                id "window"

                has vbox:
                    style "say_vbox"
But I get this error:

While running game code:
Exception: Unknown keyword arguments: who_window_style

and in script my character line is like this:

Code: Select all

$ D = Character('Daichi', color='#ffffff', ctc="ctc_animation", ctc_position="fixed", window_background="gui/daichi.png", show_two_window=True, show_who_window_style="say_who_window1")

Thank you for the help, much appreciated.

User avatar
OokamiKasumi
Eileen-Class Veteran
Posts: 1779
Joined: Thu Oct 14, 2010 3:53 am
Completed: 14 games released -- and Counting.
Organization: DarkErotica Games
Deviantart: OokamiKasumi
Location: NC, USA
Contact:

Re: Custom name box

#2 Post by OokamiKasumi »

Zenytee wrote:Hello :)
I have a question. How do I delete the name text in the front? the white one with the black border.

Code: Select all

$ D = Character('Daichi', color='#ffffff', ctc="ctc_animation", ctc_position="fixed", window_background="gui/daichi.png", show_two_window=True, show_who_window_style="say_who_window1")
You delete the name by deleting the name "Daichi" from the character profile and making it 'None'. You also need to delete "show_two_window=True".

Code: Select all

$ D = Character('None', 
    color='#ffffff', 
    ctc="ctc_animation", 
    ctc_position="fixed", 
    window_background="gui/daichi.png") 
Then, make the name window and the textbox one solid image.
Last edited by OokamiKasumi on Sun Sep 04, 2016 9:40 pm, edited 1 time in total.
Ookami Kasumi ~ Purveyor of fine Smut.
Most recent Games Completed: For ALL my completed games visit: DarkErotica Games

"No amount of great animation will save a bad story." -- John Lasseter of Pixar

Zenytee
Newbie
Posts: 21
Joined: Thu Mar 24, 2016 2:31 pm
Contact:

Re: Custom name box

#3 Post by Zenytee »

Thank you, it worked!

Post Reply

Who is online

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