So I've implemented the in-game buttons:
Code: Select all
init python:
def toggle_skipping():
config.skipping = not config.skipping
def button_game_menu():
# to save typing
ccinc = renpy.curried_call_in_new_context
ui.vbox(xpos=0.99, ypos=0.97, xanchor='right', yanchor='bottom')
ui.textbutton(u"スキップ", clicked=toggle_skipping, xminimum=80, yminimum=45)
ui.textbutton(u"セーブ", clicked=ccinc("_game_menu_save"), xminimum=80, yminimum=45)
ui.textbutton(u"ロード", clicked=ccinc("_game_menu_load"), xminimum=80, yminimum=45)
ui.textbutton(u"CG", clicked=ccinc("_gm_image"), xminimum=80, yminimum=45)
ui.close()
config.overlay_functions.append(button_game_menu)
But my question does not actually involve that. Rather, it involves... well, how the hell do I put backgrounds on these buttons? I removed the roundrect template because I wanted to implement my own styles, and I've been doing so, but I just can't figure out how to put a background, which I styled similarly to the window frame, on these buttons so they don't look so plain.
Help desu! Please?
(...Knowing me it's most likely a simple thing I'm not getting, since I'm still rather inexperienced with this language. So, apologies if this is indeed the case.)