Page 1 of 1
Weird default name in my text input space
Posted: Wed Jul 30, 2014 12:59 am
by sillyandquiteawkward
When I test my game and get to the text input area it says "ATLTransform" as default input text for some reason. I can't imagine why it would say that especially since there is nothing that says that in my coding (at least I think)?
How can I make it have a blank space?
Code: Select all
python:
povname = renpy.input("Please enter your name or other silly term of which you want to be refered too during this game.", default)
povname = povname.strip()
if not povname:
povname == "Player"
This is the input text code I have in my game. Everything works perfectly in my game except the default text.
Re: Weird default name in my text input space
Posted: Wed Jul 30, 2014 1:46 am
by OokamiKasumi
sillyandquiteawkward wrote:When I test my game and get to the text input area it says "ATLTransform" as default input text for some reason. I can't imagine why it would say that especially since there is nothing that says that in my coding (at least I think)?
-- How can I make it have a blank space?
Don't leave it blank -- like so:
Code: Select all
$ povname = renpy.input("What would you like to use as your Name? \n{i} -- Backspace to erase the current name. When you're done, hit Enter.{/i}\n", "Player", length=15)
$ povname = povname.strip()
It looks like this:
For reference, this is my input code:
Code: Select all
# Input
screen input:
window:
style "input_window"
xalign 0.5
yalign 0.5
has vbox
text prompt:
yoffset 5
style "input"
color "#cc9966"
xoffset 30
input:
id "input"
style "input"
color "#c8ffc8"
yoffset 5
xoffset 50
use quick_menu
###########################################
init -2 python:
style.input_text.size = 26
style.input_window.background = Frame("ui/textbox.png", 0, 0)
# margins ---------------------------------
style.input_window.top_margin = 0
style.input_window.bottom_margin = 0
style.input_window.left_margin = 200
style.input_window.right_margin = 200
# padding ---------------------------------
style.input_window.left_padding = 100
style.input_window.right_padding = 180
style.input_window.top_padding = 30
style.input_window.bottom_padding = 60
style.input_window.yminimum = 158
Re: Weird default name in my text input space
Posted: Wed Jul 30, 2014 9:51 am
by sillyandquiteawkward
Thank you so much this worked perfectly!
Re: Weird default name in my text input space
Posted: Wed Jul 30, 2014 5:58 pm
by OokamiKasumi
sillyandquiteawkward wrote:Thank you so much this worked perfectly!
Excellent!
-- I'm glad I could help.