Help with text boxes!

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
Fenrir34
Miko-Class Veteran
Posts: 560
Joined: Fri Jul 05, 2013 4:39 am
Completed: Escaping Sorrow
Projects: Crisis Beat,Lynarsia-The Broken Song
Location: California
Contact:

Help with text boxes!

#1 Post by Fenrir34 » Wed Jul 10, 2013 9:45 pm

I would like to add a colorful text box to my game. Can someone help me with the code? Please :)

User avatar
AznGreen
Newbie
Posts: 11
Joined: Thu Jul 04, 2013 11:34 am
Contact:

Re: Help with text boxes!

#2 Post by AznGreen » Wed Jul 10, 2013 11:11 pm

Some of the most basic things about textboxes can be found here. Hope this helps.

http://lemmasoft.renai.us/forums/viewtopic.php?p=124280

User avatar
NoahSindri
Regular
Posts: 69
Joined: Tue May 07, 2013 1:05 pm
Projects: Truculence, Noraska:The cats valley
Organization: Sunset Productions
Location: Cyprus
Contact:

Re: Help with text boxes!

#3 Post by NoahSindri » Thu Jul 11, 2013 8:22 am

Fenrir34 wrote:I would like to add a colorful text box to my game. Can someone help me with the code? Please :)
First of all download the textbox you like, you can find a wide range of examples in the *creative commons* forum

After that, in the options screen you will find this line:

Code: Select all

   #style.window.background = Frame("Textbox.png", 25, 25)

    #style.window.left_margin = 6
    #style.window.right_margin = 6
    #style.window.top_margin = 6
    #style.window.bottom_margin = 6
    ## Padding is space inside the window, where the background is
    ## drawn.
    #style.window.left_padding = 5
    #style.window.right_padding = 5
    #style.window.top_padding = 5
    #style.window.bottom_padding = 5
When you download the frame you want, place it's name in the "Textbox.png" place
and you can customize it's size and other things, use the margin and padding screens,
but for it to work you must remove the # before them

User avatar
Fenrir34
Miko-Class Veteran
Posts: 560
Joined: Fri Jul 05, 2013 4:39 am
Completed: Escaping Sorrow
Projects: Crisis Beat,Lynarsia-The Broken Song
Location: California
Contact:

Re: Help with text boxes!

#4 Post by Fenrir34 » Thu Jul 11, 2013 7:50 pm

NoahSindri wrote:
Fenrir34 wrote:I would like to add a colorful text box to my game. Can someone help me with the code? Please :)
First of all download the textbox you like, you can find a wide range of examples in the *creative commons* forum

After that, in the options screen you will find this line:

Code: Select all

   #style.window.background = Frame("Textbox.png", 25, 25)

    #style.window.left_margin = 6
    #style.window.right_margin = 6
    #style.window.top_margin = 6
    #style.window.bottom_margin = 6
    ## Padding is space inside the window, where the background is
    ## drawn.
    #style.window.left_padding = 5
    #style.window.right_padding = 5
    #style.window.top_padding = 5
    #style.window.bottom_padding = 5
When you download the frame you want, place it's name in the "Textbox.png" place
and you can customize it's size and other things, use the margin and padding screens,
but for it to work you must remove the # before them
thanks so much :)

User avatar
Fenrir34
Miko-Class Veteran
Posts: 560
Joined: Fri Jul 05, 2013 4:39 am
Completed: Escaping Sorrow
Projects: Crisis Beat,Lynarsia-The Broken Song
Location: California
Contact:

Re: Help with text boxes!

#5 Post by Fenrir34 » Thu Jul 11, 2013 8:12 pm

AznGreen wrote:Some of the most basic things about textboxes can be found here. Hope this helps.

http://lemmasoft.renai.us/forums/viewtopic.php?p=124280
thank you

Post Reply

Who is online

Users browsing this forum: nyeowmi