Ren'Py Input text with black outlines [SOLVED]

iOtero

Active Member
Aug 4, 2020
925
1,459
Hello, I'm writing a game in Renpy.

Writing this code:

Code:
    $ jgdr = renpy.input("{color=#cc6600}{b}Please enter your name. If you don't, I will call you \"Lazy\".{/b}{/color},  length=9)
The text appears bold and orange.

Is there any code that can be added to make it with black outlines?

Thanks for the help.
 

79flavors

Well-Known Member
Respected User
Jun 14, 2018
1,581
2,219
When you use renpy.input(), it uses a screen called input to do it's thing.

All you need to do is alter that screen to look how you want.

Something like:
Python:
# part of screens.rpy

screen input(prompt):
    style_prefix "input"

    window:

        vbox:
            xalign gui.dialogue_text_xalign
            xpos gui.dialogue_xpos
            xsize gui.dialogue_width
            ypos gui.dialogue_ypos

            text prompt style "input_prompt"
            input id "input"

style input_prompt is default

style input_prompt:
    xalign gui.dialogue_text_xalign
    properties gui.text_properties("input_prompt")
    color "#ff0000"

style input:
    xalign gui.dialogue_text_xalign
    xmaximum gui.dialogue_width
    color "#ff0088"
    outlines [(2, "#CCCCCC", 0, 0)]    # this is your outline on the input text.

If you want to alter the prompt text that is shown, just change the style input_prompt: instead (or as well).

And no, there isn't a to override the outlines. You can , but not add one.
 
Nov 21, 2018
30
70
When you use renpy.input(), it uses a screen called input to do it's thing.

All you need to do is alter that screen to look how you want.

Something like:
Python:
# part of screens.rpy

screen input(prompt):
    style_prefix "input"

    window:

        vbox:
            xalign gui.dialogue_text_xalign
            xpos gui.dialogue_xpos
            xsize gui.dialogue_width
            ypos gui.dialogue_ypos

            text prompt style "input_prompt"
            input id "input"

style input_prompt is default

style input_prompt:
    xalign gui.dialogue_text_xalign
    properties gui.text_properties("input_prompt")
    color "#ff0000"

style input:
    xalign gui.dialogue_text_xalign
    xmaximum gui.dialogue_width
    color "#ff0088"
    outlines [(2, "#CCCCCC", 0, 0)]    # this is your outline on the input text.

If you want to alter the prompt text that is shown, just change the style input_prompt: instead (or as well).

And no, there isn't a to override the outlines. You can , but not add one.
hey, thanks for that