public ColorData(ItemColorData.ColorData _src) { this.colors = new bool[4] { _src.IsColor1, _src.IsColor2, _src.IsColor3, _src.IsColor4 }; }
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; }