|
@@ -33,6 +33,8 @@ namespace GFGGame
|
|
|
_ui.m_btnWish1.onClick.Add(OnClickBtnWish);
|
|
|
_ui.m_btnWish2.data = 1;
|
|
|
_ui.m_btnWish2.onClick.Add(OnClickBtnWish);
|
|
|
+ _ui.m_btnRule.onClick.Add(RuleController.ShowRuleView);
|
|
|
+ _ui.m_btnRule.data = 300024;
|
|
|
}
|
|
|
protected override void AddEventListener()
|
|
|
{
|
|
@@ -60,8 +62,11 @@ namespace GFGGame
|
|
|
private void OnClickBtnWish(EventContext context)
|
|
|
{
|
|
|
int index = (int)(context.sender as GObject).data;
|
|
|
- ReqAddWishingPoolInfo(index);
|
|
|
- this.Hide();
|
|
|
+ int activityId = ActivityDataManager.Instance.GetCurOpenActiveByType(_actLimitTsy);
|
|
|
+ ActivityOpenCfg activityOpenCfg = ActivityOpenCfgArray.Instance.GetCfg(activityId);
|
|
|
+ var suitId = activityOpenCfg.params2Arr[index];
|
|
|
+ var suitCfg = SuitCfgArray.Instance.GetCfg(suitId);
|
|
|
+ AlertUI.Show(string.Format("是否将{0}设为许愿套装(许愿后将不可修改,请研究员谨慎选择)", suitCfg.name)).SetLeftButton(true).SetRightButton(true, "确定", (object data) => { onSuccess(index); });
|
|
|
}
|
|
|
|
|
|
private async void ReqAddWishingPoolInfo(int index)
|
|
@@ -74,5 +79,11 @@ namespace GFGGame
|
|
|
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
+ private void onSuccess(int index)
|
|
|
+ {
|
|
|
+ ReqAddWishingPoolInfo(index);
|
|
|
+ this.Hide();
|
|
|
+ }
|
|
|
}
|
|
|
}
|