| | |
| | | |
| | | var equipSet = equipModel.GetEquipSet(level); |
| | | var realmConfig = RealmConfig.Get(equipSet.realm); |
| | | m_Title.text = realmConfig.Name; |
| | | m_Title.text = realmConfig.NameEx; |
| | | |
| | | selectBtn.SetListener(Select); |
| | | m_SelectImg.SetActiveIL(EquipEvolveModel.Instance.selectLevelType == this.level); |
| | |
| | | private void DisplayBaseInfo() |
| | | { |
| | | var realmConfig = RealmConfig.Get(this.equipSet.realm); |
| | | m_LevelName.text = Language.Get("RealmEquipName", realmConfig.Name); |
| | | m_LevelName.text = Language.Get("RealmEquipName", realmConfig.NameEx); |
| | | var unLocked = equipSet.unLocked; |
| | | m_LockContainer.SetActive(!unLocked); |
| | | m_Redpoint.redpointId = this.equipSet.redpoint.id; |
| | |
| | | else |
| | | { |
| | | var config = RealmConfig.Get(this.equipSet.realm); |
| | | SysNotifyMgr.Instance.ShowTip("RealmEquipNoEnough", config.Name, Language.Get("RealmEquipName", config.Name)); |
| | | SysNotifyMgr.Instance.ShowTip("RealmEquipNoEnough", config.Name, Language.Get("RealmEquipName", config.NameEx)); |
| | | } |
| | | } |
| | | |
| | |
| | | if (equipSet != null) |
| | | { |
| | | var config = RealmConfig.Get(equipSet.realm); |
| | | SysNotifyMgr.Instance.ShowTip("WearRealmEquip1", config.Name); |
| | | SysNotifyMgr.Instance.ShowTip("WearRealmEquip1", config.NameEx); |
| | | } |
| | | } |
| | | break; |
| | |
| | | if (realmConfig != null) |
| | | { |
| | | //m_EquipHeadName.text = realmConfig.Name; |
| | | m_EquipHeadName.text = StringUtility.Contact("<color=#", isSelect ? "ffffff" : "c6b595", ">", realmConfig.Name, "</color>"); |
| | | m_EquipHeadName.text = StringUtility.Contact("<color=#", isSelect ? "ffffff" : "c6b595", ">", realmConfig.NameEx, "</color>"); |
| | | } |
| | | } |
| | | |
| | |
| | | var equipSet = model.GetEquipSet(suitActive.level); |
| | | var config = RealmConfig.Get(equipSet.realm); |
| | | ConfirmCancel.ShowPopConfirm(Language.Get("Mail101"), |
| | | Language.Get("WearRealmEquip", config.Name, config.Name), |
| | | Language.Get("WearRealmEquip", config.NameEx, config.NameEx), |
| | | (bool ok) => { if (ok) { model.SetAppearance(suitActive.level); } } |
| | | ); |
| | | } |
| | |
| | | var realmConfig = RealmConfig.Get(equipSet.realm);
|
| | | if (realmConfig != null)
|
| | | {
|
| | | m_EquipHeadName.text = Language.Get("RealmEquipName", realmConfig.Name);
|
| | | m_EquipHeadName.text = Language.Get("RealmEquipName", realmConfig.NameEx);
|
| | | }
|
| | | }
|
| | |
|
| | |
| | | var realmConfig = RealmConfig.Get(equipSet.realm); |
| | | if (realmConfig != null) |
| | | { |
| | | attrText = realmConfig.Name + attrText; |
| | | attrText = realmConfig.NameEx + attrText; |
| | | } |
| | | } |
| | | m_TextConent.text = attrText; |
| | |
| | | |
| | | var equipSet = equipModel.GetEquipSet(level); |
| | | var realmConfig = RealmConfig.Get(equipSet.realm); |
| | | this.m_Title.text = realmConfig.Name; |
| | | this.m_Title.text = realmConfig.NameEx; |
| | | |
| | | m_Select.SetListener(Select); |
| | | } |
| | |
| | | { |
| | | var equipSet = equipModel.GetEquipSet(level); |
| | | var realmConfig = RealmConfig.Get(equipSet.realm); |
| | | this.m_Title.text = realmConfig.Name; |
| | | this.m_Title.text = realmConfig.NameEx; |
| | | |
| | | this.level = level; |
| | | this.m_Redpoint.redpointId = 91 * 10000 + level * 100; |
| | |
| | |
|
| | | private void DisplayFunctionUnLock(int _functionId)
|
| | | {
|
| | | |
| | |
|
| | |
|
| | | m_NewFunction.SetActive(true);
|
| | | m_NewBieGuide.SetActive(false);
|
| | |
|
| | |
| | |
|
| | | IEnumerator Co_FunctionUnLockDelay(FunctionUnlockFlyObject _flyObject)
|
| | | {
|
| | | yield return WaitingForSecondConst.WaitMS2000;
|
| | | yield return WaitingForSecondConst.WaitMS500;
|
| | |
|
| | | m_ContainerFunctionBg.SetActive(false);
|
| | | m_NewBieGuide.SetActive(false);
|
| | |
| | | this.level = (int)_data; |
| | | |
| | | var realm = EquipControlConfig.Get(this.level, 1).realm; |
| | | this.m_Title.text = RealmConfig.Get(realm).Name; |
| | | this.m_Title.text = RealmConfig.Get(realm).NameEx; |
| | | model.selectedLevelChangeEvent += OnSelected; |
| | | |
| | | DisplayBackGround(model.selectedLevel == this.level); |
| | |
| | |
|
| | | Vector3 originalPosition = Vector3.zero;
|
| | | float originalScale = 2f;
|
| | | float speed =6f;
|
| | | float speed = 6f;
|
| | | float durationLimit = 10f;
|
| | | float timer = 0f;
|
| | |
|
| | |
| | |
|
| | | public void SetContent(FunctionUnlockType _type, int _id)
|
| | | {
|
| | | SetSpeed(6f);
|
| | | SetSpeed(10f);
|
| | |
|
| | | m_UnLockType = _type;
|
| | | m_Id = _id;
|
| | |
| | | instance.transform.SetParentEx(m_ContainerFly, Vector3.zero, Quaternion.identity, Vector3.one);
|
| | | flyObject = instance.GetComponent<FunctionUnlockFlyObject>();
|
| | | flyObject.SetContent(FunctionUnlockType.TreasureChapter, model.treasureChapterId);
|
| | | flyObject.SetSpeed(6f);
|
| | | flyObject.SetSpeed(10f);
|
| | | flyObject.SetActive(true);
|
| | |
|
| | | var config = TreasureConfig.Get(model.treasureChapterId);
|
| | |
| | |
|
| | | private void OnClickClose()
|
| | | {
|
| | | if (timer < 2f || flying)
|
| | | if (timer < 1f || flying)
|
| | | {
|
| | | return;
|
| | | }
|