public static Transform NestedMenuTemplate() { if (QuickMenuUtils.NestedButtonReference == null) { QuickMenuUtils.NestedButtonReference = QuickMenuUtils.GetQuickMenuInstance().transform.Find("CameraMenu"); } return(QuickMenuUtils.NestedButtonReference); }
public static GameObject ToggleButtonTemplate() { if (QuickMenuUtils.ToggleButtonReference == null) { QuickMenuUtils.ToggleButtonReference = QuickMenuUtils.GetQuickMenuInstance().transform.Find("UserInteractMenu/BlockButton").gameObject; } return(QuickMenuUtils.ToggleButtonReference); }
public static GameObject SingleButtonTemplate() { if (QuickMenuUtils.SingleButtonReference == null) { QuickMenuUtils.SingleButtonReference = QuickMenuUtils.GetQuickMenuInstance().transform.Find("ShortcutMenu/WorldsButton").gameObject; } return(QuickMenuUtils.SingleButtonReference); }
public static BoxCollider QuickMenuBackground() { if (QuickMenuUtils.QuickMenuBackgroundReference == null) { QuickMenuUtils.QuickMenuBackgroundReference = QuickMenuUtils.GetQuickMenuInstance().GetComponent <BoxCollider>(); } return(QuickMenuUtils.QuickMenuBackgroundReference); }
public static void ShowQuickmenuPage(string pagename) { QuickMenu quickMenuInstance = QuickMenuUtils.GetQuickMenuInstance(); Transform transform = (quickMenuInstance != null) ? quickMenuInstance.transform.Find(pagename) : null; if (transform == null) { } if (QuickMenuUtils.currentPageGetter == null) { GameObject gameObject = quickMenuInstance.transform.Find("ShortcutMenu").gameObject; if (!gameObject.activeInHierarchy) { gameObject = quickMenuInstance.transform.Find("UserInteractMenu").gameObject; } FieldInfo[] array = (from fi in Il2CppType.Of <QuickMenu>().GetFields(BindingFlags.Instance | BindingFlags.NonPublic) where fi.FieldType == Il2CppType.Of <GameObject>() select fi).ToArray <FieldInfo>(); int num = 0; foreach (FieldInfo fieldInfo in array) { Il2CppSystem.Object value = fieldInfo.GetValue(quickMenuInstance); if (((value != null) ? value.TryCast <GameObject>() : null) == gameObject && ++num == 2) { QuickMenuUtils.currentPageGetter = fieldInfo; break; } } if (QuickMenuUtils.currentPageGetter == null) { return; } } Il2CppSystem.Object value2 = QuickMenuUtils.currentPageGetter.GetValue(quickMenuInstance); if (value2 != null) { value2.Cast <GameObject>().SetActive(false); } QuickMenuUtils.GetQuickMenuInstance().transform.Find("QuickMenu_NewElements/_InfoBar").gameObject.SetActive(pagename == "ShortcutMenu"); QuickMenuUtils.GetQuickMenuInstance().field_Private_QuickMenuContextualDisplay_0.Method_Public_Void_EnumNPublicSealedvaUnNoToUs7vUsNoUnique_0(QuickMenuContextualDisplay.EnumNPublicSealedvaUnNoToUs7vUsNoUnique.NoSelection); transform.gameObject.SetActive(true); QuickMenuUtils.currentPageGetter.SetValue(quickMenuInstance, transform.gameObject); if (pagename == "ShortcutMenu") { QuickMenuUtils.SetIndex(0); return; } if (pagename == "UserInteractMenu") { QuickMenuUtils.SetIndex(3); return; } QuickMenuUtils.SetIndex(-1); }
public static void SetIndex(int index) { QuickMenuUtils.GetQuickMenuInstance().field_Private_Int32_0 = index; }