The most problematic thing so far is when I try to start the game. The first image the game shows me (once I start the game) is the one used for the splash screen instead of a black screen like it used to be (I never coded hat black screen, it just happened before and now it doesn't). Another problem is that the right click doesn't works, or at least it doesn't show the game/pause menu like before, so I can't save, load, go to the preferences, etc. Lastly the textbuttons from the quick bar never shows up.
Another problem with this new main menu is that Load, Preference, About and other screens never show up once I press their respective button, the only thing that shows is the name of it but nothing else, and those screen are pretty much untouched (maybe I changed something in the Load/Save screen but I don't remember, but the Preference screen is 100% untouched for sure)
Also I would like to know how the "if main_menu" condition works, because if I put those imagemaps/imagebuttons inside a "if main menu:" then those buttons won't show up either.
This is my code so far
Code: Select all
screen main_menu(): ## This ensures that any other menu screen is replaced. tag menu add "gui/main_menu2.png" style_prefix "main_menu" add gui.main_menu_background ## This empty frame darkens the main menu. frame: pass ## The use statement includes another screen inside this one. The actual ## contents of the main menu are in the navigation2 screen. use navigation if gui.show_name: vbox: text "[config.name!t]": style "main_menu_title" text "[config.version]": style "main_menu_version" screen navigation(): imagemap: idle "menu5 idle" hover "menu5 hover" #Start hotspot (190, 65, 242, 210): action Start() tooltip "Start" #Load hotspot (519, 65, 242, 210): action Show("load") tooltip "Load" #Config hotspot (850, 65, 242, 210): action Show("preferences") tooltip "Settings" #Information hotspot (354 ,310, 242, 210): action Show("about") tooltip "About the game" #Exit hotspot (683 ,310, 242, 210): action Show("quitconfirmscreen") tooltip "Exit the game" imagebutton: style "imagamap_buttons" idle "menu_blog idle" hover "menu_blog hover" action OpenURL("https://my.blogspot.com/") tooltip "Developer blog" imagebutton: style "imagamap_buttons" idle "menu_support idle" hover "menu_support hover" action ShowMenu("support") tooltip "Support the game" $ tooltip = GetTooltip() if GetTooltip() is not None: text GetTooltip() at pos_menu: style "menu_tooltip"