Same problem, but thanks for your quick response.Place bottom_margin 100 after Start().
Like this: textbutton _("Start") style "mm_button" action Start() bottom_margin 100
your code works for me, there is a 100 pixel space below the start buttonWhen hovering on the start button, neither the hover color change nor the action "Start()" works. It's like the button cannot be clicked on at all.Code:textbutton _("START") style "mm_button" bottom_margin 100 action Start() DOES NOT WORK textbutton _("Load") style "mm_button" action ShowMenu("load") WORKS textbutton _("Preferences") style "mm_button" action ShowMenu("preferences") WORKS
On a side note, the font assigned to mm_button does not work at all. This only works when the styling is inherited (via "mm_button_child is mm_button" etc) which doesn't make any sense to me.
Thanks for all help.
textbutton _("START") style "mm_button" action Start()
null height 100
textbutton _("Load") style "mm_button" action ShowMenu("load")
your code works for me, there is a 100 pixel space below the start button
you can also try
to get this resultCode:textbutton _("START") style "mm_button" action Start() null height 100 textbutton _("Load") style "mm_button" action ShowMenu("load")
screen main_menu():
## This ensures that any other menu screen is replaced.
tag menu
style_prefix "main_menu"
add gui.main_menu_background
## This empty frame darkens the main menu.
frame:
pass
## The use statement includes another screen inside this one. The actual
## contents of the main menu are in the navigation screen.
if gui.show_name:
# use navigation
text "TITLE":
style "main_menu_title"
text "SUBTITLE":
style "main_menu_subtitle"
text "[config.version]":
style "main_menu_version"
vbox:
textbutton _("START") style "mm_button" action Start() bottom_margin 100
textbutton _("Load") style "mm_button" action ShowMenu("load")
textbutton _("Preferences") style "mm_button" action ShowMenu("preferences")
yalign 0.6
xalign 0.5
spacing 10
It works, thank you! Why does size not work?use yminimum instead of ysize in your style definition
i think the problem was, that your max size was smaller than the space you wanted to create with the marginIt works, thank you! Why does size not work?