static void _addTab(uGUI_OptionsPanel __instance, string label, int __result) { if (label == "Mods") { modsTabIndex = __result; } isMainMenu = (__instance.GetComponent <MainMenuOptions>() != null); }