private bool Send(ButtonEvent.Event[] evs, Vector2 pos, Vector2 vct) { bool flag = false; if (evs != null) { for (int index = 0; index < evs.Length; ++index) { ButtonEvent.Event ev = evs[index]; if (!string.IsNullOrEmpty(ev.eventName) && this.isInteractable) { this.PlaySe(ev); SerializeValueList serializeValueList = new SerializeValueList(ev.valueList); serializeValueList.AddField("_self", ((Component)this).get_gameObject()); serializeValueList.AddField("_pos", pos); serializeValueList.AddField("_vct", vct); if (ev.ignoreLock) { ButtonEvent.ForceInvoke(ev.eventName, (object)serializeValueList); } else { ButtonEvent.Invoke(ev.eventName, (object)serializeValueList); } flag = true; } } } return(flag); }
private void Awake() { SerializeValueList currentValue = FlowNode_ButtonEvent.currentValue as SerializeValueList; if (currentValue == null) { return; } this.mSettings = currentValue.GetObject("settings") as GalleryItemListWindow.Settings; if (this.mSettings == null) { return; } this.AscButton.set_isOn(this.mSettings.isRarityAscending); this.DescButton.set_isOn(!this.mSettings.isRarityAscending); this.mCurrentSortType = this.mSettings.sortType; this.mIsRarityAscending = this.mSettings.isRarityAscending; this.mIsNameAscending = this.mSettings.isNameAscending; if (this.mCurrentSortType == GalleryItemListWindow.SortType.Rarity) { this.RarityButton.set_isOn(true); this.NameButton.set_isOn(false); this.AscButton.set_isOn(this.mIsRarityAscending); this.DescButton.set_isOn(!this.mIsRarityAscending); } else { this.RarityButton.set_isOn(false); this.NameButton.set_isOn(true); this.AscButton.set_isOn(this.mIsNameAscending); this.DescButton.set_isOn(!this.mIsNameAscending); } }
public void Invoke(ActionCall.EventType eventType, SerializeValueList value) { SerializeValueList serializeValueList = new SerializeValueList(this.m_Value); serializeValueList.Write(value); this.m_Events.Invoke(this.m_EventName, eventType, serializeValueList); }
private bool SendHold(EventTriggerType trigger, Vector2 pos) { bool flag = false; ButtonEvent.Event[] holdEvents = this.GetHoldEvents(trigger); if (holdEvents != null) { for (int index = 0; index < holdEvents.Length; ++index) { ButtonEvent.Event ev = holdEvents[index]; if (ev != null && !string.IsNullOrEmpty(ev.eventName) && this.isInteractable) { this.PlaySe(ev); SerializeValueList serializeValueList = new SerializeValueList(ev.valueList); serializeValueList.AddField("_self", ((Component)this).get_gameObject()); serializeValueList.AddField("_pos", pos); if (ev.ignoreLock) { ButtonEvent.ForceInvoke(ev.eventName, (object)serializeValueList); } else { ButtonEvent.Invoke(ev.eventName, (object)serializeValueList); } flag = true; } } } return(flag); }
public override void OnActivate(int pinID) { SerializeValueList valueList = !UnityEngine.Object.op_Inequality((UnityEngine.Object) this.m_ValueBehaviour, (UnityEngine.Object)null) ? new SerializeValueList() : this.m_ValueBehaviour.list; if (this.m_Api != null) { DebugUtility.LogError("同時に複数の通信が入ると駄目!"); } else { switch (pinID) { case 0: this.m_Api = (FlowNode_ReqSupportList.ApiBase) new FlowNode_ReqSupportList.Api_SupportList(this, valueList, false); break; case 10: this.m_Api = (FlowNode_ReqSupportList.ApiBase) new FlowNode_ReqSupportList.Api_SupportList(this, valueList, true); break; } if (this.m_Api == null) { return; } this.m_Api.Start(); ((Behaviour)this).set_enabled(true); } }
private void Setup(SerializeValueList valueList) { this.m_ValueList = valueList == null ? new SerializeValueList() : valueList; this.m_ValueList.SetActive(1, false); this.m_ValueList.SetActive(2, false); this.m_ValueList.SetActive(3, false); this.m_ValueList.SetActive(4, false); this.m_ValueList.SetActive(5, false); if (this.m_ValueList.GetBool("notification")) { this.m_Mode = FriendDetailWindow.Mode.NOTIFICATION; } else if (this.m_ValueList.GetBool("search")) { this.m_Mode = FriendDetailWindow.Mode.SEARCH; } else if (this.m_ValueList.GetBool("block")) { this.m_Mode = FriendDetailWindow.Mode.BLOCK; GlobalVars.SelectedFriend = (FriendData)null; } else if (this.m_ValueList.GetBool("chat")) { this.m_Mode = FriendDetailWindow.Mode.CHAT; GlobalVars.SelectedFriend = (FriendData)null; } else { this.m_Mode = FriendDetailWindow.Mode.DEFAULT; } this.m_ValueList.SetField("mode", this.m_Mode.ToString()); this.m_ElementWindow = this.m_ValueList.GetComponent <SupportElementListRootWindow>("element_window"); this.Bind(); }
private void OnSelectCardUnitIcon() { SerializeValueList currentValue = FlowNode_ButtonEvent.currentValue as SerializeValueList; if (currentValue == null) { return; } string key = currentValue.GetString("select_unit"); if (string.IsNullOrEmpty(key)) { return; } UnitParam unitParam = MonoSingleton <GameManager> .Instance.GetUnitParam(key); if (unitParam == null) { return; } ((GachaResultUnitDetail)this.m_UnitDetail.GetComponent <GachaResultUnitDetail>()).Setup(this.CreateUnitData(unitParam)); ButtonEvent.Invoke("CONCEPT_CARD_DETAIL_BTN_CLOSE", (object)null); this.m_Thumbnail.SetActive(false); this.m_UnitDetail.get_gameObject().SetActive(true); FlowNode_GameObject.ActivateOutputLinks((Component)this, this.OUT_UNITDETAIL); }
public Info(GameObject _node, SerializeValueList _values, TabMaker.Element _element) { this.node = _node; this.values = _values; this.element = _element; this.tgl = (Toggle)this.node.GetComponent <Toggle>(); this.ev = (ButtonEvent)this.node.GetComponent <ButtonEvent>(); }
private void SaveSettingAndOutputPin(int pinID) { SerializeValueList serializeValueList = new SerializeValueList(); serializeValueList.SetObject("settings", (object)this.mSettings); FlowNode_ButtonEvent.currentValue = (object)serializeValueList; FlowNode_GameObject.ActivateOutputLinks((Component)this, pinID); }
public override int OnActivate(int pinId) { switch (pinId) { case 500: this.CreateInstance(); this.InitializeToggleContent(); this.Open(); break; case 510: this.ReleaseToggleContent(); this.m_SelectType = this.m_SelectTypeReg; this.m_Result = UnitListSortWindow.Result.CANCEL; this.Close(false); return(591); case 520: this.SaveSelectType(); this.ReleaseToggleContent(); this.m_SelectTypeReg = this.m_SelectType; this.m_Result = UnitListSortWindow.Result.CONFIRM; this.Close(false); return(590); case 530: SerializeValueList currentValue = FlowNode_ButtonEvent.currentValue as SerializeValueList; if (currentValue != null) { Toggle uiToggle = currentValue.GetUIToggle("_self"); if (UnityEngine.Object.op_Inequality((UnityEngine.Object)uiToggle, (UnityEngine.Object)null)) { int num1 = currentValue.GetInt("section", 0); if (num1 > 0) { if (uiToggle.get_isOn()) { this.SetSection((UnitListSortWindow.SelectType)num1); break; } break; } int num2 = currentValue.GetInt("alignment", 0); if (num2 > 0 && uiToggle.get_isOn()) { this.SetAlignment((UnitListSortWindow.SelectType)num2); break; } break; } break; } break; } return(-1); }
private void OnSelectIcon() { SerializeValueList currentValue = FlowNode_ButtonEvent.currentValue as SerializeValueList; if (currentValue == null) { return; } this.Select(currentValue.GetInt("index"), currentValue.GetInt("type"), currentValue.GetBool("bonus")); }
public void Activated(int pinID) { switch (pinID) { case 0: SerializeValueList currentValue1 = FlowNode_ButtonEvent.currentValue as SerializeValueList; if (currentValue1 == null) { break; } Toggle uiToggle = currentValue1.GetUIToggle("toggle"); if (Object.op_Equality((Object)uiToggle, (Object)this.AscButton)) { if (this.mCurrentSortType == GalleryItemListWindow.SortType.Rarity) { this.mIsRarityAscending = uiToggle.get_isOn(); break; } this.mIsNameAscending = uiToggle.get_isOn(); break; } if (this.mCurrentSortType == GalleryItemListWindow.SortType.Rarity) { this.mIsRarityAscending = !uiToggle.get_isOn(); break; } this.mIsNameAscending = !uiToggle.get_isOn(); break; case 1: this.mSettings.sortType = this.mCurrentSortType; this.mSettings.isRarityAscending = this.mIsRarityAscending; this.mSettings.isNameAscending = this.mIsNameAscending; FlowNode_GameObject.ActivateOutputLinks((Component)this, 100); break; case 2: SerializeValueList currentValue2 = FlowNode_ButtonEvent.currentValue as SerializeValueList; if (currentValue2 == null) { break; } if (Object.op_Equality((Object)currentValue2.GetUIToggle("toggle"), (Object)this.RarityButton)) { this.mCurrentSortType = GalleryItemListWindow.SortType.Rarity; this.AscButton.set_isOn(this.mIsRarityAscending); this.DescButton.set_isOn(!this.mIsRarityAscending); break; } this.mCurrentSortType = GalleryItemListWindow.SortType.Name; this.AscButton.set_isOn(this.mIsNameAscending); this.DescButton.set_isOn(!this.mIsNameAscending); break; } }
private void OnEvent_ToolTip() { if (Object.op_Inequality((Object)this.m_ToolTip, (Object)null)) { return; } SerializeValueList currentValue = FlowNode_ButtonEvent.currentValue as SerializeValueList; if (currentValue == null) { return; } UnitData dataSource = currentValue.GetDataSource <UnitData>("_self"); if (dataSource == null || string.IsNullOrEmpty(this.ToolTipPrefab)) { return; } GameObject root = (GameObject)Object.Instantiate <GameObject>((M0)AssetManager.Load <GameObject>(this.ToolTipPrefab)); DataSource.Bind <UnitData>(root, dataSource); UnitJobDropdown componentInChildren1 = (UnitJobDropdown)root.GetComponentInChildren <UnitJobDropdown>(); if (Object.op_Inequality((Object)componentInChildren1, (Object)null)) { ((Component)componentInChildren1).get_gameObject().SetActive(true); Selectable component1 = (Selectable)((Component)componentInChildren1).get_gameObject().GetComponent <Selectable>(); if (Object.op_Inequality((Object)component1, (Object)null)) { component1.set_interactable(false); } Image component2 = (Image)((Component)componentInChildren1).get_gameObject().GetComponent <Image>(); if (Object.op_Inequality((Object)component2, (Object)null)) { ((Graphic)component2).set_color(new Color(0.5f, 0.5f, 0.5f)); } } ArtifactSlots componentInChildren2 = (ArtifactSlots)root.GetComponentInChildren <ArtifactSlots>(); AbilitySlots componentInChildren3 = (AbilitySlots)root.GetComponentInChildren <AbilitySlots>(); if (Object.op_Inequality((Object)componentInChildren2, (Object)null) && Object.op_Inequality((Object)componentInChildren3, (Object)null)) { componentInChildren2.Refresh(false); componentInChildren3.Refresh(false); } ConceptCardSlots componentInChildren4 = (ConceptCardSlots)root.GetComponentInChildren <ConceptCardSlots>(); if (Object.op_Inequality((Object)componentInChildren4, (Object)null)) { componentInChildren4.Refresh(false); } GameParameter.UpdateAll(root); this.m_ToolTip = root; }
private void OnSelectBasic() { SerializeValueList currentValue = FlowNode_ButtonEvent.currentValue as SerializeValueList; if (currentValue == null) { return; } GlobalVars.LastReadTips = DataSource.FindDataOfClass <TipsParam>(currentValue.GetGameObject("item"), (TipsParam)null).iname; FlowNode_GameObject.ActivateOutputLinks((Component)this, 10000); }
public Api_SupportList(FlowNode_ReqSupportList node, SerializeValueList valueList, bool isForce) : base(node) { this.m_Element = valueList.GetEnum <EElement>("element"); this.m_IsForce = isForce; if (!UnityEngine.Object.op_Inequality((UnityEngine.Object)node.m_Window, (UnityEngine.Object)null)) { return; } this.m_Select = node.m_Window.GetData <SupportData>("data_support"); }
private bool CheckGetUnitFrame() { bool flag = false; SerializeValueList currentValue = FlowNode_ButtonEvent.currentValue as SerializeValueList; if (currentValue != null) { flag = currentValue.GetBool("is_first_get_unit"); } return(flag); }
private void Start() { SerializeValueList currentValue = FlowNode_ButtonEvent.currentValue as SerializeValueList; if (currentValue == null) { return; } DataSource.Bind <ItemParam>(((Component)this).get_gameObject(), DataSource.FindDataOfClass <ItemParam>(currentValue.GetGameObject("item"), (ItemParam)null)); GameParameter.UpdateAll(((Component)this).get_gameObject()); }
public override void Initialize(FlowWindowBase.SerializeParamBase param) { base.Initialize(param); if (UnityEngine.Object.op_Inequality((UnityEngine.Object)param.window, (UnityEngine.Object)null)) { this.m_CustomEvent = this.GetChildComponent <EventCall>("root"); SerializeValueBehaviour childComponent = this.GetChildComponent <SerializeValueBehaviour>("root"); this.m_ValueList = !UnityEngine.Object.op_Inequality((UnityEngine.Object)childComponent, (UnityEngine.Object)null) ? new SerializeValueList() : childComponent.list; } this.m_Destroy = false; this.Close(true); }
private void OnSelectPractice() { SerializeValueList currentValue = FlowNode_ButtonEvent.currentValue as SerializeValueList; if (currentValue == null) { return; } GlobalVars.SelectedQuestID = DataSource.FindDataOfClass <QuestParam>(currentValue.GetGameObject("item"), (QuestParam)null).iname; GlobalVars.RestoreBeginnerQuest = true; FlowNode_GameObject.ActivateOutputLinks((Component)this, 10001); }
public void Activated(int pinID) { switch (pinID) { case 0: this.RefreshAll(); break; case 1: SerializeValueList currentValue = FlowNode_ButtonEvent.currentValue as SerializeValueList; if (currentValue == null) { break; } UnitTobiraItem item = currentValue.GetComponent <UnitTobiraItem>("_self"); if (UnityEngine.Object.op_Equality((UnityEngine.Object)item, (UnityEngine.Object)null)) { break; } this.mSelectedTobiraCategory = item.Category; GlobalVars.PreBattleUnitTobiraCategory.Set(this.mSelectedTobiraCategory); this.mCurrentTobira = this.mCurrentUnit.TobiraData.Find((Predicate <TobiraData>)(tobira => tobira.Param.TobiraCategory == item.Category)); this.mTobiraList.ForEach((Action <UnitTobiraItem>)(tobira => tobira.Select(tobira.Category == item.Category))); this.TobiraParamWindow.Refresh(this.mCurrentUnit, this.mCurrentTobira, item.Param); UnitEnhanceV3.Instance.RefreshTobiraBgAnimation(this.mCurrentTobira, false); break; case 2: this.OnTobiraOpenBtn(); break; case 3: this.OnTobiraEnhanceBtn(); break; case 5: this.RefreshCurrentUnit(); this.SuccessTobiraEnhance(); break; case 6: this.RefreshCurrentUnit(); this.SuccessTobiraOpen(); break; case 7: UnitEnhanceV3.Instance.TobiraUIActive(false, false); break; } }
private void OnUEWindowClosedByUser() { this.mUEMain.OnUserClose = (UnitEnhanceV3.CloseEvent)null; if (this.mUEMain.GetDirtyUnits().Length > 0) { this.mUEMain.ClearDirtyUnits(); } UnitListRootWindow.TabRegister tabRegister = new UnitListRootWindow.TabRegister(); if (this.mCurrentTab != UnitListRootWindow.Tab.NONE) { tabRegister.tab = this.mCurrentTab; tabRegister.anchorePos = this.mCurrentTabAnchorePos; string s = FlowNode_Variable.Get("LAST_SELECTED_UNITID"); if (!string.IsNullOrEmpty(s)) { long num = long.Parse(s); if (num > 0L && this.mCurrentUnit != num) { tabRegister.forcus = num; } FlowNode_Variable.Set("LAST_SELECTED_UNITID", string.Empty); } } else { tabRegister.tab = UnitListRootWindow.Tab.ALL; tabRegister.forcus = GlobalVars.SelectedUnitUniqueID.Get(); string s = FlowNode_Variable.Get("LAST_SELECTED_UNITID"); if (!string.IsNullOrEmpty(s)) { long num = long.Parse(s); if (num > 0L) { tabRegister.forcus = num; } FlowNode_Variable.Set("LAST_SELECTED_UNITID", string.Empty); } } SerializeValueList serializeValueList = new SerializeValueList(); serializeValueList.AddObject("data_register", (object)tabRegister); FlowNode_ButtonEvent.currentValue = (object)serializeValueList; if (Object.op_Equality((Object)this.mUnitListWindow, (Object)null)) { this.CreateUnitList(); } this.mUnitListWindow.Enabled(true); FlowNode_GameObject.ActivateOutputLinks((Component)this, 510); }
public override void Initialize(FlowWindowBase.SerializeParamBase param) { base.Initialize(param); this.m_Param = param as UnitListSortWindow.SerializeParam; if (this.m_Param == null) { throw new Exception(this.ToString() + " > Failed serializeParam null."); } SerializeValueBehaviour childComponent = this.GetChildComponent <SerializeValueBehaviour>("sort"); this.m_ValueList = !UnityEngine.Object.op_Inequality((UnityEngine.Object)childComponent, (UnityEngine.Object)null) ? new SerializeValueList() : childComponent.list; GameObject gameObject = this.m_ValueList.GetGameObject("list"); if (UnityEngine.Object.op_Inequality((UnityEngine.Object)gameObject, (UnityEngine.Object)null)) { Toggle[] componentsInChildren = (Toggle[])gameObject.GetComponentsInChildren <Toggle>(); for (int index = 0; index < componentsInChildren.Length; ++index) { try { UnitListSortWindow.SelectType key = (UnitListSortWindow.SelectType)Enum.Parse(typeof(UnitListSortWindow.SelectType), ((UnityEngine.Object)componentsInChildren[index]).get_name()); ButtonEvent component = (ButtonEvent)((Component)componentsInChildren[index]).GetComponent <ButtonEvent>(); if (UnityEngine.Object.op_Inequality((UnityEngine.Object)component, (UnityEngine.Object)null)) { ButtonEvent.Event @event = component.GetEvent("UNITSORT_TGL_CHANGE"); if (@event != null) { if ((key & (UnitListSortWindow.SelectType) 16777215) != UnitListSortWindow.SelectType.NONE) { @event.valueList.SetField("section", (int)key); } if ((key & (UnitListSortWindow.SelectType) 251658240) != UnitListSortWindow.SelectType.NONE) { @event.valueList.SetField("alignment", (int)key); } } } this.m_Toggles.Add(key, componentsInChildren[index]); } catch (Exception ex) { Debug.LogError((object)("UnitSortWindow トグル名からSelectTypeを取得できない! > " + ((UnityEngine.Object)componentsInChildren[index]).get_name() + " ( Exception > " + ex.ToString() + " )")); } } } this.LoadSelectType(); this.Close(true); }
private void OnSelectBanner() { SerializeValueList currentValue = FlowNode_ButtonEvent.currentValue as SerializeValueList; if (currentValue == null) { return; } string str = currentValue.GetString("url"); if (string.IsNullOrEmpty(str)) { return; } Application.OpenURL(str); }
private void Awake() { SerializeValueList currentValue = FlowNode_ButtonEvent.currentValue as SerializeValueList; if (currentValue == null) { return; } this.mSettings = currentValue.GetObject("settings") as GalleryItemListWindow.Settings; if (this.mSettings == null) { return; } this.mRareFiltters = ((IEnumerable <int>) this.mSettings.rareFilters).OrderBy <int, int>((Func <int, int>)(x => x)).ToList <int>(); foreach (Toggle mToggle in this.mToggles) { mToggle.set_isOn(false); } if (this.mToggles != null && this.mToggles.Length >= 0) { using (List <int> .Enumerator enumerator = this.mRareFiltters.GetEnumerator()) { while (enumerator.MoveNext()) { int current = enumerator.Current; if (current >= 0 && current < this.mToggles.Length) { this.mToggles[current].set_isOn(true); } } } } if (this.mToggles == null || this.mToggles.Length < 0) { return; } for (int index = 0; index < this.mToggles.Length; ++index) { // ISSUE: object of a compiler-generated type is created // ISSUE: method pointer ((UnityEvent <bool>) this.mToggles[index].onValueChanged).AddListener(new UnityAction <bool>((object)new GalleryFilterWindow.\u003CAwake\u003Ec__AnonStorey348() { \u003C\u003Ef__this = this, index = index }, __methodptr(\u003C\u003Em__33C))); } }
private void Start() { if (FlowNode_ButtonEvent.currentValue == null) { return; } SerializeValueList currentValue = FlowNode_ButtonEvent.currentValue as SerializeValueList; if (currentValue == null) { return; } ConceptCardIcon component = currentValue.GetComponent <ConceptCardIcon>("_self"); if (Object.op_Equality((Object)component, (Object)null)) { return; } this.mConceptCardData = component.ConceptCard; if (this.mConceptCardData == null) { return; } if (Object.op_Inequality((Object)this.mIllustImage, (Object)null)) { string path = AssetPath.ConceptCard(this.mConceptCardData.Param); if (((Object)this.mIllustImage.get_mainTexture()).get_name() != Path.GetFileName(path)) { MonoSingleton <GameManager> .Instance.ApplyTextureAsync(this.mIllustImage, path); } } if (Object.op_Inequality((Object)this.mIllustFrame, (Object)null)) { this.mIllustFrame.ImageIndex = Mathf.Min(Mathf.Max((int)this.mConceptCardData.Rarity, 0), this.mIllustFrame.Images.Length - 1); } this.SetText(this.mCardNameText, this.mConceptCardData.Param.name); this.SetFlavorTextText(); if (Object.op_Inequality((Object)this.mStarGauge, (Object)null)) { this.mStarGauge.Max = (int)this.mConceptCardData.Rarity + 1; this.mStarGauge.Value = (int)this.mConceptCardData.Rarity + 1; } foreach (Scrollbar componentsInChild in (Scrollbar[])((Component)this).GetComponentsInChildren <Scrollbar>()) { componentsInChild.set_value(1f); } }
public void Activated(int pinID) { switch (pinID) { case 0: this.Refresh(); break; case 50: SerializeValueList currentValue1 = FlowNode_ButtonEvent.currentValue as SerializeValueList; if (currentValue1 == null) { break; } TobiraEnhanceRecipe dataSource = currentValue1.GetDataSource <TobiraEnhanceRecipe>("_self"); if (dataSource == null) { break; } this.RefreshSubPanel(dataSource.Index); break; case 51: SerializeValueList currentValue2 = FlowNode_ButtonEvent.currentValue as SerializeValueList; if (currentValue2 == null) { break; } QuestParam dataOfClass = DataSource.FindDataOfClass <QuestParam>(currentValue2.GetGameObject("_self"), (QuestParam)null); if (dataOfClass == null) { break; } this.OnQuestSelect(dataOfClass); break; case 100: if (this.OnCallback != null) { this.OnCallback(); } FlowNode_GameObject.ActivateOutputLinks((Component)this, 102); break; } }
public override void Initialize(FlowWindowBase.SerializeParamBase param) { base.Initialize(param); this.m_Param = param as UnitListFilterWindow.SerializeParam; if (this.m_Param == null) { throw new Exception(this.ToString() + " > Failed serializeParam null."); } SerializeValueBehaviour childComponent = this.GetChildComponent <SerializeValueBehaviour>("filter"); this.m_ValueList = !UnityEngine.Object.op_Inequality((UnityEngine.Object)childComponent, (UnityEngine.Object)null) ? new SerializeValueList() : childComponent.list; if (UnityEngine.Object.op_Inequality((UnityEngine.Object) this.m_Window, (UnityEngine.Object)null) && UnityEngine.Object.op_Inequality((UnityEngine.Object) this.m_Animator, (UnityEngine.Object)null)) { this.CacheToggleParam(((Component)this.m_Animator).get_gameObject()); } this.LoadSelectType(); this.Close(true); }
private void SelectCardIcon() { SerializeValueList currentValue = FlowNode_ButtonEvent.currentValue as SerializeValueList; if (currentValue == null) { return; } ConceptCardIcon component = currentValue.GetComponent <ConceptCardIcon>("_self"); this.mConceptCardEquipList.SelectCardIcon(component); this.SetActiveParamViewObject(Object.op_Equality((Object)component, (Object)null)); this.mSelectedCardData = !Object.op_Inequality((Object)component, (Object)null) ? (ConceptCardData)null : component.ConceptCard; if (this.mSelectedCardData == null || this.mSelectedUnit == null) { return; } this.SetParam(this.mSelectedCardData, this.mSelectedUnit, this.mSelectedUnit.JobIndex); }
public override int OnActivate(int pinId) { switch (pinId) { case 100: this.InitializeContentList(); this.RefreshUI(); this.Open(); break; case 110: this.m_Destroy = true; this.Close(false); break; case 120: SerializeValueList currentValue = FlowNode_ButtonEvent.currentValue as SerializeValueList; if (currentValue != null) { MultiInvitationSendWindow.Content.ItemAccessor dataSource = currentValue.GetDataSource <MultiInvitationSendWindow.Content.ItemAccessor>("_self"); if (dataSource != null && dataSource.isValid) { string uid = dataSource.friend.UID; if (!this.IsSendList(uid)) { dataSource.isOn = true; this.m_SendList.Add(uid); break; } dataSource.isOn = false; this.m_SendList.Remove(uid); break; } break; } break; case 130: return(190); } return(-1); }
public override void OnActivate(int pinID) { if (this.m_Api != null) { DebugUtility.LogError("同時に複数の通信が入ると駄目!"); } else { switch (pinID) { case 100: this.m_Api = (FlowNode_ReqPresentList.ApiBase) new FlowNode_ReqPresentList.Api_PresentList(this); break; case 200: this.m_Api = (FlowNode_ReqPresentList.ApiBase) new FlowNode_ReqPresentList.Api_PresentListExec(this); break; case 300: this.m_Api = (FlowNode_ReqPresentList.ApiBase) new FlowNode_ReqPresentList.Api_PresentListSend(this); break; case 400: SerializeValueList currentValue = FlowNode_ButtonEvent.currentValue as SerializeValueList; if (currentValue != null) { new FlowNode_ReqPresentList.Api_PresentListGave(this, currentValue.GetGameObject("item")).Start(); break; } break; } if (this.m_Api == null) { return; } this.m_Api.Start(); ((Behaviour)this).set_enabled(true); } }