Merge branch 'master' of http://192.168.0.87:10010/r/snxxz_scripts
| | |
| | | }
|
| | | if (!fairyFeastPlayers.Contains(fairyMember.PlayerID))
|
| | | {
|
| | | SysNotifyMgr.Instance.ShowTip("FairyFeastPlayerFarfrom");
|
| | | SysNotifyMgr.Instance.ShowTip("PartySitFail");
|
| | | return;
|
| | | }
|
| | | transmitPlayer = fairyMember.PlayerID;
|
| | |
| | | if(star == curStar
|
| | | && curStar < maxStar)
|
| | | {
|
| | | titleText.text = StringUtility.Contact("当前效果(该件时装最多可升至",maxStar,"星)");
|
| | | titleText.text = Language.Get("FashionDress101",maxStar);
|
| | | }
|
| | | else if(star == curStar
|
| | | && curStar >= maxStar)
|
| | | {
|
| | | titleText.text = StringUtility.Contact("已升至最高级");
|
| | | titleText.text = Language.Get("FashionDress105");
|
| | | }
|
| | | else
|
| | | {
|
| | | titleText.text = StringUtility.Contact(star,"星效果");
|
| | | titleText.text = Language.Get("FashionDress102",star);
|
| | | }
|
| | |
|
| | | if (star == curStar)
|
| | | {
|
| | | starDesText.text = StringUtility.Contact("升至",star, "星时获得属性(已获得)");
|
| | | starDesText.text = Language.Get("FashionDress103",star);
|
| | | }
|
| | | else
|
| | | {
|
| | | starDesText.text = StringUtility.Contact("升至", star, "星时获得属性");
|
| | | starDesText.text = Language.Get("FashionDress104",star);
|
| | | }
|
| | |
|
| | | Dictionary<int, int> attrDict = null;
|
| | |
| | | public void Display()
|
| | | {
|
| | | model.selectQualityRefresh += SelectQualityRefresh;
|
| | | model.selectTypeRefresh += SelectTypeRefresh;
|
| | | RedpointCenter.Instance.redpointValueChangeEvent += RedpointValueChangeEvent;
|
| | | DisplaySelect();
|
| | | DisplayRedpoint();
|
| | |
| | | public void Dispose()
|
| | | {
|
| | | model.selectQualityRefresh -= SelectQualityRefresh;
|
| | | model.selectTypeRefresh -= SelectTypeRefresh;
|
| | | RedpointCenter.Instance.redpointValueChangeEvent -= RedpointValueChangeEvent;
|
| | | }
|
| | |
|
| | |
| | | DisplaySelect();
|
| | | }
|
| | |
|
| | | private void SelectTypeRefresh()
|
| | | {
|
| | | DisplayRedpoint();
|
| | | }
|
| | |
|
| | | private void OnSelect()
|
| | | {
|
| | | model.selectQuality = m_Quality;
|
| | |
| | | {
|
| | | wardrobeLevelSB = UIHelper.AppendStringColor(TextColType.Red, wardrobeLevel.ToString());
|
| | | }
|
| | | wardrobeLvText.text = StringUtility.Contact(wardrobeLevelSB, "级");
|
| | | wardrobeLvText.text = Language.Get("FashionDress106",wardrobeLevelSB);
|
| | | Dictionary<int, int> attrDict = null;
|
| | | fashionModel.TryGetCabinetProperty(fashionModel.cabinetLevel, out attrDict);
|
| | | if (attrDict != null && attrDict.Count > 0)
|
| | |
| | | private void UpdateCabinetLv()
|
| | | {
|
| | | int wardrobeLv = model.cabinetLevel;
|
| | | wardrobeLvText.text = StringUtility.Contact(wardrobeLv, "级");
|
| | | wardrobeLvText.text = Language.Get("FashionDress106",wardrobeLv);
|
| | | int curWardrobeExp = model.cabinetExp;
|
| | | bool isCabinetMax = wardrobeLv >= model.cabinetMaxLevel ? true : false;
|
| | | int upgradeLv = isCabinetMax ? model.cabinetMaxLevel : wardrobeLv + 1;
|
| | |
| | | int upgradeWardrobeExp = cabinetConfig.NeedExp;
|
| | | if (isCabinetMax)
|
| | | {
|
| | | upgradeExpText.text = StringUtility.Contact("(已升至最高等级)");
|
| | | upgradeExpText.text = StringUtility.Contact("(", Language.Get("FashionDress105"),")");
|
| | | }
|
| | | else
|
| | | {
|
| | |
| | | int getDecomposeExp = FashionDecomposeModel.Instance.GetSumDecomposeExp();
|
| | | if(getDecomposeExp <= 0)
|
| | | {
|
| | | SysNotifyMgr.Instance.ShowTip("FashionDecomposeRemind");
|
| | | return;
|
| | | }
|
| | | FashionDecomposeModel.Instance.SendDecomposeFashion();
|