• To improve security, we will soon start forcing password resets for any account that uses a weak password on the next login. If you have a weak password or a defunct email, please update it now to prevent future disruption.

Ren'Py Outline widht slider

LeeToo

New Member
Sep 3, 2021
11
17
Hi everyone! I'm trying to create a slider for outlines, to let the players define how much widht they want. I've created a slider for textbox already with you guys help in another thread, but I didn't see any thread about this one.

I'm using this code in the screens.rpy:
Code:
style say_dialogue:
    outlines [ (3, "#29A0F8", 0, 0)]
And the outlines are showing up, but there's a way to make a slider to let people decide if they want the width to be 0, 1, 2, etc. and not the default (3)?
 

anne O'nymous

I'm not grumpy, I'm just coded that way.
Modder
Respected User
Donor
Jun 10, 2017
10,202
14,939
And the outlines are showing up, but there's a way to make a slider to let people decide if they want the width to be 0, 1, 2, etc. and not the default (3)?
No, but there's a way to change it dynamically:
Python:
$ style.say_dialogue.outlines = [ ( WHATERVER_VARIABLE, "#29A0F8", 0, 0)]
$ style.rebuild()