private IEnumerator ReloadModelByLocalEquipSetCoroutine() { while (UIModelRenderTexture.Get(FindCtrl(transRoot, UI.TEX_MODEL)).IsLoadingPlayer()) { yield return((object)null); } ReloadPlayerModelByLocalEquipSet(); }
protected IEnumerator ReloadModelCoroutine() { while (UIModelRenderTexture.Get(FindCtrl(transRoot, UI.TEX_MODEL)).IsLoadingPlayer()) { yield return((object)null); } ReloadModel(); }
public override void Initialize() { //IL_0272: Unknown result type (might be due to invalid IL or missing references) base.Initialize(); texModel_ = Utility.Find(base._transform, "TEX_MODEL"); texModelRenderTexture_ = UIModelRenderTexture.Get(texModel_); texModelTexture_ = texModel_.GetComponent <UITexture>(); texInnerModel_ = Utility.Find(base._transform, "TEX_INNER_MODEL"); texInnerModelRenderTexture_ = UIModelRenderTexture.Get(texInnerModel_); texInnerModelTexture_ = texInnerModel_.GetComponent <UITexture>(); glowModel_ = Utility.Find(base._transform, "LIB_00000003"); LoginBonus loginBonus = (LoginBonus)GameSection.GetEventData(); if (loginBonus != null) { SetLabelText((Enum)UI.LBL_LOGIN_DAYS, loginBonus.name); if (loginBonus.reward.Count > 0) { reward = loginBonus.reward[0]; SetLabelText((Enum)UI.LBL_GET_ITEM, reward.name); if (reward.type == 5) { uint itemId = (uint)reward.itemId; texModelRenderTexture_.InitSkillItem(texModelTexture_, itemId, true, false, 45f); texInnerModelRenderTexture_.InitSkillItemSymbol(texInnerModelTexture_, itemId, true, 17f); isModel = true; } else if (reward.type == 4) { SetRenderEquipModel((Enum)UI.TEX_MODEL, (uint)reward.itemId, -1, -1, reward.GetScale()); texModelTexture_.width = 300; texModelTexture_.height = 300; isModel = true; } else if (reward.type == 1 || reward.type == 2) { uint itemModelID = GetItemModelID((REWARD_TYPE)reward.type, reward.itemId); texModelRenderTexture_.InitItem(texModelTexture_, itemModelID, true); isModel = true; } else if (reward.type == 3 && IsDispItem3D(reward.itemId)) { uint itemModelID2 = GetItemModelID((REWARD_TYPE)reward.type, reward.itemId); texModelRenderTexture_.InitItem(texModelTexture_, itemModelID2, true); isModel = true; } if (!isModel) { this.StartCoroutine("LoadIcon"); } float rotateSpeed = 35f; texModelRenderTexture_.SetRotateSpeed(rotateSpeed); texInnerModelRenderTexture_.SetRotateSpeed(rotateSpeed); } } }
public override void Initialize() { object[] array = GameSection.GetEventData() as object[]; deliveryData = (array[0] as DeliveryTable.DeliveryData); eventData = (array[1] as Network.EventData); base.Initialize(); texModel_ = Utility.Find(base._transform, "TEX_MODEL"); texModelRenderTexture_ = UIModelRenderTexture.Get(texModel_); texModelTexture_ = texModel_.GetComponent <UITexture>(); texInnerModel_ = Utility.Find(base._transform, "TEX_INNER_MODEL"); texInnerModelRenderTexture_ = UIModelRenderTexture.Get(texInnerModel_); texInnerModelTexture_ = texInnerModel_.GetComponent <UITexture>(); glowModel_ = Utility.Find(base._transform, "LIB_00000003"); SetLabelText((Enum)UI.LBL_TITLE, eventData.name); }
public override void Initialize() { //IL_00c8: Unknown result type (might be due to invalid IL or missing references) //IL_00d9: Unknown result type (might be due to invalid IL or missing references) //IL_00eb: Unknown result type (might be due to invalid IL or missing references) glowModel_ = Utility.Find(base._transform, "LIB_00000003"); texModel_ = Utility.Find(base._transform, "TEX_MODEL"); texModelRenderTexture_ = UIModelRenderTexture.Get(texModel_); texModelTexture_ = texModel_.GetComponent <UITexture>(); texInnerModel_ = Utility.Find(base._transform, "TEX_INNER_MODEL"); texInnerModelRenderTexture_ = UIModelRenderTexture.Get(texInnerModel_); texInnerModelTexture_ = texInnerModel_.GetComponent <UITexture>(); info = SetPrefab(GetCtrl(UI.SPR_FRAME), "LimitedLoginBonusInfo", true); infoDetail = SetPrefab(GetCtrl(UI.SPR_FRAME), "LimitedLoginBonusInfoDetail", true); info.get_gameObject().SetActive(false); infoDetail.get_gameObject().SetActive(false); this.StartCoroutine(DoInitialize()); }
public override void Initialize() { base.Initialize(); MonoBehaviourSingleton <AccountManager> .I.DisplayLogInBonusSection(); texModel_ = Utility.Find(base._transform, "TEX_MODEL"); texModelRenderTexture_ = UIModelRenderTexture.Get(texModel_); texModelTexture_ = texModel_.GetComponent <UITexture>(); texInnerModel_ = Utility.Find(base._transform, "TEX_INNER_MODEL"); texInnerModelRenderTexture_ = UIModelRenderTexture.Get(texInnerModel_); texInnerModelTexture_ = texInnerModel_.GetComponent <UITexture>(); glowModel_ = Utility.Find(base._transform, "LIB_00000003"); LoginBonus loginBonus = MonoBehaviourSingleton <AccountManager> .I.logInBonus.Find((LoginBonus obj) => obj.type == 0); if (loginBonus != null) { MonoBehaviourSingleton <AccountManager> .I.logInBonus.Remove(loginBonus); SetLabelText((Enum)UI.LBL_LOGIN_DAYS, loginBonus.total.ToString()); if (loginBonus.reward.Count > 0) { LoginBonus.LoginBonusReward loginBonusReward = loginBonus.reward[0]; SetLabelText((Enum)UI.LBL_GET_ITEM, loginBonusReward.name); float rotateSpeed = 35f; if (loginBonusReward.type == 5) { uint itemId = (uint)loginBonusReward.itemId; texModelRenderTexture_.InitSkillItem(texModelTexture_, itemId, true, false, 45f); texInnerModelRenderTexture_.InitSkillItemSymbol(texInnerModelTexture_, itemId, true, 17f); } else { uint itemModelID = GetItemModelID((REWARD_TYPE)loginBonusReward.type, loginBonusReward.itemId); texModelRenderTexture_.InitItem(texModelTexture_, itemModelID, true); } texModelRenderTexture_.SetRotateSpeed(rotateSpeed); texInnerModelRenderTexture_.SetRotateSpeed(rotateSpeed); } } }