private void ViewEventTab() { SetActive((Enum)UI.OBJ_NORMAL, false); SetActive((Enum)UI.OBJ_TAB_ROOT, true); SetActive((Enum)UI.OBJ_ON_TAB_NORMAL, false); SetActive((Enum)UI.OBJ_ON_TAB_EVENT, true); SetActive((Enum)UI.OBJ_EVENT_LIST, true); List <PointShop> current = (from x in pointShop where x.isEvent select x).ToList(); SetGrid(UI.GRD_EVENT_LIST, "PointShopEventList", current.Count, true, delegate(int i, Transform t, bool b) { PointShop pointShop = current[i]; UITexture component = FindCtrl(t, UI.TEX_EVENT_LIST_BANNER).GetComponent <UITexture>(); UITexture component2 = FindCtrl(t, UI.TXT_EVENT_LIST_POINT_ICON).GetComponent <UITexture>(); SetLabelText(t, UI.LBL_EVENT_LIST_POINT, string.Format(StringTable.Get(STRING_CATEGORY.POINT_SHOP, 2u), pointShop.userPoint)); ResourceLoad.LoadPointIconImageTexture(component2, (uint)pointShop.pointShopId); ResourceLoad.LoadPointShopBannerTexture(component, (uint)pointShop.pointShopId); SetEvent(FindCtrl(t, UI.TEX_EVENT_LIST_BANNER), "EVENT_SHOP", pointShop); int num = (from x in pointShop.items where x.isBuyable where x.type != 8 || !MonoBehaviourSingleton <UserInfoManager> .I.IsUnlockedStamp(x.itemId) where x.type != 9 || !MonoBehaviourSingleton <UserInfoManager> .I.IsUnlockedDegree(x.itemId) where x.type != 7 || !MonoBehaviourSingleton <GlobalSettingsManager> .I.IsUnlockedAvatar(x.itemId) select x).Count(); bool flag = num == 0; SetActive(t, UI.LBL_EVENT_LIST_SOLD_OUT, flag); SetButtonEnabled(t, UI.TEX_EVENT_LIST_BANNER, !flag); SetLabelText(t, UI.LBL_EVENT_LIST_REMAINING_TIME, pointShop.expire); }); }