This is my first post here. I've been avoiding asking for help by trying to plough through and google the answers to my questions, but I'm at the point where I can't find answers related to what I want done anymore. Truly a pity.
I've no clue on how to make my quick menu vertical instead of horizontal (EDIT: typo). I came close by using the answer someone gave this guy:
viewtopic.php?t=18146
I'm trying to get four buttons in the lower right hand corner of the GUI: BACK, AUTO, SAVE, LOAD (in this order)
but I've now got a weird bug where my "SAVE" and "OPTIONS" buttons appear where I want them to, but then they're placed right on top of each other now in the upper leftmost corner. Also, I can't seem to get the "BACK" and "AUTO" buttons on because the game won't load and instead gives me an error message because apparently my syntax is wrong for the line where have:
ui.textbutton("BACK", clicked=ccinc("_game_menu_rollback") xminimum=100)
ui.textbutton("AUTO", clicked=ccinc("_game_menu_auto") xminimum=100)
This is the code I currently have (I've commented out code that I don't think is necessary, but I may want to keep if I try other things, so ignore those):
Code: Select all
screen quick_menu():
## Ensure this appears on top of other screens.
#zorder 100
#if quick_menu:
#hbox:
style_group"quick"
xalign 1.0
yalign 1.0
textbutton _("BACK") action Rollback()
textbutton _("AUTO") action Preference("auto-forward", "toggle")
textbutton _("SAVE") action ShowMenu('save')
textbutton _("OPTIONS") action ShowMenu('preferences')
init -1 python:
style.quick_button.set_parent('default')
style.quick_button.background = None
style.quick_button.xpadding = 5
style.quick_button_text.set_parent('default')
style.quick_button_text.size = 35
style.quick_button_text.idle_color = "#000000"
style.quick_button_text.hover_color = "#ccc"
style.quick_button_text.selected_idle_color = "#cc08"
style.quick_button_text.selected_hover_color = "#cc0"
style.quick_button_text.insensitive_color = "#4448"
# Make all the main menu buttons be the same size.
style.quick_button.size_group = "mm"
style.quick_button_text.size = 35
# Set a default value for the auto-forward time, and note that AFM is
# turned off by default.
config.default_afm_time = 10
config.default_afm_enable = False
init python:
def toggle_skipping():
config.skipping = not config.skipping
show_button_game_menu = True
def button_game_menu():
if show_button_game_menu:
# to save typing
ccinc = renpy.curried_call_in_new_context
ui.vbox(xpos=0.99, ypos=0.99, xanchor='right', yanchor='bottom')
ui.textbutton("BACK", clicked=ccinc("_game_menu_rollback") xminimum=100)
ui.textbutton("AUTO", clicked=ccinc("_game_menu_auto") xminimum=100)
ui.textbutton("SAVE", clicked=ccinc("_game_menu_save"), xminimum=100)
ui.textbutton("OPTIONS", clicked=ccinc("_game_menu_preferences"), xminimum=100)
ui.close()
config.window_overlay_functions.append(button_game_menu)