private void AddWarpPointNode(BasePoint add, int _index) { // ISSUE: object of a compiler-generated type is created // ISSUE: variable of a compiler-generated type AllAreaMapUI.\u003CAddWarpPointNode\u003Ec__AnonStorey0 nodeCAnonStorey0 = new AllAreaMapUI.\u003CAddWarpPointNode\u003Ec__AnonStorey0(); // ISSUE: reference to a compiler-generated field nodeCAnonStorey0.add = add; // ISSUE: reference to a compiler-generated field nodeCAnonStorey0.\u0024this = this; Button button = (Button)Object.Instantiate <Button>((M0)this.WarpContentNode); ((Component)button).get_transform().SetParent(this.WarpContent.get_transform(), false); ((Component)button).get_transform().set_localScale(this.LocalScaleDef); // ISSUE: reference to a compiler-generated field // ISSUE: reference to a compiler-generated field if (!Singleton <Resources> .Instance.itemIconTables.BaseName.TryGetValue(nodeCAnonStorey0.add.ID, out nodeCAnonStorey0.name)) { // ISSUE: reference to a compiler-generated field // ISSUE: reference to a compiler-generated field nodeCAnonStorey0.name = string.Format("拠点{0:00}", (object)nodeCAnonStorey0.add.ID); } // ISSUE: reference to a compiler-generated field nodeCAnonStorey0.node = (WarpListNode)((Component)button).GetComponent <WarpListNode>(); // ISSUE: reference to a compiler-generated field // ISSUE: reference to a compiler-generated field // ISSUE: reference to a compiler-generated field nodeCAnonStorey0.node.Set(nodeCAnonStorey0.add, nodeCAnonStorey0.name); int baseIconId = Singleton <Resources> .Instance.DefinePack.MinimapUIDefine.BaseIconID; bool flag = false; // ISSUE: reference to a compiler-generated field // ISSUE: reference to a compiler-generated field if (Singleton <Manager.Map> .Instance.GetBasePointOpenState(nodeCAnonStorey0.node.basePoint.ID, out flag) && flag && !nodeCAnonStorey0.node.canWarp) { // ISSUE: reference to a compiler-generated field nodeCAnonStorey0.node.IconSet(Singleton <Resources> .Instance.itemIconTables.ActionIconTable[baseIconId]); } // ISSUE: method pointer ((UnityEvent)button.get_onClick()).AddListener(new UnityAction((object)nodeCAnonStorey0, __methodptr(\u003C\u003Em__0))); this.enterTrigger = (PointerEnterTrigger)((Component)button).get_gameObject().GetComponent <PointerEnterTrigger>(); if (Object.op_Equality((Object)this.enterTrigger, (Object)null)) { this.enterTrigger = (PointerEnterTrigger)((Component)button).get_gameObject().AddComponent <PointerEnterTrigger>(); } this.onEnter = new UITrigger.TriggerEvent(); ((UITrigger)this.enterTrigger).get_Triggers().Add(this.onEnter); // ISSUE: reference to a compiler-generated field nodeCAnonStorey0.id = this.WarpNodes.Count; // ISSUE: method pointer ((UnityEvent <BaseEventData>) this.onEnter).AddListener(new UnityAction <BaseEventData>((object)nodeCAnonStorey0, __methodptr(\u003C\u003Em__1))); ((Component)button).get_gameObject().SetActive(true); this.WarpNodes.Add(button); }
public void RefreshWarpPointNode() { this.DestroyWarpPointNode(); List <MiniMapControler.IconInfo> baseIconInfos = this.miniMapcontroler.GetBaseIconInfos(); if (baseIconInfos == null) { return; } List <MiniMapControler.IconInfo> iconInfoList = new List <MiniMapControler.IconInfo>(); foreach (KeyValuePair <int, string> keyValuePair in Singleton <Resources> .Instance.itemIconTables.BaseName) { for (int index1 = 0; index1 < baseIconInfos.Count; ++index1) { int index2 = index1; BasePoint component = (BasePoint)((Component)baseIconInfos[index2].Point).GetComponent <BasePoint>(); if (keyValuePair.Key == component.ID) { iconInfoList.Add(new MiniMapControler.IconInfo(baseIconInfos[index2].Icon, baseIconInfos[index2].Name, baseIconInfos[index2].Point)); break; } } } int mapId = Singleton <Manager.Map> .Instance.MapID; for (int index = 0; index < iconInfoList.Count; ++index) { int _index = index; if (((Component)iconInfoList[_index].Point).get_gameObject().get_activeSelf() && ((Component)iconInfoList[_index].Icon).get_gameObject().get_activeSelf()) { bool flag = true; Dictionary <int, MinimapNavimesh.AreaGroupInfo> areaGroupInfo = this.miniMapcontroler.GetAreaGroupInfo(mapId); if (areaGroupInfo != null) { foreach (KeyValuePair <int, MinimapNavimesh.AreaGroupInfo> keyValuePair in areaGroupInfo) { int areaId = iconInfoList[_index].Point.OwnerArea.AreaID; if (Object.op_Inequality((Object)iconInfoList[_index].Point.OwnerArea, (Object)null) && keyValuePair.Value.areaID.Contains(areaId)) { flag = this.miniMapcontroler.RoadNaviMesh.areaGroupActive[keyValuePair.Key]; } } } Image componentInChildren = (Image)((Component)iconInfoList[_index].Icon).GetComponentInChildren <Image>(true); if (!Object.op_Equality((Object)componentInChildren, (Object)null) && (((Behaviour)componentInChildren).get_enabled() || flag)) { this.AddWarpPointNode((BasePoint)((Component)iconInfoList[_index].Point).GetComponent <BasePoint>(), _index); } } } }
public int Compare(MiniMapControler.IconInfo a, MiniMapControler.IconInfo b) { this.pointA = (BasePoint)((Component)a.Point).GetComponent <BasePoint>(); this.pointB = (BasePoint)((Component)b.Point).GetComponent <BasePoint>(); return(this.SortCompare <int>(this.pointA.ID, this.pointB.ID)); }