I've got a big problem with the style of my main menue. I'm trying to customize the buttons of the game and I'm reading for hours now this tutorial (http://lemmasoft.renai.us/forums/viewto ... =51&t=9812), but I don't get it. I know the positions, where my buttons should appear, but they don't appear there.
The coordinates would be 936, 402, 250, 50…
I have a main menu picture and two images of every button, a "normal" image and the "hover" image (I'll attach them). The buttons are PNGs, so they should appear at the location of the paper at the bottom right.
My Code looks like this:
Code: Select all
##############################################################################
# Navigation
#
# Screen that's included in other screens to display the game menu
# navigation and background.
# http://www.renpy.org/doc/html/screen_special.html#navigation
screen navigation:
# The background of the game menu.
window:
style "gm_root"
# The various buttons.
#frame:
# style_group "gm_nav"
# xalign .98
# yalign .98
#has vbox
textbutton _("Zurück") action Return()
textbutton _("Einstellungen") action ShowMenu("preferences")
textbutton _("Speichern") action ShowMenu("save")
textbutton _("Laden") action ShowMenu("load")
textbutton _("Hauptmenü") action MainMenu()
textbutton _("Hilfe") action Help()
textbutton _("Beenden") action Quit()
# The various buttons.
imagemap:
ground "gui/start.png"
# idle "menu/navigation_idle.png"
hover "gui/start_hover.png"
# selected_idle "menu/navigation_selected.png"
# selected_hover "menu/navigation_selected_hover.png"
hotspot (936,402,250,50) action Return()
hotspot (936,462,250,50) action ShowMenu("save")
hotspot (936,522,250,50) action ShowMenu("load")
hotspot (936,582,250,50) action ShowMenu("preferences")
hotspot (936,642,250,50) action MainMenu()
hotspot (936,682,250,50) action Quit()
init -2 python:
style.gm_nav_button.size_group = "gm_nav"
I would be really grateful for every helping word. ;__;
~ Sam