|
@@ -1,6 +1,9 @@
|
|
|
using System.Collections.Generic;
|
|
|
+using System.Linq;
|
|
|
using Core.Language;
|
|
|
+using Excel2Json;
|
|
|
using Fort23.Core;
|
|
|
+using Fort23.UTool;
|
|
|
using GameLogic.Hero;
|
|
|
using OfficeOpenXml.FormulaParsing.Excel.Functions.Logical;
|
|
|
using Utility;
|
|
@@ -10,6 +13,21 @@ namespace Fort23.Mono
|
|
|
[UIBinding(prefab = "SelectFaBaoPanel")]
|
|
|
public partial class SelectFaBaoPanel : UIPanel
|
|
|
{
|
|
|
+ List<FaBaoSkillWidget> faBaoSkillWidgets = new List<FaBaoSkillWidget>();
|
|
|
+ List<FaBaoAttributeWidget> faBaoAttributeWidgets = new List<FaBaoAttributeWidget>();
|
|
|
+ List<ItemWidgetType1> itemWidgetType1s = new List<ItemWidgetType1>();
|
|
|
+
|
|
|
+ List<FaBaoWidget> faBaoWidgets = new List<FaBaoWidget>();
|
|
|
+
|
|
|
+ FaBaoWidget currentFaBaoWidget = null;
|
|
|
+ FaBaoInfo currentFaBaoInfo;
|
|
|
+ FaBaoInfo selectedFaBaoInfo;
|
|
|
+ int selectIndex;
|
|
|
+ private bool isUpGrade = false;
|
|
|
+
|
|
|
+ private List<FaBaoInfo> shownFaBaoInfos;
|
|
|
+
|
|
|
+
|
|
|
private void Init()
|
|
|
{
|
|
|
}
|
|
@@ -28,17 +46,40 @@ namespace Fort23.Mono
|
|
|
|
|
|
Btn_Change.onClick.AddListener(() =>
|
|
|
{
|
|
|
+ if (selectedFaBaoInfo.FaBaoData.useIndex != -1)
|
|
|
+ {
|
|
|
+ TipMessagePanel.OpenTipMessagePanel("当前法宝已经被装备");
|
|
|
+ return;
|
|
|
+ }
|
|
|
+
|
|
|
PlayerManager.Instance.FaBaoControl.ChangeUseFaBao(selectIndex, selectedFaBaoInfo);
|
|
|
currentFaBaoInfo = selectedFaBaoInfo;
|
|
|
selectedFaBaoInfo = null;
|
|
|
CustomInit(selectIndex);
|
|
|
+ UpdateBjUI(false);
|
|
|
});
|
|
|
|
|
|
Btn_UpGrade.onClick.AddListener(() =>
|
|
|
{
|
|
|
if (selectedFaBaoInfo != null)
|
|
|
{
|
|
|
+ if (selectedFaBaoInfo.FabaoPowerupConfig.ID >= ConfigComponent.Instance.GetAll<FabaoPowerupConfig>().Length)
|
|
|
+ {
|
|
|
+ TipMessagePanel.OpenTipMessagePanel("已经满级");
|
|
|
+ return;
|
|
|
+ }
|
|
|
+
|
|
|
+ // for (var i = 0; i < selectedFaBaoInfo.FabaoPowerupConfig.PowerupItemIDs.Length; i++)
|
|
|
+ // {
|
|
|
+ // if (!PlayerManager.Instance.BagController.IsEnough(selectedFaBaoInfo.FabaoPowerupConfig.PowerupItemIDs[i], selectedFaBaoInfo.FabaoPowerupConfig.PowerupItemCosts[i]))
|
|
|
+ // {
|
|
|
+ // TipMessagePanel.OpenTipMessagePanel("道具不足");
|
|
|
+ // return;
|
|
|
+ // }
|
|
|
+ //
|
|
|
+ // }
|
|
|
selectedFaBaoInfo.UpGrade();
|
|
|
+ UpdateCurrentFaBaoWidget();
|
|
|
UpadaFabaoBag();
|
|
|
UpdateUI(selectedFaBaoInfo);
|
|
|
UpdataGradeUI(true);
|
|
@@ -47,26 +88,22 @@ namespace Fort23.Mono
|
|
|
|
|
|
Btn_PeiYang.onClick.AddListener(() =>
|
|
|
{
|
|
|
+ isUpGrade = true;
|
|
|
BtnUpGradeRoot.SetActive(true);
|
|
|
BtnChangeRoot.SetActive(false);
|
|
|
UpdataGradeUI(true);
|
|
|
+ UpdateBjUI(false);
|
|
|
});
|
|
|
Btn_Cancel.onClick.AddListener(() =>
|
|
|
{
|
|
|
+ isUpGrade = false;
|
|
|
BtnUpGradeRoot.SetActive(false);
|
|
|
BtnChangeRoot.SetActive(true);
|
|
|
UpdataGradeUI(false);
|
|
|
+ UpdateBjUI(true);
|
|
|
});
|
|
|
}
|
|
|
|
|
|
- List<FaBaoAttributeWidget> faBaoAttributeWidgets = new List<FaBaoAttributeWidget>();
|
|
|
-
|
|
|
- List<FaBaoWidget> faBaoWidgets = new List<FaBaoWidget>();
|
|
|
-
|
|
|
- FaBaoWidget currentFaBaoWidget = null;
|
|
|
- FaBaoInfo currentFaBaoInfo;
|
|
|
- FaBaoInfo selectedFaBaoInfo;
|
|
|
- int selectIndex;
|
|
|
|
|
|
public async override CTask<bool> AsyncInit(object[] uiData)
|
|
|
{
|
|
@@ -104,6 +141,68 @@ namespace Fort23.Mono
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+ private void UpdateBjUI(bool isBj)
|
|
|
+ {
|
|
|
+ if (isBj)
|
|
|
+ {
|
|
|
+ if (currentFaBaoInfo != selectedFaBaoInfo && selectedFaBaoInfo != null)
|
|
|
+ {
|
|
|
+ if (currentFaBaoInfo == null || selectedFaBaoInfo.FabaoPowerupConfig.ID > currentFaBaoInfo.FabaoPowerupConfig.ID)
|
|
|
+ {
|
|
|
+ Icon_LvBj.gameObject.SetActive(true);
|
|
|
+ Icon_LvBj.icon_name = "icon_tisheng";
|
|
|
+ }
|
|
|
+ else if (selectedFaBaoInfo.FabaoPowerupConfig.ID < currentFaBaoInfo.FabaoPowerupConfig.ID)
|
|
|
+ {
|
|
|
+ Icon_LvBj.gameObject.SetActive(true);
|
|
|
+ Icon_LvBj.icon_name = "icon_xiajiang";
|
|
|
+ }
|
|
|
+ else
|
|
|
+ {
|
|
|
+ Icon_LvBj.gameObject.SetActive(false);
|
|
|
+ }
|
|
|
+
|
|
|
+ if (currentFaBaoInfo == null || selectedFaBaoInfo.qiangDu > currentFaBaoInfo.qiangDu)
|
|
|
+ {
|
|
|
+ Icon_PowrBj.gameObject.SetActive(true);
|
|
|
+ Icon_PowrBj.icon_name = "icon_tisheng";
|
|
|
+ }
|
|
|
+ else if (selectedFaBaoInfo.qiangDu < currentFaBaoInfo.qiangDu)
|
|
|
+ {
|
|
|
+ Icon_PowrBj.gameObject.SetActive(true);
|
|
|
+ Icon_PowrBj.icon_name = "icon_xiajiang";
|
|
|
+ }
|
|
|
+ else
|
|
|
+ {
|
|
|
+ Icon_PowrBj.gameObject.SetActive(false);
|
|
|
+ }
|
|
|
+
|
|
|
+ foreach (var faBaoAttributeWidget in faBaoAttributeWidgets)
|
|
|
+ {
|
|
|
+ faBaoAttributeWidget.StartBj(currentFaBaoInfo);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ else
|
|
|
+ {
|
|
|
+ Icon_LvBj.gameObject.SetActive(false);
|
|
|
+ Icon_PowrBj.gameObject.SetActive(false);
|
|
|
+ foreach (var faBaoAttributeWidget in faBaoAttributeWidgets)
|
|
|
+ {
|
|
|
+ faBaoAttributeWidget.EndBj();
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ else
|
|
|
+ {
|
|
|
+ Icon_LvBj.gameObject.SetActive(false);
|
|
|
+ Icon_PowrBj.gameObject.SetActive(false);
|
|
|
+ foreach (var faBaoAttributeWidget in faBaoAttributeWidgets)
|
|
|
+ {
|
|
|
+ faBaoAttributeWidget.EndBj();
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
private async CTask UpadaFabaoBag()
|
|
|
{
|
|
|
foreach (var faBaoAttributeWidget in faBaoWidgets)
|
|
@@ -113,17 +212,34 @@ namespace Fort23.Mono
|
|
|
|
|
|
faBaoWidgets.Clear();
|
|
|
|
|
|
- if (PlayerManager.Instance.FaBaoControl.myAllFaBao.Count > 0)
|
|
|
+ shownFaBaoInfos = PlayerManager.Instance.FaBaoControl.myAllFaBao.ToList();
|
|
|
+
|
|
|
+ shownFaBaoInfos.Sort((l, r) =>
|
|
|
{
|
|
|
- for (var i = 0; i < PlayerManager.Instance.FaBaoControl.myAllFaBao.Count; i++)
|
|
|
+ if (l.FaBaoData.useIndex == -1 && r.FaBaoData.useIndex > -1)
|
|
|
+ {
|
|
|
+ return -1;
|
|
|
+ }
|
|
|
+
|
|
|
+ if (l.FaBaoData.useIndex > -1 && r.FaBaoData.useIndex == 1)
|
|
|
{
|
|
|
- if (PlayerManager.Instance.FaBaoControl.myAllFaBao[i] == currentFaBaoInfo)
|
|
|
+ return 1;
|
|
|
+ }
|
|
|
+
|
|
|
+ return r.FabaoPowerupConfig.ID.CompareTo(l.FabaoPowerupConfig.ID);
|
|
|
+ });
|
|
|
+
|
|
|
+ if (shownFaBaoInfos.Count > 0)
|
|
|
+ {
|
|
|
+ for (var i = 0; i < shownFaBaoInfos.Count; i++)
|
|
|
+ {
|
|
|
+ if (shownFaBaoInfos[i] == currentFaBaoInfo)
|
|
|
{
|
|
|
continue;
|
|
|
}
|
|
|
|
|
|
FaBaoWidget faBaoWidget = await UIManager.Instance.CreateGComponent<FaBaoWidget>(null, Content);
|
|
|
- faBaoWidget.CustomInit(PlayerManager.Instance.FaBaoControl.myAllFaBao[i]);
|
|
|
+ faBaoWidget.CustomInit(shownFaBaoInfos[i], true);
|
|
|
faBaoWidget.onClick = OnClick;
|
|
|
faBaoWidgets.Add(faBaoWidget);
|
|
|
}
|
|
@@ -136,14 +252,19 @@ namespace Fort23.Mono
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- private void OnClick(ItemWidgetBasic obj)
|
|
|
+ private async void OnClick(ItemWidgetBasic obj)
|
|
|
{
|
|
|
FaBaoWidget faBao = obj as FaBaoWidget;
|
|
|
selectedFaBaoInfo = faBao.faoInfo;
|
|
|
Btn_Change.gameObject.SetActive(true);
|
|
|
- UpdateFaBaoUI(selectedFaBaoInfo);
|
|
|
+ Btn_PeiYang.gameObject.SetActive(true);
|
|
|
+ await UpdateUI(selectedFaBaoInfo);
|
|
|
FaBaoInfoRoot.SetActive(true);
|
|
|
Text_NoFabaoTips.gameObject.gameObject.SetActive(false);
|
|
|
+ if (!isUpGrade)
|
|
|
+ {
|
|
|
+ UpdateBjUI(true);
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
public async void CustomInit(int selectIndex)
|
|
@@ -154,77 +275,185 @@ namespace Fort23.Mono
|
|
|
BtnChangeRoot.SetActive(true);
|
|
|
currentFaBaoInfo = PlayerManager.Instance.FaBaoControl.FightFaBao[selectIndex];
|
|
|
selectedFaBaoInfo = currentFaBaoInfo;
|
|
|
+ UpdateCurrentFaBaoWidget();
|
|
|
UpdateUI(selectedFaBaoInfo);
|
|
|
UpadaFabaoBag();
|
|
|
}
|
|
|
|
|
|
- private async void UpdateUI(FaBaoInfo faBaoInfo)
|
|
|
+ private async CTask UpdateCurrentFaBaoWidget()
|
|
|
{
|
|
|
- if (faBaoInfo != null)
|
|
|
+ if (currentFaBaoInfo != null)
|
|
|
{
|
|
|
if (currentFaBaoWidget == null)
|
|
|
currentFaBaoWidget = await UIManager.Instance.CreateGComponent<FaBaoWidget>(null, CurrentFaBaoRoot);
|
|
|
|
|
|
currentFaBaoWidget.onClick = OnClick;
|
|
|
- currentFaBaoWidget.CustomInit(faBaoInfo);
|
|
|
- UpdateFaBaoUI(faBaoInfo);
|
|
|
+ currentFaBaoWidget.CustomInit(currentFaBaoInfo, false);
|
|
|
+ equipTipsRoot.gameObject.SetActive(true);
|
|
|
+ }
|
|
|
+ else
|
|
|
+ {
|
|
|
+ UIManager.Instance.DormancyGComponent(currentFaBaoWidget);
|
|
|
+ equipTipsRoot.gameObject.SetActive(false);
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ private async CTask UpdateUI(FaBaoInfo faBaoInfo)
|
|
|
+ {
|
|
|
+ if (faBaoInfo != null)
|
|
|
+ {
|
|
|
FaBaoInfoRoot.SetActive(true);
|
|
|
Text_NoFabaoTips.gameObject.gameObject.SetActive(false);
|
|
|
-
|
|
|
- equipTipsRoot.gameObject.SetActive(true);
|
|
|
+
|
|
|
+ if (faBaoInfo.FaBaoData.useIndex != -1)
|
|
|
+ {
|
|
|
+ Btn_Change.transform.Gray(true);
|
|
|
+ }
|
|
|
+ else
|
|
|
+ {
|
|
|
+ Btn_Change.transform.RecoverColor();
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
Btn_PeiYang.gameObject.SetActive(true);
|
|
|
Btn_Change.gameObject.SetActive(true);
|
|
|
+ await UpdateFaBaoUI(faBaoInfo);
|
|
|
}
|
|
|
else
|
|
|
{
|
|
|
FaBaoInfoRoot.SetActive(false);
|
|
|
Text_NoFabaoTips.gameObject.gameObject.SetActive(true);
|
|
|
- Btn_PeiYang.gameObject.SetActive(false);
|
|
|
- equipTipsRoot.gameObject.SetActive(false);
|
|
|
+
|
|
|
Btn_Change.gameObject.SetActive(false);
|
|
|
+ Btn_PeiYang.gameObject.SetActive(false);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- private async void UpdateFaBaoUI(FaBaoInfo faBaoInfo)
|
|
|
+ private async CTask UpdateFaBaoUI(FaBaoInfo faBaoInfo)
|
|
|
{
|
|
|
- foreach (var faBaoAttributeWidget in faBaoAttributeWidgets)
|
|
|
+ using (CTaskAwaitBuffer cts = new CTaskAwaitBuffer())
|
|
|
{
|
|
|
- UIManager.Instance.DormancyGComponent(faBaoAttributeWidget);
|
|
|
+ Text_FaBaoName.text = LanguageManager.Instance.Text(faBaoInfo.FabaoConfig.name) + " Lv." +
|
|
|
+ faBaoInfo.FabaoPowerupConfig.ID;
|
|
|
+ Text_Power.text = $"强度:{faBaoInfo.qiangDu}";
|
|
|
+ Text_Desc.text = UtilTools.GetString(LanguageManager.Instance.Text(faBaoInfo.SkillConfig.dec),
|
|
|
+ faBaoInfo.effectValue);
|
|
|
+
|
|
|
+
|
|
|
+ if (faBaoInfo.FabaoPowerupConfig.ID >= ConfigComponent.Instance.GetAll<FabaoPowerupConfig>().Length)
|
|
|
+ {
|
|
|
+ Text_UpGrade.gameObject.SetActive(false);
|
|
|
+ ItemRoot.gameObject.SetActive(false);
|
|
|
+ Text_ManTips.gameObject.SetActive(true);
|
|
|
+ }
|
|
|
+ else
|
|
|
+ {
|
|
|
+ AccountFileInfo.FaBaoData _faBaoData = new AccountFileInfo.FaBaoData();
|
|
|
+ _faBaoData.id = faBaoInfo.FaBaoData.id;
|
|
|
+ _faBaoData.level = faBaoInfo.FabaoPowerupConfig.ID + 1;
|
|
|
+ FaBaoInfo _nextFaBaoInfo = new FaBaoInfo(_faBaoData);
|
|
|
+
|
|
|
+ cts.AddTask(CreatItemWidgetType1(faBaoInfo));
|
|
|
+
|
|
|
+
|
|
|
+ //tupo
|
|
|
+ if (_nextFaBaoInfo.FabaoPowerupConfig.SkillLevel != selectedFaBaoInfo.FabaoPowerupConfig.SkillLevel)
|
|
|
+ {
|
|
|
+ Text_UpGrade.text = "突破";
|
|
|
+ }
|
|
|
+ else
|
|
|
+ {
|
|
|
+ Text_UpGrade.text = "升级";
|
|
|
+ }
|
|
|
+
|
|
|
+ Text_UpGrade.gameObject.SetActive(true);
|
|
|
+ ItemRoot.gameObject.SetActive(true);
|
|
|
+ Text_ManTips.gameObject.SetActive(false);
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+ Icon_FaBaoIcon.icon_name = faBaoInfo.SkillConfig.icon;
|
|
|
+
|
|
|
+ switch (faBaoInfo.FabaoConfig.magicAttribute)
|
|
|
+ {
|
|
|
+ case 1:
|
|
|
+ Icon_Attribute.GetComponent<CustomStateController>().ChangeState(0);
|
|
|
+ Text_Attribute.text = "金";
|
|
|
+ break;
|
|
|
+ case 2:
|
|
|
+ Icon_Attribute.GetComponent<CustomStateController>().ChangeState(1);
|
|
|
+ Text_Attribute.text = "木";
|
|
|
+ break;
|
|
|
+ case 4:
|
|
|
+ Icon_Attribute.GetComponent<CustomStateController>().ChangeState(2);
|
|
|
+ Text_Attribute.text = "水";
|
|
|
+ break;
|
|
|
+ case 8:
|
|
|
+ Icon_Attribute.GetComponent<CustomStateController>().ChangeState(3);
|
|
|
+ Text_Attribute.text = "火";
|
|
|
+ break;
|
|
|
+ case 16:
|
|
|
+ Icon_Attribute.GetComponent<CustomStateController>().ChangeState(4);
|
|
|
+ Text_Attribute.text = "土";
|
|
|
+ break;
|
|
|
+ }
|
|
|
+
|
|
|
+ cts.AddTask(CreatFaBaoSkillWidget(faBaoInfo));
|
|
|
+ cts.AddTask(CreatFaBaoAttributeWidget(faBaoInfo));
|
|
|
+ await cts.WaitAll();
|
|
|
}
|
|
|
+ }
|
|
|
|
|
|
- faBaoAttributeWidgets.Clear();
|
|
|
+ private async CTask CreatItemWidgetType1(FaBaoInfo faBaoInfo)
|
|
|
+ {
|
|
|
+ foreach (var itemWidgetType1 in itemWidgetType1s)
|
|
|
+ {
|
|
|
+ UIManager.Instance.DormancyGComponent(itemWidgetType1);
|
|
|
+ }
|
|
|
|
|
|
+ itemWidgetType1s.Clear();
|
|
|
+ for (var i = 0; i < faBaoInfo.FabaoPowerupConfig.PowerupItemIDs.Length; i++)
|
|
|
+ {
|
|
|
+ ItemWidgetType1 itemWidgetType1 = await UIManager.Instance.CreateGComponent<ItemWidgetType1>(null, ItemRoot);
|
|
|
+ itemWidgetType1.CustomInit(faBaoInfo.FabaoPowerupConfig.PowerupItemIDs[i], faBaoInfo.FabaoPowerupConfig.PowerupItemCosts[i]);
|
|
|
+ itemWidgetType1s.Add(itemWidgetType1);
|
|
|
+ }
|
|
|
+ }
|
|
|
|
|
|
- Text_FaBaoName.text = LanguageManager.Instance.Text(faBaoInfo.FabaoConfig.name) + " Lv." +
|
|
|
- faBaoInfo.FabaoPowerupConfig.ID;
|
|
|
- Text_Power.text = $"强度:{faBaoInfo.qiangDu}";
|
|
|
- Text_Desc.text = UtilTools.GetString(LanguageManager.Instance.Text(faBaoInfo.SkillConfig.dec),
|
|
|
- faBaoInfo.effectValue);
|
|
|
+ private async CTask CreatFaBaoSkillWidget(FaBaoInfo faBaoInfo)
|
|
|
+ {
|
|
|
+ foreach (var faBaoSkillWidget in faBaoSkillWidgets)
|
|
|
+ {
|
|
|
+ UIManager.Instance.DormancyGComponent(faBaoSkillWidget);
|
|
|
+ }
|
|
|
+
|
|
|
+ faBaoSkillWidgets.Clear();
|
|
|
+
|
|
|
+ List<FabaoPowerupConfig> fabaoPowerupConfigs = ConfigComponent.Instance.GetAll<FabaoPowerupConfig>().ToList();
|
|
|
+
|
|
|
+ var fanappower = fabaoPowerupConfigs.GroupBy(f => f.SkillLevel).Select(g => new { config = g.OrderBy(f => f.ID).FirstOrDefault() }).ToList();
|
|
|
+
|
|
|
+ foreach (var powerupConfigse in fanappower)
|
|
|
+ {
|
|
|
+ AccountFileInfo.FaBaoData faBaoData = new AccountFileInfo.FaBaoData();
|
|
|
+ faBaoData.id = selectedFaBaoInfo.FaBaoData.id;
|
|
|
+ faBaoData.level = powerupConfigse.config.ID;
|
|
|
+ FaBaoInfo _faBaoInfo = new FaBaoInfo(faBaoData);
|
|
|
+ FaBaoSkillWidget faBaoSkillWidget = await UIManager.Instance.CreateGComponent<FaBaoSkillWidget>(null, SkillContent);
|
|
|
+ faBaoSkillWidget.CustomInit(selectedFaBaoInfo, _faBaoInfo);
|
|
|
+ faBaoSkillWidgets.Add(faBaoSkillWidget);
|
|
|
+ }
|
|
|
+ }
|
|
|
|
|
|
- switch (faBaoInfo.FabaoConfig.magicAttribute)
|
|
|
+ private async CTask CreatFaBaoAttributeWidget(FaBaoInfo faBaoInfo)
|
|
|
+ {
|
|
|
+ foreach (var faBaoAttributeWidget in faBaoAttributeWidgets)
|
|
|
{
|
|
|
- case 1:
|
|
|
- Icon_Attribute.GetComponent<CustomStateController>().ChangeState(0);
|
|
|
- Text_Attribute.text = "金";
|
|
|
- break;
|
|
|
- case 2:
|
|
|
- Icon_Attribute.GetComponent<CustomStateController>().ChangeState(1);
|
|
|
- Text_Attribute.text = "木";
|
|
|
- break;
|
|
|
- case 4:
|
|
|
- Icon_Attribute.GetComponent<CustomStateController>().ChangeState(2);
|
|
|
- Text_Attribute.text = "水";
|
|
|
- break;
|
|
|
- case 8:
|
|
|
- Icon_Attribute.GetComponent<CustomStateController>().ChangeState(3);
|
|
|
- Text_Attribute.text = "火";
|
|
|
- break;
|
|
|
- case 16:
|
|
|
- Icon_Attribute.GetComponent<CustomStateController>().ChangeState(4);
|
|
|
- Text_Attribute.text = "土";
|
|
|
- break;
|
|
|
+ UIManager.Instance.DormancyGComponent(faBaoAttributeWidget);
|
|
|
}
|
|
|
|
|
|
+ faBaoAttributeWidgets.Clear();
|
|
|
+
|
|
|
foreach (var keyValuePair in faBaoInfo.attriButedIC)
|
|
|
{
|
|
|
FaBaoAttributeWidget faBaoAttributeWidget =
|
|
@@ -258,14 +487,31 @@ namespace Fort23.Mono
|
|
|
|
|
|
faBaoWidgets.Clear();
|
|
|
|
|
|
+ foreach (var faBaoSkillWidget in faBaoSkillWidgets)
|
|
|
+ {
|
|
|
+ UIManager.Instance.DormancyGComponent(faBaoSkillWidget);
|
|
|
+ }
|
|
|
+
|
|
|
+ faBaoSkillWidgets.Clear();
|
|
|
+
|
|
|
+ foreach (var itemWidgetType1 in itemWidgetType1s)
|
|
|
+ {
|
|
|
+ UIManager.Instance.DormancyGComponent(itemWidgetType1);
|
|
|
+ }
|
|
|
+
|
|
|
+ itemWidgetType1s.Clear();
|
|
|
+
|
|
|
UIManager.Instance.DormancyGComponent(currentFaBaoWidget);
|
|
|
- currentFaBaoWidget = null;
|
|
|
+ UpdataGradeUI(false);
|
|
|
+ UpdateBjUI(false);
|
|
|
|
|
|
+ currentFaBaoWidget = null;
|
|
|
BtnUpGradeRoot.SetActive(false);
|
|
|
BtnChangeRoot.SetActive(true);
|
|
|
currentFaBaoInfo = null;
|
|
|
selectedFaBaoInfo = null;
|
|
|
|
|
|
+
|
|
|
base.Close();
|
|
|
}
|
|
|
}
|