Here's my code in screens.rpy:
Code: Select all
screen navigation():
style_prefix "navigation"
if main_menu:
textbutton _("Start") xpos 10 ypos 143 action Start()
textbutton _("About") xpos 10 ypos 255 action ShowMenu("about")
textbutton _("Load") xpos 10 ypos 383 action ShowMenu("load")
textbutton _("Prefs") xpos 10 ypos 506 action ShowMenu("preferences")
textbutton _("Help") xpos 10 ypos 625 action ShowMenu("help")
textbutton _("Quit") xpos 10 ypos 746 action Quit(confirm=not main_menu)
else:
textbutton _("History") xpos 10 ypos 143 action ShowMenu("history")
textbutton _("Save") xpos 10 ypos 265 action ShowMenu("save")
textbutton _("Load") xpos 10 ypos 383 action ShowMenu("load")
textbutton _("Prefs") xpos 10 ypos 506 action ShowMenu("preferences")
textbutton _("Main Menu") xpos 10 ypos 625 action MainMenu()
textbutton _("Help") xpos 10 ypos 746 action ShowMenu("help")
textbutton _("Quit") xpos 10 ypos 868 action Quit(confirm=not main_menu)
style navigation_button is gui_button
style navigation_button_text is gui_label_text
style navigation_button:
size_group "navigation"
properties gui.button_properties("navigation_button")
style navigation_button_text:
properties gui.button_text_properties("navigation_button")
define gui.label_text_font = "thefontiwant.otf"
define gui.navigation_button_text_font = "thefontiwant.otf"
Trying to cover all my bases. label_text_font is showing the correct font everywhere else I want it working, like on my menu labels and the Return button.
I assume something about the style code is wrong, but I can't figure out what it is. The docs say that I should be able to set specific navigation button properties via define gui.navigation_button, but no matter where I try to put the code to define the navigation button font, it doesn't pick up and just uses the general button default font. Any ideas of what's going wrong for me?