Remove Blinking Text Cursor in Name Input?
Posted: Fri Jan 06, 2023 9:28 pm
The input for my character's name is through a textbox on the character creator screen (instead of opening up a new dialogue), but right now the blinking text cursor in the name box persists even after nothing's being inputted. Is there a way to have the cursor stop blinking once input is done, or to remove the cursor altogether?
These are the functions I'm using to take a value and store it as names:
And these are buttons under an imagemap, which show a default name on screen that can be replaced with a new name on hover:
If this is something that can be done, or if there's a different way to do this, please let me know! Thank you!
These are the functions I'm using to take a value and store it as names:
Code: Select all
init python:
def forname_func(newstring):
store.forname = newstring
def surname_func(newstring):
store.surname = newstring
Code: Select all
button:
id "forname_input"
pos (63,12)
action NullAction()
add Input(size=8, length=13, hover_color="#ffffff", color="#e2d4bf", default=forname, changed=forname_func, button=renpy.get_widget("nameinput","forname_input"))
button:
id "surname_input"
pos (67,20)
action NullAction()
add Input(size=8, length=10, hover_color="#ffffff", color="#e2d4bf", default=surname, changed=surname_func, button=renpy.get_widget("nameinput","surname_input"))