|
@@ -77,7 +77,6 @@ namespace GFGGame
|
|
|
EventAgent.RemoveEventListener(ConstMessage.RED_CHANGE, UpdateState);
|
|
|
}
|
|
|
|
|
|
-
|
|
|
private void InitUI()
|
|
|
{
|
|
|
_ui.m_c1.SetSelectedIndex(ActivityAfuGiftDataManager.Instance.GetIsBuy() ? 1 : 0);
|
|
@@ -90,10 +89,12 @@ namespace GFGGame
|
|
|
|
|
|
private IEnumerator InitProgressWidth()
|
|
|
{
|
|
|
- yield return new WaitForSeconds(0.5f);
|
|
|
+ GProgressBar gProgressBar = _ui.m_panel.m_scrollPane.m_progress;
|
|
|
+ gProgressBar.width = 0;
|
|
|
+ // 等待窗口动画结束
|
|
|
+ yield return new WaitForSeconds(0.3f);
|
|
|
// 根据列表 初始化进度条长度
|
|
|
float marginLeft = 149;
|
|
|
- GProgressBar gProgressBar = _ui.m_panel.m_scrollPane.m_progress;
|
|
|
gProgressBar.width = marginLeft + _rewardListUI.GetChildAt(_rewardListUI.numChildren - 1).position.x - _rewardListUI.GetChildAt(0).position.x;
|
|
|
// 初始化进度条值
|
|
|
int indexDay = ActivityAfuGiftDataManager.Instance.GetIndexDay();
|