Code: Select all
"MAP":
$map_open = True
$quick_menu = False
call screen preferences
jump trail
Code: Select all
label trail:
$map_open = False
$quick_menu = True
My quick_menu code:
Code: Select all
screen quick_menu():
## Ensure this appears on top of other screens.
zorder 100
if quick_menu:
$ui.imagebutton ("gui/SETTINGS2.png","gui/SETTINGS.png", xpos=1650, ypos=15, clicked=ShowMenu('preferences'))
## This code ensures that the quick_menu screen is displayed in-game, whenever
## the player has not explicitly hidden the interface.
init python:
config.overlay_screens.append("quick_menu")
default quick_menu = False
style quick_button is default
style quick_button_text is button_text
style quick_button:
properties gui.button_properties("quick_button")
style quick_button_text:
properties gui.button_text_properties("quick_button")