documentation index ◦ reference manual ◦ function index
Function: | layout.imagemap_main_menu | (ground, selected, hotspots): |
ground - The ground image. This is used for hotspots that are not selected.
selected - The selected image. This used for hotspots that are selected.
hotspots - A list of tuples defining the hotspot. Each tuple consists of:
Despite the name, this function can take arbitrary displayables (like Animations) as well as images.
init -2 python: layout.imagemap_main_menu("menu2.jpg", "menu1.jpg", [ (111, 248, 392 ,313, "Start Game"), (111, 313, 392, 378, "Continue Game"), (48, 432, 237, 529, "Preferences"), (48,529,237,576, "Quit"), (48, 435, 237, 482, "instructions"), ])