[SOLVED] Textbutton's text doesn't conform to Style
Posted: Sun Aug 21, 2016 1:08 pm
I'm trying to use a custom style for buttons. Right now, I'm testing it on the main menu buttons (which are textbuttons).
It isn't giving me an error and it displays the button's background and padding properly, but not the text. It also plays the sound on hover, as expected. The text should be size 36 in general, black on idle and red on hover:
But instead, the text is white on both idle and hover, and the size is smaller than 36 but I'm not sure what size exactly (maybe 28):

Why doesn't the text look how it should according to the style I defined, and how can I fix it?
Thanks in advance
It isn't giving me an error and it displays the button's background and padding properly, but not the text. It also plays the sound on hover, as expected. The text should be size 36 in general, black on idle and red on hover:
Code: Select all
####################################
# Styles
style mbutton is button:
background "gui/main button.png"
size 36
idle_color "#000"
hover_color "#f00"
hover_sound "sfx/click.wav"
xpadding 20
ypadding 20
####################################
# Main Menu
# Screen that's used to display the main menu, when Ren'Py first starts
# http://www.renpy.org/doc/html/screen_special.html#main-menu
screen main_menu:
tag menu
add "images/bg.png"
vbox:
align(0.5,0.5)
textbutton _("Start") action Start() style "mbutton"
textbutton _("Load") action ShowMenu("load") style "mbutton"
textbutton _("Preferences") action ShowMenu("preferences") style "mbutton"
textbutton _("Help") action Help() style "mbutton"
textbutton _("Quit") action Quit(confirm=False) style "mbutton" 
Why doesn't the text look how it should according to the style I defined, and how can I fix it?
Thanks in advance