public void InitList(int _group, int _category) { this.Init(); if (this.group == _group && this.category == _category) { return; } this.listNodePool.Return(); this.scrollRect.set_verticalNormalizedPosition(1f); foreach (KeyValuePair <int, Info.ItemLoadInfo> keyValuePair in Singleton <Info> .Instance.dicItemLoadInfo[_group][_category]) { // ISSUE: object of a compiler-generated type is created // ISSUE: method pointer Studio.Anime.ListNode listNode = this.listNodePool.Rent(keyValuePair.Value.name, new UnityAction((object)new ItemList.\u003CInitList\u003Ec__AnonStorey0() { \u0024this = this, no = keyValuePair.Key }, __methodptr(\u003C\u003Em__0)), true); ItemColorData.ColorData itemColorData = Singleton <Info> .Instance.SafeGetItemColorData(_group, _category, keyValuePair.Key); switch (itemColorData == null ? 0 : itemColorData.Count) { case 1: listNode.TextColor = Color.get_red(); continue; case 2: listNode.TextColor = Color.get_cyan(); continue; case 3: listNode.TextColor = Color.get_green(); continue; case 4: listNode.TextColor = Color.get_yellow(); continue; default: listNode.TextColor = Color.get_white(); continue; } } ((Component)this).get_gameObject().SetActiveIfDifferent(true); this.group = _group; this.category = _category; }
private void OnSelect(int _no) { int select = this.select; if (!Utility.SetStruct <int>(ref this.select, _no)) { return; } this.itemList.InitList(this.group, _no); Studio.Anime.ListNode listNode1 = (Studio.Anime.ListNode)null; if (this.dicNode.TryGetValue(select, out listNode1) && Object.op_Inequality((Object)listNode1, (Object)null)) { listNode1.Select = false; } Studio.Anime.ListNode listNode2 = (Studio.Anime.ListNode)null; if (!this.dicNode.TryGetValue(this.select, out listNode2) || !Object.op_Inequality((Object)listNode2, (Object)null)) { return; } listNode2.Select = true; }
private void OnSelect(int _no) { this.mpCharCtrl.LoadAnime(this.sex, this.group, this.category, _no); int select = this.select; if (!Utility.SetStruct <int>(ref this.select, _no)) { return; } Studio.Anime.ListNode listNode = (Studio.Anime.ListNode)null; if (this.dicNode.TryGetValue(select, out listNode) && Object.op_Inequality((Object)listNode, (Object)null)) { listNode.Select = false; } listNode = (Studio.Anime.ListNode)null; if (!this.dicNode.TryGetValue(this.select, out listNode) || !Object.op_Inequality((Object)listNode, (Object)null)) { return; } listNode.Select = true; }
public void InitList(int _group) { this.Init(); this.listNodePool.Return(); this.scrollRect.set_verticalNormalizedPosition(1f); this.dicNode.Clear(); foreach (KeyValuePair <int, Info.CategoryInfo> keyValuePair in (IEnumerable <KeyValuePair <int, Info.CategoryInfo> >)Singleton <Info> .Instance.dicItemGroupCategory[_group].dicCategory.OrderBy <KeyValuePair <int, Info.CategoryInfo>, int>((Func <KeyValuePair <int, Info.CategoryInfo>, int>)(v => v.Value.sort))) { // ISSUE: object of a compiler-generated type is created // ISSUE: method pointer Studio.Anime.ListNode listNode = this.listNodePool.Rent(keyValuePair.Value.name, new UnityAction((object)new ItemCategoryList.\u003CInitList\u003Ec__AnonStorey0() { \u0024this = this, no = keyValuePair.Key }, __methodptr(\u003C\u003Em__0)), false); this.dicNode.Add(keyValuePair.Key, listNode); } this.select = -1; this.group = _group; this.active = true; this.itemList.active = false; }
public void InitList(AnimeGroupList.SEX _sex, int _group, int _category) { this.Init(); this.listNodePool.Return(); this.scrollRect.set_verticalNormalizedPosition(1f); this.dicNode.Clear(); foreach (KeyValuePair <int, Info.AnimeLoadInfo> keyValuePair in Singleton <Info> .Instance.dicAnimeLoadInfo[_group][_category]) { // ISSUE: object of a compiler-generated type is created // ISSUE: method pointer Studio.Anime.ListNode listNode = this.listNodePool.Rent(keyValuePair.Value.name, new UnityAction((object)new AnimeList.\u003CInitList\u003Ec__AnonStorey0() { \u0024this = this, no = keyValuePair.Key }, __methodptr(\u003C\u003Em__0))); this.dicNode.Add(keyValuePair.Key, listNode); } this.sex = _sex; this.group = _group; this.category = _category; this.select = -1; this.active = true; }