Add Error Message for not having Mods

This commit is contained in:
Nutbuster 2021-07-04 18:53:36 +10:00
parent f9edccabd4
commit c1e7fd2bbf

View File

@ -474,7 +474,6 @@ style main_menu_title:
##
screen mod_menu():
tag menu
viewport:
yinitial 0
@ -484,16 +483,21 @@ screen mod_menu():
pagekeys True
#side_yfill True
vbox:
spacing 10
xpos 1885
yalign 0.98
use main_menu_button("gui/button/menubuttons/template_idle.png",
"Return", ShowMenu("main_menu"))
if len(mod_menu_access) is not 0:
for x in mod_menu_access:
use main_menu_button("gui/button/menubuttons/template_idle.png",
x[0], Start(x[1]) )
else:
use main_menu_button("gui/button/menubuttons/template_idle.png",
"You have no mods", None)
## Game Menu screen ############################################################
##