Hello, often can the "basics" be the largest hurdles to overcome (really telling in my case).
Here is the code I want to inject into the "vanilla" menu:
I would love to have a nice "frame" around this menu. The blue lines making a box represent a nice beautiful BIG frame.
But I get this when trying to be smart... I had it all figured out. This is such a sad day... All pandas in China are crying now.
Life is so cruel towards me sometimes... here is the code I poke in, but maybe I do it all wrong. The important thing is that frames works perfect in all other sections, it's just the main menu that makes issues. Same thing happened when I tried in a fresh Ren'py build. So it's definatly something with my code that's wrong...
Look here... works perfect on this box:
Please, if anyone can clean up the code and maybe write some comments in the code so I can lean from it (in order to get better) please please do so.
Here is the code I want to inject into the "vanilla" menu:
PHP:
#================
# Placeholder
frame:
background Frame("gui/frame.png")
#===============
I would love to have a nice "frame" around this menu. The blue lines making a box represent a nice beautiful BIG frame.
But I get this when trying to be smart... I had it all figured out. This is such a sad day... All pandas in China are crying now.
Life is so cruel towards me sometimes... here is the code I poke in, but maybe I do it all wrong. The important thing is that frames works perfect in all other sections, it's just the main menu that makes issues. Same thing happened when I tried in a fresh Ren'py build. So it's definatly something with my code that's wrong...
PHP:
################################################################################
## Main and Game Menu Screens
################################################################################
## Navigation screen ###########################################################
##
## This screen is included in the main and game menus, and provides navigation
## to other menus, and to start the game.
screen navigation():
vbox:
style_prefix "navigation"
xpos gui.navigation_xpos
yalign 0.5
spacing gui.navigation_spacing
if main_menu:
#==============================================
# Here is where I placed my sweet code. What is it missing?!
frame:
background Frame("gui/frame.png")
#==============================================
textbutton _("Start") action Start()
else:
textbutton _("History") action ShowMenu("history")
textbutton _("Save") action ShowMenu("save")
textbutton _("Load") action ShowMenu("load")
textbutton _("Preferences") action ShowMenu("preferences")
if _in_replay:
textbutton _("End Replay") action EndReplay(confirm=True)
elif not main_menu:
textbutton _("Main Menu") action MainMenu()
textbutton _("About") action ShowMenu("about")
if renpy.variant("pc") or (renpy.variant("web") and not renpy.variant("mobile")):
## Help isn't necessary or relevant to mobile devices.
textbutton _("Help") action ShowMenu("help")
if renpy.variant("pc"):
## The quit button is banned on iOS and unnecessary on Android and
## Web.
textbutton _("Quit") action Quit(confirm=not main_menu)
Please, if anyone can clean up the code and maybe write some comments in the code so I can lean from it (in order to get better) please please do so.