|
@@ -162,7 +162,7 @@ namespace GFGGame
|
|
|
if (freeTime > 0)
|
|
|
{
|
|
|
long timeDifference = freeTime - TimeHelper.ServerNow();
|
|
|
- if (timeDifference> 0)
|
|
|
+ if (timeDifference > 0)
|
|
|
{
|
|
|
comBox.m_comLuckBoxBtn.m_comCostOne.m_c1.selectedIndex = 0;
|
|
|
comBox.m_comLuckBoxBtn.m_txtFreeTime.visible = true;
|
|
@@ -174,8 +174,11 @@ namespace GFGGame
|
|
|
comBox.m_comLuckBoxBtn.m_comCostOne.m_c1.selectedIndex = 1;
|
|
|
comBox.m_comLuckBoxBtn.m_txtFreeTime.visible = false;
|
|
|
}
|
|
|
+ RedDotController.Instance.SetComRedDot(comBox.m_comLuckBoxBtn.m_btnBuyOne, comBox.m_comLuckBoxBtn.m_comCostOne.m_c1.selectedIndex == 1);
|
|
|
}
|
|
|
|
|
|
+ RedDotController.Instance.SetComRedDot(_ui.m_btnLeft, LuckyBoxDataManager.Instance.RedBtnLeft(_curIndex));
|
|
|
+ RedDotController.Instance.SetComRedDot(_ui.m_btnRight, LuckyBoxDataManager.Instance.RedBtnRight(_curIndex),"",-60,70);
|
|
|
UI_ComBox1.ProxyEnd();
|
|
|
}
|
|
|
|
|
@@ -234,6 +237,11 @@ namespace GFGGame
|
|
|
if (activityId > 0 && boxId == LuckyBoxDataManager.BOX_ID_2) {
|
|
|
comBox.m_showActivityType.selectedIndex = 1;
|
|
|
UpGiftBox(comBox);
|
|
|
+ if (comBox.m_btnRule.data == null)
|
|
|
+ {
|
|
|
+ comBox.m_btnRule.onClick.Add(RuleController.ShowRuleView);
|
|
|
+ comBox.m_btnRule.data = 300024;
|
|
|
+ }
|
|
|
}
|
|
|
else
|
|
|
comBox.m_showActivityType.selectedIndex = 0;
|
|
@@ -639,6 +647,9 @@ namespace GFGGame
|
|
|
comBox.m_comLuckBoxBtn.m_comCostOne.m_c1.selectedIndex = 0;
|
|
|
comBox.m_comLuckBoxBtn.m_txtFreeTime.visible = false;
|
|
|
}
|
|
|
+ RedDotController.Instance.SetComRedDot(comBox.m_comLuckBoxBtn.m_btnBuyOne, comBox.m_comLuckBoxBtn.m_comCostOne.m_c1.selectedIndex == 1);
|
|
|
+
|
|
|
+ UI_ComBox1.ProxyEnd();
|
|
|
}
|
|
|
}
|
|
|
}
|