|
@@ -83,7 +83,7 @@ namespace GFGGame
|
|
|
if (levelNum > 0)
|
|
|
{
|
|
|
//当前数据
|
|
|
- collegegBoostCfg = CollegeBoostCfgArray.Instance.GetCfgBytypePartsAndtypePhaseAndlayer(partIndexCommon, level, levelNum);
|
|
|
+ collegegBoostCfg = CollegeBoostCfgArray.Instance.GetCfgBytypePartsAndtypePhaseAndlayer(_partIndex, level, levelNum);
|
|
|
AddNum = (float)collegegBoostCfg.value / CollectPartDataManager.Instance.AddtitionRatio;
|
|
|
//下一级数据
|
|
|
levelNum = CollectPartDataManager.Instance.CollectPartDataDic[_partIndex][1];
|
|
@@ -110,7 +110,7 @@ namespace GFGGame
|
|
|
nextPartData.LevelNum = levelNum + 1;
|
|
|
status = 1;
|
|
|
}
|
|
|
- collegeBoostNextCfg = CollegeBoostCfgArray.Instance.GetCfgBytypePartsAndtypePhaseAndlayer(partIndexCommon, nextPartData.LevelID, nextPartData.LevelNum);
|
|
|
+ collegeBoostNextCfg = CollegeBoostCfgArray.Instance.GetCfgBytypePartsAndtypePhaseAndlayer(_partIndex, nextPartData.LevelID, nextPartData.LevelNum);
|
|
|
if(collegeBoostNextCfg == null || collegeBoostNextCfg.value == 0)
|
|
|
{
|
|
|
nextPartData.AddNum = 0;
|
|
@@ -129,8 +129,10 @@ namespace GFGGame
|
|
|
string name = CollegeRankCfgArray.Instance.GetCfgByRankPartsIdAndSecondLevelRank(partIndexCommon, level).gradeName;
|
|
|
string partName = CollectPartDataManager.Instance.partNameDic[_partIndex];
|
|
|
_ui.m_desc1Text.text = string.Format("{0}{1}级", name,levelNum);
|
|
|
- _ui.m_desc2Text.text = string.Format("当 前:{0}基础属性+{1}%", partName, AddNum.ToString());
|
|
|
- _ui.m_desc3Text.text = string.Format("下一级:{0}基础属性+{1}%", partName, nextPartData.AddNum);
|
|
|
+ _ui.m_desc2.text = string.Format("当 前:{0}", partName);
|
|
|
+ _ui.m_desc2Text.text = string.Format("基础属性+{0}%", AddNum.ToString());
|
|
|
+ _ui.m_desc3.text = string.Format("下一级:{0}", partName);
|
|
|
+ _ui.m_desc3Text.text = string.Format("基础属性+{0}%", nextPartData.AddNum);
|
|
|
if(status != 3)
|
|
|
{
|
|
|
_ui.m_c2.selectedIndex = collegeBoostNextCfg.consumeArr.Length;
|
|
@@ -141,7 +143,12 @@ namespace GFGGame
|
|
|
int count = collegeBoostNextCfg.consumeArr[i][1];
|
|
|
ItemData itemDate = ItemUtil.createItemData(id, count);
|
|
|
ItemView itemView = new ItemView(item.target);
|
|
|
- itemView.SetData(itemDate);
|
|
|
+ itemView.SetData(itemDate);
|
|
|
+ if(item.target.data == null)
|
|
|
+ {
|
|
|
+ item.target.onClick.Add(OnClickListDressUpItem);
|
|
|
+ }
|
|
|
+ item.target.data = id;
|
|
|
UI_ComItem000.ProxyEnd();
|
|
|
}
|
|
|
}
|
|
@@ -151,7 +158,7 @@ namespace GFGGame
|
|
|
if (_partIndex != 99)
|
|
|
{
|
|
|
maxRank = CollectPartDataManager.Instance.MaxNormalRank;
|
|
|
- partIndexCommon = _partIndex;
|
|
|
+ partIndexCommon = 0;
|
|
|
}
|
|
|
else
|
|
|
{
|
|
@@ -164,20 +171,21 @@ namespace GFGGame
|
|
|
itemList.Add(item);
|
|
|
}
|
|
|
}
|
|
|
+ private void OnClickListDressUpItem(EventContext eventContext)
|
|
|
+ {
|
|
|
+ int id = (int)(eventContext.sender as GObject).data;
|
|
|
+
|
|
|
+ object[] goBackDatas = ViewManager.GetGoBackDatas(typeof(ClothingUpgradeView).Name);
|
|
|
+ object[] sourceDatas = new object[] { id, goBackDatas, 1 };
|
|
|
+ GoodsItemTipsController.ShowItemTips(id, sourceDatas);
|
|
|
+ }
|
|
|
private async void OnClickUpgrade()
|
|
|
{
|
|
|
var result = await CollegeSProxy.ReqCollectUpgrade(nextPartData.PartID, nextPartData.LevelID,nextPartData.LevelNum);
|
|
|
}
|
|
|
private void LevelUpSuccessTip()
|
|
|
{
|
|
|
- string exitTip = "恭喜!升级成功!";
|
|
|
- AlertUI.Show(exitTip)
|
|
|
- .SetLeftButton(false, "取消", (object data) =>
|
|
|
- {
|
|
|
- })
|
|
|
- .SetRightButton(true, "确定", (object data) =>
|
|
|
- {
|
|
|
- });
|
|
|
+ PromptController.Instance.ShowFloatTextPrompt("升级成功!");
|
|
|
}
|
|
|
private void OnClickLevelUp()
|
|
|
{
|