public void Bind(ContentNode node) { this.m_Node = node; this.m_DataSource = DataSource.Create(((Component)node).get_gameObject()); this.m_DataSource.Add(typeof(FriendData), (object)this.m_Friend); this.m_DataSource.Add(typeof(UnitData), (object)this.m_Friend.Unit); this.m_DataSource.Add(typeof(MultiInvitationSendWindow.Content.ItemAccessor), (object)this); SerializeValueBehaviour component = (SerializeValueBehaviour)((Component)this.m_Node).GetComponent <SerializeValueBehaviour>(); if (!UnityEngine.Object.op_Inequality((UnityEngine.Object)component, (UnityEngine.Object)null)) { return; } bool flag = MultiInvitationSendWindow.instance != null && MultiInvitationSendWindow.instance.IsSendList(this.m_Friend.UID); this.m_Toggle = component.list.GetUIToggle("toggle"); if (UnityEngine.Object.op_Inequality((UnityEngine.Object) this.m_Toggle, (UnityEngine.Object)null)) { this.m_Toggle.set_isOn(flag); } this.m_Hatch = component.list.GetGameObject("hatch"); if (UnityEngine.Object.op_Inequality((UnityEngine.Object) this.m_Hatch, (UnityEngine.Object)null)) { this.m_Hatch.SetActive(false); } component.list.SetField("comment", this.m_Friend.MultiComment); }
public void SetDetailActiveStatus(bool _active) { SerializeValueBehaviour component = (SerializeValueBehaviour)((Component)this).get_gameObject().GetComponent <SerializeValueBehaviour>(); if (!UnityEngine.Object.op_Inequality((UnityEngine.Object)component, (UnityEngine.Object)null)) { return; } if (UnityEngine.Object.op_Equality((UnityEngine.Object) this.m_Thumbnail, (UnityEngine.Object)null)) { this.m_Thumbnail = component.list.GetGameObject("thumbnail"); if (UnityEngine.Object.op_Equality((UnityEngine.Object) this.m_Thumbnail, (UnityEngine.Object)null)) { DebugUtility.LogError("GachaResultThumbnailWindow.cs:unit_detailの指定がありません."); return; } } if (UnityEngine.Object.op_Equality((UnityEngine.Object) this.m_UnitDetail, (UnityEngine.Object)null)) { this.m_UnitDetail = component.list.GetGameObject("unit_detail"); if (UnityEngine.Object.op_Equality((UnityEngine.Object) this.m_UnitDetail, (UnityEngine.Object)null)) { DebugUtility.LogError("GachaResultThumbnailWindow.cs:unit_detailの指定がありません."); return; } } this.m_UnitDetail.SetActive(_active); }
public void Clear() { if (UnityEngine.Object.op_Inequality((UnityEngine.Object) this.m_Icon, (UnityEngine.Object)null)) { this.m_Icon.Clear(); this.m_Icon = (FriendPresentItemIcon)null; } this.m_Value = (SerializeValueBehaviour)null; this.m_Node = (ContentNode)null; }
public void Bind(ContentNode node) { this.m_Node = node; SerializeValueBehaviour component = (SerializeValueBehaviour)((Component)this.m_Node).GetComponent <SerializeValueBehaviour>(); if (!UnityEngine.Object.op_Inequality((UnityEngine.Object)component, (UnityEngine.Object)null)) { return; } component.list.SetField("name", this.m_FriendData.PlayerName); }
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); }
public void Refresh(int element, UnitData unit) { if (this.m_SupportUnits == null) { DebugUtility.LogError("m_SupportUnitsがnullです。"); } else if (this.m_SupportUnits.Length < Enum.GetValues(typeof(EElement)).Length) { DebugUtility.LogError("m_SupportUnitsの数が足りません。Inspectorからの設定を確認してください。"); } else if (element >= this.m_SupportUnits.Length) { DebugUtility.LogError("unitsの数が足りません。"); } else { if (!UnityEngine.Object.op_Inequality((UnityEngine.Object) this.m_SupportUnits[element], (UnityEngine.Object)null)) { return; } GameObject gameObject = this.m_SupportUnits[element].get_gameObject(); if (!UnityEngine.Object.op_Inequality((UnityEngine.Object)gameObject, (UnityEngine.Object)null)) { return; } SerializeValueBehaviour component = (SerializeValueBehaviour)gameObject.GetComponent <SerializeValueBehaviour>(); DataSource dataSource = DataSource.Create(gameObject); if (!UnityEngine.Object.op_Inequality((UnityEngine.Object)dataSource, (UnityEngine.Object)null)) { return; } dataSource.Clear(); if (unit != null) { dataSource.Add(typeof(UnitData), (object)unit); if (UnityEngine.Object.op_Inequality((UnityEngine.Object)component, (UnityEngine.Object)null)) { component.list.SetInteractable("btn", true); component.list.SetActive(1, true); } } else if (UnityEngine.Object.op_Inequality((UnityEngine.Object)component, (UnityEngine.Object)null)) { component.list.SetInteractable("btn", false); component.list.SetActive(1, false); } GameParameter.UpdateAll(gameObject); } }
public override void Initialize(FlowWindowBase.SerializeParamBase param) { FriendPresentRootWindow.m_Instance = this; base.Initialize(param); this.m_Param = param as FriendPresentRootWindow.SerializeParam; if (this.m_Param == null) { throw new Exception(this.ToString() + " > Failed serializeParam null."); } this.m_ValueList = (SerializeValueBehaviour)this.m_Param.window.GetComponent <SerializeValueBehaviour>(); if (UnityEngine.Object.op_Inequality((UnityEngine.Object) this.m_ValueList, (UnityEngine.Object)null)) { this.m_ReceiveToggle = this.m_ValueList.list.GetUIToggle("tgl_receive"); if (UnityEngine.Object.op_Inequality((UnityEngine.Object) this.m_ReceiveToggle, (UnityEngine.Object)null)) { ((Selectable)this.m_ReceiveToggle).set_interactable(false); } this.m_SendToggle = this.m_ValueList.list.GetUIToggle("tgl_send"); if (UnityEngine.Object.op_Inequality((UnityEngine.Object) this.m_SendToggle, (UnityEngine.Object)null)) { ((Selectable)this.m_SendToggle).set_interactable(false); } } if (UnityEngine.Object.op_Inequality((UnityEngine.Object) this.m_Param.wantList, (UnityEngine.Object)null)) { this.m_WantController = (ContentController)this.m_Param.wantList.GetComponentInChildren <ContentController>(); if (UnityEngine.Object.op_Inequality((UnityEngine.Object) this.m_WantController, (UnityEngine.Object)null)) { this.m_WantController.SetWork((object)this); } } if (UnityEngine.Object.op_Inequality((UnityEngine.Object) this.m_Param.receiveList, (UnityEngine.Object)null)) { this.m_ReceiveController = (ContentController)this.m_Param.receiveList.GetComponentInChildren <ContentController>(); if (UnityEngine.Object.op_Inequality((UnityEngine.Object) this.m_ReceiveController, (UnityEngine.Object)null)) { this.m_ReceiveController.SetWork((object)this); } } if (UnityEngine.Object.op_Inequality((UnityEngine.Object) this.m_Param.sendList, (UnityEngine.Object)null)) { this.m_SendController = (ContentController)this.m_Param.sendList.GetComponentInChildren <ContentController>(); if (UnityEngine.Object.op_Inequality((UnityEngine.Object) this.m_SendController, (UnityEngine.Object)null)) { this.m_SendController.SetWork((object)this); } } this.Close(true); }
public void Bind(ContentNode node) { this.m_Node = node; this.m_Icon = (FriendPresentItemIcon)((Component)this.m_Node).GetComponent <FriendPresentItemIcon>(); if (UnityEngine.Object.op_Inequality((UnityEngine.Object) this.m_Icon, (UnityEngine.Object)null)) { this.m_Icon.Bind(this.present, false); } this.m_Value = (SerializeValueBehaviour)((Component)this.m_Node).GetComponent <SerializeValueBehaviour>(); if (!UnityEngine.Object.op_Inequality((UnityEngine.Object) this.m_Value, (UnityEngine.Object)null)) { return; } this.m_Value.list.SetField("num", this.m_Param.num); }
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 SetBitmapText(GameObject _obj, string _name, int _num) { SerializeValueBehaviour component = (SerializeValueBehaviour)_obj.GetComponent <SerializeValueBehaviour>(); if (!Object.op_Inequality((Object)component, (Object)null)) { return; } Text uiLabel = component.list.GetUILabel(_name); if (!Object.op_Inequality((Object)uiLabel, (Object)null)) { return; } uiLabel.set_text(_num.ToString()); }
public void Bind(ContentNode node) { this.m_Node = node; this.m_DataSource = DataSource.Create(((Component)node).get_gameObject()); this.m_DataSource.Add(typeof(FriendData), (object)this.m_Param.owner.friend); if (this.m_Param.owner.unit != null) { this.m_DataSource.Add(typeof(UnitData), (object)this.m_Param.owner.unit); } this.m_DataSource.Add(typeof(MultiInvitationReceiveWindow.ActiveData.RoomData), (object)this.m_Param); this.m_Value = (SerializeValueBehaviour)((Component)this.m_Node).GetComponent <SerializeValueBehaviour>(); if (!UnityEngine.Object.op_Inequality((UnityEngine.Object) this.m_Value, (UnityEngine.Object)null)) { return; } this.m_Value.list.SetField("quest_name", this.m_Param.quest.param.name); this.m_Value.list.SetField("comment", this.m_Param.comment); }
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); }
public void Bind(ContentNode node) { this.m_Node = node; this.m_DataSource = DataSource.Create(((Component)node).get_gameObject()); if (this.m_Param.owner.unit != null) { this.m_DataSource.Add(typeof(UnitData), (object)this.m_Param.owner.unit); } this.m_DataSource.Add(typeof(MultiInvitationReceiveWindow.ActiveData.RoomData), (object)this.m_Param); this.m_Value = (SerializeValueBehaviour)((Component)this.m_Node).GetComponent <SerializeValueBehaviour>(); if (!UnityEngine.Object.op_Inequality((UnityEngine.Object) this.m_Value, (UnityEngine.Object)null)) { return; } this.m_Value.list.SetField("quest_name", this.m_Param.quest.param.name); this.m_Value.list.SetField("name", this.m_Param.owner.name); this.m_Value.list.SetField("lv", this.m_Param.owner.lv); TimeSpan timeSpan = DateTime.Now - GameUtility.UnixtimeToLocalTime(this.m_Param.created_at); int days = timeSpan.Days; if (days > 0) { this.m_Value.list.SetField("time", LocalizedText.Get("sys.MULTIINVITATION_RECEIVE_TIMEDAY", new object[1] { (object)days.ToString() })); } else if (timeSpan.Hours > 0) { this.m_Value.list.SetField("time", LocalizedText.Get("sys.MULTIINVITATION_RECEIVE_TIMHOUR", new object[1] { (object)timeSpan.Hours.ToString() })); } else { this.m_Value.list.SetField("time", LocalizedText.Get("sys.MULTIINVITATION_RECEIVE_TIMEMINUTE", new object[1] { (object)timeSpan.Minutes.ToString() })); } }
private void RefreshGachaCostObject(GameObject button) { GachaCostObject gachaCostObject1 = (GachaCostObject)button.GetComponent <GachaCostObject>(); if (UnityEngine.Object.op_Equality((UnityEngine.Object)gachaCostObject1, (UnityEngine.Object)null)) { GachaCostObject gachaCostObject2 = (GachaCostObject)button.AddComponent <GachaCostObject>(); SerializeValueBehaviour component = (SerializeValueBehaviour)button.GetComponent <SerializeValueBehaviour>(); if (UnityEngine.Object.op_Equality((UnityEngine.Object)component, (UnityEngine.Object)null)) { DebugUtility.LogError("再召喚ボタン用のSerializeValueListがありません"); return; } gachaCostObject2.RootObject = button; gachaCostObject2.TicketObject = component.list.GetGameObject("ticket"); gachaCostObject2.DefaultObject = component.list.GetGameObject("default"); gachaCostObject2.DefaultBGObject = component.list.GetGameObject("bg"); gachaCostObject1 = gachaCostObject2; } gachaCostObject1.Refresh(); }
public override void Initialize(FlowWindowBase.SerializeParamBase param) { MultiInvitationSendWindow.m_Instance = this; base.Initialize(param); this.m_Param = param as MultiInvitationSendWindow.SerializeParam; if (this.m_Param == null) { throw new Exception(this.ToString() + " > Failed serializeParam null."); } this.m_ValueList = (SerializeValueBehaviour)this.m_Param.window.GetComponent <SerializeValueBehaviour>(); if (UnityEngine.Object.op_Inequality((UnityEngine.Object) this.m_ValueList, (UnityEngine.Object)null)) { this.m_ValueList.list.SetField("checkmax", 5); } if (UnityEngine.Object.op_Inequality((UnityEngine.Object) this.m_Param.list, (UnityEngine.Object)null)) { this.m_ContentController = (ContentController)this.m_Param.list.GetComponentInChildren <ContentController>(); if (UnityEngine.Object.op_Inequality((UnityEngine.Object) this.m_ContentController, (UnityEngine.Object)null)) { this.m_ContentController.SetWork((object)this); } } this.Close(true); }
private void Initalize() { if (this.IsInialize) { this.RefreshIcons(true); if (this.IsFinishedBonus) { return; } ButtonEvent.Lock("gacha_initialize"); FlowNode_GameObject.ActivateOutputLinks((Component)this, 60); } else { if (GachaResultData.drops == null) { return; } if (GachaResultData.IsRedrawGacha) { GlobalEvent.Invoke("DISABLE_HOME_BUTTON", (object)this); } this.mRequest = (GachaRequestParam)null; GachaRequestParam dataOfClass = DataSource.FindDataOfClass <GachaRequestParam>(((Component)this).get_gameObject(), (GachaRequestParam)null); if (dataOfClass != null) { this.mRequest = dataOfClass; } this.SetDetailActiveStatus(false); this.is_gift = this.CheckIsGiftData(GachaResultData.drops); for (int index = 0; index < GachaResultData.drops.Length; ++index) { if (GachaResultData.drops[index].type == GachaDropData.Type.Unit) { MonoSingleton <GameManager> .Instance.Player.UpdateUnitTrophyStates(false); break; } } if (UnityEngine.Object.op_Inequality((UnityEngine.Object) this.m_OnemoreBtn, (UnityEngine.Object)null)) { this.RefreshGachaCostObject(((Component)this.m_OnemoreBtn).get_gameObject()); ((Component)this.m_OnemoreBtn).get_gameObject().SetActive(GachaResultData.UseOneMore && !GachaResultData.IsRedrawGacha); } if (UnityEngine.Object.op_Inequality((UnityEngine.Object) this.m_BonusBtn, (UnityEngine.Object)null)) { ((Component)this.m_BonusBtn).get_gameObject().SetActive(GachaResultData.dropMails != null && GachaResultData.dropMails.Length > 0); } if (UnityEngine.Object.op_Inequality((UnityEngine.Object) this.m_RedrawBtn, (UnityEngine.Object)null)) { SerializeValueBehaviour component = (SerializeValueBehaviour)((Component)this.m_RedrawBtn).GetComponent <SerializeValueBehaviour>(); if (UnityEngine.Object.op_Inequality((UnityEngine.Object)component, (UnityEngine.Object)null)) { GameObject gameObject = component.list.GetGameObject("option"); if (UnityEngine.Object.op_Inequality((UnityEngine.Object)gameObject, (UnityEngine.Object)null)) { gameObject.SetActive(GachaResultData.IsPending); } Text uiLabel = component.list.GetUILabel("txt_count"); if (UnityEngine.Object.op_Inequality((UnityEngine.Object)uiLabel, (UnityEngine.Object)null)) { string empty; if (GachaResultData.IsPending) { empty = LocalizedText.Get("sys.GACHA_REDRAW_COUNT_LIMIT", new object[1] { (object)GachaResultData.RedrawRest }); } else { empty = string.Empty; } string str = empty; uiLabel.set_text(str); } } ((Component)this.m_RedrawBtn).get_gameObject().SetActive(GachaResultData.IsRedrawGacha); ((Selectable)this.m_RedrawBtn).set_interactable(GachaResultData.IsPending && GachaResultData.RedrawRest > 0); } if (UnityEngine.Object.op_Inequality((UnityEngine.Object) this.m_DefaultBtn, (UnityEngine.Object)null)) { SerializeValueBehaviour component = (SerializeValueBehaviour)((Component)this.m_DefaultBtn).GetComponent <SerializeValueBehaviour>(); if (UnityEngine.Object.op_Inequality((UnityEngine.Object)component, (UnityEngine.Object)null)) { component.list.GetUILabel("text").set_text(!GachaResultData.IsPending ? LocalizedText.Get("sys.BTN_GACHA_OK") : LocalizedText.Get("sys.BTN_DECIDE_CONFIRM")); } } this.Refresh(); this.m_inialize = true; } }
private void RefreshResult(GachaDropData[] _drops, GameObject _block, int _block_type, bool _is_anim = false) { if (_drops == null || _drops.Length < 0 || UnityEngine.Object.op_Equality((UnityEngine.Object)_block, (UnityEngine.Object)null)) { return; } _block.SetActive(true); int length = _drops.Length; SerializeValueBehaviour component1 = (SerializeValueBehaviour)_block.GetComponent <SerializeValueBehaviour>(); if (UnityEngine.Object.op_Inequality((UnityEngine.Object)component1, (UnityEngine.Object)null)) { GameObject gameObject1 = component1.list.GetGameObject("icon"); gameObject1.SetActive(false); for (int index1 = 0; index1 < length; ++index1) { GachaDropData drop = _drops[index1]; int num = index1; GachaResultThumbnailWindow.GachaResultType gachaResultType = GachaResultThumbnailWindow.GachaResultType.None; if (drop != null) { GameObject gameObject2 = (GameObject)UnityEngine.Object.Instantiate <GameObject>((M0)gameObject1); gameObject2.get_transform().SetParent(gameObject1.get_transform().get_parent(), false); ((Behaviour)gameObject2.GetComponent <Animator>()).set_enabled(_is_anim); SerializeValueBehaviour component2 = (SerializeValueBehaviour)gameObject2.GetComponent <SerializeValueBehaviour>(); if (!UnityEngine.Object.op_Equality((UnityEngine.Object)component2, (UnityEngine.Object)null)) { GameObject gameObject3 = (GameObject)null; if (drop.type == GachaDropData.Type.Unit) { gameObject3 = component2.list.GetGameObject("unit"); DataSource.Bind <UnitData>(gameObject3, this.CreateUnitData(drop.unit)); gachaResultType = GachaResultThumbnailWindow.GachaResultType.Unit; } else if (drop.type == GachaDropData.Type.Item) { gameObject3 = component2.list.GetGameObject("item"); DataSource.Bind <ItemData>(gameObject3, this.CreateItemData(drop.item, drop.num)); ItemIcon component3 = (ItemIcon)gameObject3.GetComponent <ItemIcon>(); if (UnityEngine.Object.op_Inequality((UnityEngine.Object)component3, (UnityEngine.Object)null)) { component3.UpdateValue(); } gachaResultType = !string.IsNullOrEmpty(drop.item.Flavor) ? GachaResultThumbnailWindow.GachaResultType.Item : GachaResultThumbnailWindow.GachaResultType.Piece; } else if (drop.type == GachaDropData.Type.Artifact) { gameObject3 = component2.list.GetGameObject("artifact"); DataSource.Bind <ArtifactData>(gameObject3, this.CreateArtifactData(drop.artifact, drop.Rare)); gachaResultType = GachaResultThumbnailWindow.GachaResultType.Artifact; } else if (drop.type == GachaDropData.Type.ConceptCard) { gameObject3 = component2.list.GetGameObject("conceptcard"); ConceptCardData cardDataForDisplay = ConceptCardData.CreateConceptCardDataForDisplay(drop.conceptcard.iname); ConceptCardIcon component3 = (ConceptCardIcon)gameObject3.GetComponent <ConceptCardIcon>(); if (UnityEngine.Object.op_Inequality((UnityEngine.Object)component3, (UnityEngine.Object)null)) { component3.Setup(cardDataForDisplay); SerializeValueBehaviour component4 = (SerializeValueBehaviour)gameObject3.GetComponent <SerializeValueBehaviour>(); if (UnityEngine.Object.op_Inequality((UnityEngine.Object)component4, (UnityEngine.Object)null)) { GameObject gameObject4 = component4.list.GetGameObject("unit_icon"); if (UnityEngine.Object.op_Inequality((UnityEngine.Object)gameObject4, (UnityEngine.Object)null)) { UnitData data = (UnitData)null; if (drop.cardunit != null) { data = this.CreateUnitData(drop.cardunit); } DataSource.Bind <UnitData>(gameObject4, data); gameObject4.SetActive(drop.cardunit != null); } GameObject gameObject5 = component4.list.GetGameObject("skin"); if (UnityEngine.Object.op_Inequality((UnityEngine.Object)gameObject5, (UnityEngine.Object)null)) { bool flag = false; if (drop.conceptcard.effects != null && drop.conceptcard.effects.Length > 0) { for (int index2 = 0; index2 < drop.conceptcard.effects.Length; ++index2) { ConceptCardEffectsParam effect = drop.conceptcard.effects[index2]; if (effect != null && !string.IsNullOrEmpty(effect.skin)) { flag = true; break; } } } gameObject5.SetActive(flag); } } } gachaResultType = GachaResultThumbnailWindow.GachaResultType.ConceptCard; } if (UnityEngine.Object.op_Equality((UnityEngine.Object)gameObject3, (UnityEngine.Object)null)) { DebugUtility.LogError("アイコンオブジェクトがありません"); break; } SerializeValueBehaviour component5 = (SerializeValueBehaviour)gameObject3.GetComponent <SerializeValueBehaviour>(); if (UnityEngine.Object.op_Inequality((UnityEngine.Object)component5, (UnityEngine.Object)null)) { GameObject gameObject4 = component5.list.GetGameObject("new"); if (UnityEngine.Object.op_Inequality((UnityEngine.Object)component5, (UnityEngine.Object)null)) { gameObject4.SetActive(drop.isNew); } } ButtonEvent component6 = (ButtonEvent)gameObject3.GetComponent <ButtonEvent>(); if (UnityEngine.Object.op_Inequality((UnityEngine.Object)component6, (UnityEngine.Object)null)) { ButtonEvent.Event @event = component6.GetEvent("CLICK_ICON"); if (@event != null) { @event.valueList.SetField("index", num); @event.valueList.SetField("type", (int)gachaResultType); @event.valueList.SetField("block", _block_type); if (gachaResultType == GachaResultThumbnailWindow.GachaResultType.ConceptCard) { @event.valueList.SetField("is_first_get_unit", drop.cardunit != null); } } } gameObject3.SetActive(true); this.m_ResultIconRootList.Add(gameObject2); if (_block_type == 0) { this.m_ResultIconRootList.Add(gameObject2); } } else { break; } } } } SerializeValueBehaviour component7 = (SerializeValueBehaviour)((Component)this).get_gameObject().GetComponent <SerializeValueBehaviour>(); if (!UnityEngine.Object.op_Inequality((UnityEngine.Object)component7, (UnityEngine.Object)null)) { return; } GameObject gameObject = component7.list.GetGameObject("space"); if (!UnityEngine.Object.op_Inequality((UnityEngine.Object)gameObject, (UnityEngine.Object)null)) { return; } gameObject.get_transform().SetAsLastSibling(); gameObject.SetActive(length > GachaResultThumbnailWindow.VIEW_COUNT); }
private void Initalize() { GachaHistoryItemData dataOfClass = DataSource.FindDataOfClass <GachaHistoryItemData>(((Component)this).get_gameObject(), (GachaHistoryItemData)null); if (dataOfClass == null) { DebugUtility.LogError("履歴が存在しません"); } else { for (int index = dataOfClass.historys.Length - 1; index >= 0; --index) { GachaHistoryData history = dataOfClass.historys[index]; if (history != null) { GameObject gameObject1 = (GameObject)null; bool flag = false; if (history.type == GachaDropData.Type.Unit) { gameObject1 = (GameObject)Object.Instantiate <GameObject>((M0)this.UnitIconObj); if (Object.op_Inequality((Object)gameObject1, (Object)null)) { gameObject1.get_transform().SetParent(this.ListParent, false); gameObject1.SetActive(true); DataSource.Bind <UnitData>(gameObject1, GachaHistoryWindow.CreateUnitData(history.unit)); flag = history.isNew; this.mItems.Add(gameObject1); gameObject1.get_transform().SetAsFirstSibling(); } } else if (history.type == GachaDropData.Type.Item) { gameObject1 = (GameObject)Object.Instantiate <GameObject>((M0)this.ItemIconObj); if (Object.op_Inequality((Object)gameObject1, (Object)null)) { gameObject1.get_transform().SetParent(this.ListParent, false); gameObject1.SetActive(true); DataSource.Bind <ItemData>(gameObject1, GachaHistoryWindow.CreateItemData(history.item, history.num)); flag = history.isNew; this.mItems.Add(gameObject1); gameObject1.get_transform().SetAsFirstSibling(); } } else if (history.type == GachaDropData.Type.Artifact) { gameObject1 = (GameObject)Object.Instantiate <GameObject>((M0)this.ArtifactIconObj); if (Object.op_Inequality((Object)gameObject1, (Object)null)) { gameObject1.get_transform().SetParent(this.ListParent, false); gameObject1.SetActive(true); DataSource.Bind <ArtifactData>(gameObject1, GachaHistoryWindow.CreateArtifactData(history.artifact, history.rarity)); flag = history.isNew; this.mItems.Add(gameObject1); gameObject1.get_transform().SetAsFirstSibling(); } } else if (history.type == GachaDropData.Type.ConceptCard) { gameObject1 = (GameObject)Object.Instantiate <GameObject>((M0)this.ConceptCardIconObj); if (Object.op_Inequality((Object)gameObject1, (Object)null)) { gameObject1.get_transform().SetParent(this.ListParent, false); gameObject1.SetActive(true); ConceptCardData cardDataForDisplay = ConceptCardData.CreateConceptCardDataForDisplay(history.conceptcard.iname); ConceptCardIcon component = (ConceptCardIcon)gameObject1.GetComponent <ConceptCardIcon>(); if (Object.op_Inequality((Object)component, (Object)null)) { component.Setup(cardDataForDisplay); } flag = history.isNew; this.mItems.Add(gameObject1); gameObject1.get_transform().SetAsFirstSibling(); } } if (Object.op_Inequality((Object)gameObject1, (Object)null)) { SerializeValueBehaviour component = (SerializeValueBehaviour)gameObject1.GetComponent <SerializeValueBehaviour>(); if (Object.op_Inequality((Object)component, (Object)null)) { GameObject gameObject2 = component.list.GetGameObject("new"); if (Object.op_Inequality((Object)gameObject2, (Object)null)) { gameObject2.SetActive(flag); } } } } } if (Object.op_Inequality((Object)this.TitleText, (Object)null)) { Text component = (Text)this.TitleText.GetComponent <Text>(); if (Object.op_Inequality((Object)component, (Object)null)) { string str = LocalizedText.Get("sys.TEXT_GACHA_HISTORY_FOOTER", (object)dataOfClass.GetDropAt().ToString("yyyy/MM/dd HH:mm:ss"), (object)dataOfClass.gachaTitle); component.set_text(str); } } GameParameter.UpdateAll(((Component)this).get_gameObject()); } }
private void Start() { if (Object.op_Inequality((Object)MonoSingleton <GameManager> .GetInstanceDirect(), (Object)null)) { this.gm = MonoSingleton <GameManager> .GetInstanceDirect(); } if (Object.op_Inequality((Object)this.Confirm, (Object)null)) { ((Component)this.Confirm).get_gameObject().SetActive(false); } if (Object.op_Inequality((Object)this.FreeCoin, (Object)null)) { ((Component)this.FreeCoin).get_gameObject().SetActive(false); } if (Object.op_Inequality((Object)this.PaidCoin, (Object)null)) { ((Component)this.PaidCoin).get_gameObject().SetActive(false); } if (Object.op_Inequality((Object)this.CurrentAmountCoin, (Object)null)) { ((Component)this.CurrentAmountCoin).get_gameObject().SetActive(false); } if (Object.op_Inequality((Object)this.CurrentAmountTicket, (Object)null)) { ((Component)this.CurrentAmountTicket).get_gameObject().SetActive(false); } if (Object.op_Inequality((Object)this.DecideButton, (Object)null)) { ((Component)this.DecideButton).get_gameObject().SetActive(false); // ISSUE: method pointer ((UnityEvent)this.DecideButton.get_onClick()).AddListener(new UnityAction((object)this, __methodptr(OnClickDecide))); } if (Object.op_Inequality((Object)this.BuyCoinButton, (Object)null)) { ((Component)this.BuyCoinButton).get_gameObject().SetActive(false); // ISSUE: method pointer ((UnityEvent)this.BuyCoinButton.get_onClick()).AddListener(new UnityAction((object)this, __methodptr(OnClickBuyCoin))); } if (Object.op_Inequality((Object)this.CancelButton, (Object)null)) { // ISSUE: method pointer ((UnityEvent)this.CancelButton.get_onClick()).AddListener(new UnityAction((object)this, __methodptr(OnClickCancel))); } if (Object.op_Inequality((Object)this.ConfirmTicket, (Object)null)) { ((Component)this.ConfirmTicket).get_gameObject().SetActive(false); } if (Object.op_Inequality((Object)this.AmountBox, (Object)null)) { this.AmountBox.SetActive(false); } if (Object.op_Inequality((Object)this.AmountTicketBox, (Object)null)) { this.AmountTicketBox.SetActive(false); } if (Object.op_Inequality((Object)this.CautionRedrawText, (Object)null)) { SerializeValueBehaviour component = (SerializeValueBehaviour)this.CautionRedrawText.GetComponent <SerializeValueBehaviour>(); if (Object.op_Inequality((Object)component, (Object)null)) { this.RedrawText = component.list.GetUILabel("text"); } this.CautionRedrawText.SetActive(false); } SerializeValueBehaviour component1 = (SerializeValueBehaviour)((Component)this).GetComponent <SerializeValueBehaviour>(); if (Object.op_Inequality((Object)component1, (Object)null)) { GameObject gameObject1 = component1.list.GetGameObject("default"); GameObject gameObject2 = component1.list.GetGameObject("redraw"); this.m_Default = gameObject1; this.m_Redraw = gameObject2; } this.Refresh(); }
public void Create(string[] keys, Action <GameObject, SerializeValueList> callback) { if (UnityEngine.Object.op_Equality((UnityEngine.Object) this.m_TabNode, (UnityEngine.Object)null)) { Debug.LogException(new Exception("Failed TabNode Null > " + ((UnityEngine.Object)((Component)this).get_gameObject()).get_name())); } else { this.Destroy(); for (int index = 0; index < keys.Length; ++index) { TabMaker.Element element = this.GetElement(keys[index]); if (element == null) { Debug.LogError((object)("Tab素材見つかりません > " + (keys[index] == null ? "null" : keys[index]))); } else { GameObject _node = (GameObject)UnityEngine.Object.Instantiate <GameObject>((M0)((Component)this.m_TabNode).get_gameObject()); SerializeValueBehaviour component = (SerializeValueBehaviour)_node.GetComponent <SerializeValueBehaviour>(); if (UnityEngine.Object.op_Inequality((UnityEngine.Object)component, (UnityEngine.Object)null)) { Image uiImage1 = component.list.GetUIImage("off"); if (UnityEngine.Object.op_Inequality((UnityEngine.Object)uiImage1, (UnityEngine.Object)null)) { if (index == 0 || index == keys.Length - 1) { uiImage1.set_sprite(!UnityEngine.Object.op_Inequality((UnityEngine.Object) this.m_CornerSpriteOff, (UnityEngine.Object)null) ? this.m_SpriteOff : this.m_CornerSpriteOff); if (index == keys.Length - 1) { Vector3 localScale = ((Component)uiImage1).get_transform().get_localScale(); // ISSUE: explicit reference operation // ISSUE: variable of a reference type Vector3& local = @localScale; // ISSUE: explicit reference operation // ISSUE: explicit reference operation (^ local).x = (__Null)((^ local).x * -1.0); ((Component)uiImage1).get_transform().set_localScale(localScale); } } else { uiImage1.set_sprite(this.m_SpriteOff); } } Image uiImage2 = component.list.GetUIImage("on"); if (UnityEngine.Object.op_Inequality((UnityEngine.Object)uiImage2, (UnityEngine.Object)null)) { if (index == 0 || index == keys.Length - 1) { uiImage2.set_sprite(!UnityEngine.Object.op_Inequality((UnityEngine.Object) this.m_CornerSpriteOn, (UnityEngine.Object)null) ? this.m_SpriteOn : this.m_CornerSpriteOn); if (index == keys.Length - 1) { Vector3 localScale = ((Component)uiImage2).get_transform().get_localScale(); // ISSUE: explicit reference operation // ISSUE: variable of a reference type Vector3& local = @localScale; // ISSUE: explicit reference operation // ISSUE: explicit reference operation (^ local).x = (__Null)((^ local).x * -1.0); ((Component)uiImage2).get_transform().set_localScale(localScale); } } else { uiImage2.set_sprite(this.m_SpriteOn); } } Image uiImage3 = component.list.GetUIImage("icon"); if (UnityEngine.Object.op_Inequality((UnityEngine.Object)uiImage3, (UnityEngine.Object)null)) { if (UnityEngine.Object.op_Inequality((UnityEngine.Object)element.icon, (UnityEngine.Object)null)) { uiImage3.set_sprite(element.icon); ((Component)uiImage3).get_gameObject().SetActive(true); } else { ((Component)uiImage3).get_gameObject().SetActive(false); } } Text uiLabel = component.list.GetUILabel("text"); if (UnityEngine.Object.op_Inequality((UnityEngine.Object)uiLabel, (UnityEngine.Object)null)) { if (!string.IsNullOrEmpty(element.text)) { if (element.text.IndexOf("sys.") == -1) { uiLabel.set_text(element.text); } else { uiLabel.set_text(LocalizedText.Get(element.text)); } ((Component)uiLabel).get_gameObject().SetActive(true); } else { ((Component)uiLabel).get_gameObject().SetActive(false); } } component.list.AddObject("element", (object)element); if (callback != null) { callback(_node, component.list); } ((UnityEngine.Object)_node).set_name(element.key); _node.get_transform().SetParent(((Component)this).get_gameObject().get_transform(), false); _node.SetActive(true); this.m_InfoList.Add(new TabMaker.Info(_node, component.list, element)); } } } } }
public void SetupDiscountUI() { if (this.mShopItem == null) { return; } int discount = this.mShopItem.discount; ShopBuyList.DiscountGrade discountGrade = ShopBuyList.DiscountGrade.None; if (discount > 0) { discountGrade = ShopBuyList.DiscountGrade.Low; if (discount >= 40 && discount < 70) { discountGrade = ShopBuyList.DiscountGrade.Middle; } else if (discount >= 70) { discountGrade = ShopBuyList.DiscountGrade.High; } } GameObject gameObject = (GameObject)null; if (Object.op_Inequality((Object)this.discount_low, (Object)null)) { bool flag = discountGrade == ShopBuyList.DiscountGrade.Low; this.discount_low.SetActive(flag); if (flag) { gameObject = this.discount_low; } } if (Object.op_Inequality((Object)this.discount_middle, (Object)null)) { bool flag = discountGrade == ShopBuyList.DiscountGrade.Middle; this.discount_middle.SetActive(flag); if (flag) { gameObject = this.discount_middle; } } if (Object.op_Inequality((Object)this.discount_high, (Object)null)) { bool flag = discountGrade == ShopBuyList.DiscountGrade.High; this.discount_high.SetActive(flag); if (flag) { gameObject = this.discount_high; } } if (!Object.op_Inequality((Object)gameObject, (Object)null)) { return; } SerializeValueBehaviour component = (SerializeValueBehaviour)gameObject.GetComponent <SerializeValueBehaviour>(); if (!Object.op_Inequality((Object)component, (Object)null)) { return; } Text uiLabel = component.list.GetUILabel("text"); if (!Object.op_Inequality((Object)uiLabel, (Object)null)) { return; } uiLabel.set_text(discount.ToString()); }