- Sep 30, 2017
- 2,348
- 4,917
So I have a question around Choice button wrapping and alignment.
So I'm busy re-designing my UI and want to move the choice buttons complete out of the way.
The problem I ran into is the way that Renpy does the text wrapping. See the image below. I was expecting the work more or less like the red block on the right (Like word), but instead the wrapping put almost every word on it's own line. Needless to say, this will not work for me.
Am I doing something wrong or is that just how Renpy does the Choice button wrapping and alignment?
I'm still a beginner Renpy /Python coder.
Here is how it is currently set.
So I'm busy re-designing my UI and want to move the choice buttons complete out of the way.
The problem I ran into is the way that Renpy does the text wrapping. See the image below. I was expecting the work more or less like the red block on the right (Like word), but instead the wrapping put almost every word on it's own line. Needless to say, this will not work for me.
Am I doing something wrong or is that just how Renpy does the Choice button wrapping and alignment?
I'm still a beginner Renpy /Python coder.
Here is how it is currently set.
Code:
define gui.choice_button_width = 350 #960
define gui.choice_button_height = None
define gui.choice_button_tile = False
define gui.choice_button_borders = Borders(125, 7, 125, 7)
define gui.choice_button_text_font = gui.text_font
define gui.choice_button_text_size = gui.text_size
define gui.choice_button_text_xalign = 0.5
style choice_vbox:
xalign 0.05
xpos 10
ypos 260
yanchor 0.05
spacing gui.choice_spacing
style choice_button_text:
idle_color "#9933ff"
hover_color "#c996fc"
insensitive_color "#808080"