|
@@ -19,6 +19,7 @@ namespace Fort23.Mono
|
|
List<WidgetItem> widgetItems = new List<WidgetItem>();
|
|
List<WidgetItem> widgetItems = new List<WidgetItem>();
|
|
List<WidgetItem> giveWidgetItems = new List<WidgetItem>();
|
|
List<WidgetItem> giveWidgetItems = new List<WidgetItem>();
|
|
List<DaoYouLevelWidget> _daoYouLevelWidgets = new List<DaoYouLevelWidget>();
|
|
List<DaoYouLevelWidget> _daoYouLevelWidgets = new List<DaoYouLevelWidget>();
|
|
|
|
+ List<DaoYouIdleEarningsWidget> _daoYouIdleEarningsWidgets = new List<DaoYouIdleEarningsWidget>();
|
|
|
|
|
|
private DaoyouGiftConfig[] daoyouGiftConfigs;
|
|
private DaoyouGiftConfig[] daoyouGiftConfigs;
|
|
|
|
|
|
@@ -129,6 +130,13 @@ namespace Fort23.Mono
|
|
|
|
|
|
_daoYouLevelWidgets.Clear();
|
|
_daoYouLevelWidgets.Clear();
|
|
|
|
|
|
|
|
+ foreach (var daoYouIdleEarningsWidget in _daoYouIdleEarningsWidgets)
|
|
|
|
+ {
|
|
|
|
+ UIManager.Instance.DormancyGComponent(daoYouIdleEarningsWidget);
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ _daoYouIdleEarningsWidgets.Clear();
|
|
|
|
+
|
|
Text_Name.text = LanguageManager.Instance.Text(_daoyouModelConfig.name);
|
|
Text_Name.text = LanguageManager.Instance.Text(_daoyouModelConfig.name);
|
|
|
|
|
|
int index = 0;
|
|
int index = 0;
|
|
@@ -143,6 +151,14 @@ namespace Fort23.Mono
|
|
Text_Desc.text = LanguageManager.Instance.Text(_daoyouModelConfig.des[index]);
|
|
Text_Desc.text = LanguageManager.Instance.Text(_daoyouModelConfig.des[index]);
|
|
|
|
|
|
|
|
|
|
|
|
+ foreach (var i in _daoyouModelConfig.guajiBuffID)
|
|
|
|
+ {
|
|
|
|
+ DaoYouIdleEarningsWidget daoYouIdleEarningsWidget = await UIManager.Instance.CreateGComponent<DaoYouIdleEarningsWidget>(null, GuajiContent);
|
|
|
|
+ daoYouIdleEarningsWidget.CustomInit(daoYouData, i);
|
|
|
|
+ _daoYouIdleEarningsWidgets.Add(daoYouIdleEarningsWidget);
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+
|
|
DaoyouLevelupConfig currentDaoyouLevelupConfig = ConfigComponent.Instance.Get<DaoyouLevelupConfig>(daoYouData.favorabilityLv);
|
|
DaoyouLevelupConfig currentDaoyouLevelupConfig = ConfigComponent.Instance.Get<DaoyouLevelupConfig>(daoYouData.favorabilityLv);
|
|
Text_CurrentName.text = LanguageManager.Instance.Text(currentDaoyouLevelupConfig.name);
|
|
Text_CurrentName.text = LanguageManager.Instance.Text(currentDaoyouLevelupConfig.name);
|
|
Text_CurrentLevel.text = daoYouData.favorabilityLv.ToString();
|
|
Text_CurrentLevel.text = daoYouData.favorabilityLv.ToString();
|
|
@@ -293,6 +309,13 @@ namespace Fort23.Mono
|
|
|
|
|
|
_daoYouLevelWidgets.Clear();
|
|
_daoYouLevelWidgets.Clear();
|
|
|
|
|
|
|
|
+ foreach (var daoYouIdleEarningsWidget in _daoYouIdleEarningsWidgets)
|
|
|
|
+ {
|
|
|
|
+ UIManager.Instance.DormancyGComponent(daoYouIdleEarningsWidget);
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ _daoYouIdleEarningsWidgets.Clear();
|
|
|
|
+
|
|
ClosePoolGive();
|
|
ClosePoolGive();
|
|
|
|
|
|
base.Close();
|
|
base.Close();
|