Text not filling horizontal space in choice buttons...
Posted: Tue Feb 24, 2015 3:28 pm
I've tried various formatting commands but can't find a fix (see attached.) Does anyone have any idea what I need to do? Cheers,
Supporting creators of visual novels and story-based games since 2003.
https://lemmasoft.renai.us/forums/
Cheers but I've already got that set to 0.0 in the screengrabphilat wrote:Probably this: http://www.renpy.org/doc/html/style_pro ... text_align
Code: Select all
screen choice:
window:
style "menu_window"
xalign 0.2
yalign 0.5
vbox:
style "menu"
spacing 2
for caption, action, chosen in items:
if action:
button:
action action
style "menu_choice_button"
text caption style "menu_choice"
else:
text caption style "menu_caption"
init -2 python:
config.narrator_menu = True
style.menu_window.set_parent(style.default)
style.menu_choice.set_parent(style.button_text)
style.menu_choice.clear()
style.menu_choice_button.set_parent(style.button)
style.menu_choice_button.xminimum = int(config.screen_width * 2.0)
style.menu_choice_button.xmaximum = int(config.screen_width * 0.75)
style.menu_choice.size = 35
style.menu_choice.color = "#ffffffCC"
style.menu_choice.hover_color = "#ffffff"
style.menu_choice.xalign = 0.0
style.menu_choice.xmaximum = 5000
style.menu_choice_button.background = "#7e947080"
style.menu_choice_button.hover_background = "#7e9470CC"
style.menu_choice_button.ymargin = 20All working perfectly now, thank you. Sometimes you just need a second pair of eyesCupCakeComedy wrote:XD XD XD
Its fun. I didn't noticed at first.
style.menu_choice_button.xminimum = int(config.screen_width * 2.0)
style.menu_choice_button.xmaximum = int(config.screen_width * 0.75)
The minimum is larger than the maximum. Try fix it.