|
@@ -208,6 +208,7 @@ namespace GFGGame
|
|
|
UpdateRoleLvl();
|
|
|
UpdateHead();
|
|
|
UpdateBtnFirstRecharge();
|
|
|
+ CheckProbabilityUp();
|
|
|
_valueBarController.OnShown();
|
|
|
|
|
|
|
|
@@ -909,6 +910,8 @@ namespace GFGGame
|
|
|
itemIndex = itemIndex == _ui.m_comListAd.m_listAd.numItems ? 0 : itemIndex;
|
|
|
_ui.m_comListAd.m_listAdSelect.selectedIndex = itemIndex;
|
|
|
_ui.m_comListAd.m_listAd.scrollPane.ScrollRight(0.8f, true);
|
|
|
+
|
|
|
+ CheckProbabilityUp();
|
|
|
}
|
|
|
private void RenderListAdItem(int index, GObject obj)
|
|
|
{
|
|
@@ -999,14 +1002,24 @@ namespace GFGGame
|
|
|
RedDotController.Instance.SetComRedDot(_ui.m_btnTravel.target, RedDotDataManager.Instance.GetTravelRed(), "", -36, 32);
|
|
|
RedDotController.Instance.SetComRedDot(_btnLeague, RedDotDataManager.Instance.GetLeagueRed(), "", -8);
|
|
|
RedDotController.Instance.SetComRedDot(_ui.m_btnDailyWelfare.target, RedDotDataManager.Instance.GetDailyWelfareRed(), "", 9, -1);
|
|
|
- RedDotController.Instance.SetComRedDot(_ui.m_btnActivityLuckyBox.target, RedDotDataManager.Instance.GetMeiRiTeHuiRed() || RedDotDataManager.Instance.GetActLuckyBoxRewardRed() || RedDotDataManager.Instance.GetActLuckyBoxTaskdRed() || RedDotDataManager.Instance.GetGiftBagRewardRed(), "", 9, -1);
|
|
|
+ RedDotController.Instance.SetComRedDot(_ui.m_btnActivityLuckyBox.target, RedDotDataManager.Instance.GetMeiRiTeHuiRed() || RedDotDataManager.Instance.GetActLuckyBoxRewardRed(ConstLimitTimeActivityType.ActLimitLuckyBox) || RedDotDataManager.Instance.GetActLuckyBoxTaskdRed() || RedDotDataManager.Instance.GetGiftBagRewardRed(), "", 9, -1);
|
|
|
RedDotController.Instance.SetComRedDot(_btnBag, RedDotDataManager.Instance.GetMainBagGiftRed(), "", -8);
|
|
|
RedDotController.Instance.SetComRedDot(_ui.m_btnActivityDay7.target, RedDotDataManager.Instance.GetActivityDay7Red());
|
|
|
RedDotController.Instance.SetComRedDot(_ui.m_btnLimitedRechargeDBGift.target, RedDotDataManager.Instance.GetLimitedRechargeDBGiftRed());
|
|
|
-
|
|
|
-
|
|
|
+
|
|
|
RedDotController.Instance.SetComRedDot(_ui.m_btnXiuFang.target, RedDotDataManager.Instance.GetClothingFosterRed() || RedDotDataManager.Instance.GetClothingSyntheticRed(), "", -10, 20);
|
|
|
RedDotController.Instance.SetComRedDot(_ui.m_btnCiPai.target, RedDotDataManager.Instance.GetCardRed(), "", -10, 20);
|
|
|
+
|
|
|
+ RedDotController.Instance.SetComRedDot(_ui.m_btnZhaiXing.target, RedDotDataManager.Instance.GetActLuckyBoxRewardRed(ConstLimitTimeActivityType.ActLimitTsy));
|
|
|
+ }
|
|
|
+
|
|
|
+ private void CheckProbabilityUp()
|
|
|
+ {
|
|
|
+ int activityId = ActivityDataManager.Instance.GetCurOpenActiveByType(ConstLimitTimeActivityType.ActLimitTsy);
|
|
|
+ if (activityId > 0)
|
|
|
+ _ui.m_btnZhaiXing.m_ProbabilityUpType.selectedIndex = 1;
|
|
|
+ else
|
|
|
+ _ui.m_btnZhaiXing.m_ProbabilityUpType.selectedIndex = 0;
|
|
|
}
|
|
|
|
|
|
private void CheckGuide(object param)
|