Now theres problem in the modernaddons.gui at create a clas
By the way, in order to make a custom MainMenuButtonsGui, you need to do this before the new GuiControl line:
MainMenuButtonsGui.delete();I'm not 100% sure but you might need to move the GUI to a .cs file in order to do that.
Fixed the open function:
function Open_ModernAddonsPack(%toggle)
{
if(%toggle)
{
if(ModernAddonsPackGui.isAwake)
{
canvas.popDialog(ModernAddonsPackGUI);
}
else
{
canvas.pushDialog(ModernAddonsPackGui);
}
}
}
Also,
Object names cannot contain spaces