|
@@ -11,6 +11,7 @@ namespace GFGGame
|
|
public class ActivityGetYuanXiaoEntryView : BaseView
|
|
public class ActivityGetYuanXiaoEntryView : BaseView
|
|
{
|
|
{
|
|
private UI_ActivityGetYuanXiaoEntryUI _ui;
|
|
private UI_ActivityGetYuanXiaoEntryUI _ui;
|
|
|
|
+ private int index;
|
|
private ValueBarController _valueBarController;
|
|
private ValueBarController _valueBarController;
|
|
private Dictionary<string, EffectUI> _effectUIDic = new Dictionary<string, EffectUI>();
|
|
private Dictionary<string, EffectUI> _effectUIDic = new Dictionary<string, EffectUI>();
|
|
private int _curLevel;
|
|
private int _curLevel;
|
|
@@ -78,7 +79,7 @@ namespace GFGGame
|
|
_ui.m_list.selectedIndex = Mathf.Min(_curLevel, ActivityGetYuanXiaoDataManager.Instance.gameinfoList.Count - 1);
|
|
_ui.m_list.selectedIndex = Mathf.Min(_curLevel, ActivityGetYuanXiaoDataManager.Instance.gameinfoList.Count - 1);
|
|
AutoLocationCurLevel();
|
|
AutoLocationCurLevel();
|
|
UpdateRedDots();
|
|
UpdateRedDots();
|
|
-
|
|
|
|
|
|
+ index = _ui.m_list.selectedIndex;
|
|
UpdateTime(null);
|
|
UpdateTime(null);
|
|
Timers.inst.Remove(UpdateTime);
|
|
Timers.inst.Remove(UpdateTime);
|
|
Timers.inst.Add(1, 0, UpdateTime);
|
|
Timers.inst.Add(1, 0, UpdateTime);
|
|
@@ -124,10 +125,23 @@ namespace GFGGame
|
|
stateIndex = 2;
|
|
stateIndex = 2;
|
|
}
|
|
}
|
|
level.m_c1.selectedIndex = stateIndex;
|
|
level.m_c1.selectedIndex = stateIndex;
|
|
-
|
|
|
|
|
|
+ level.target.onClick.Add(OnBtnClick);
|
|
|
|
+
|
|
UI_level.ProxyEnd();
|
|
UI_level.ProxyEnd();
|
|
}
|
|
}
|
|
-
|
|
|
|
|
|
+ private void OnBtnClick(EventContext context)
|
|
|
|
+ {
|
|
|
|
+ GObject gObject = context.sender as GObject;
|
|
|
|
+ int id = (int)gObject.data;
|
|
|
|
+ if(id != index)
|
|
|
|
+ {
|
|
|
|
+ index = id;
|
|
|
|
+ return;
|
|
|
|
+ }
|
|
|
|
+ index = id;
|
|
|
|
+ PickUpGame cfg= PickUpGameArray.Instance.dataArray[id];
|
|
|
|
+ ViewManager.Show<ActivityZLFGRewardTips>(cfg);
|
|
|
|
+ }
|
|
private void OnBtnStartClick()
|
|
private void OnBtnStartClick()
|
|
{
|
|
{
|
|
int activityID = ActivityDataManager.Instance.GetCurOpenActiveByType(ActivityType.YuanXiao);
|
|
int activityID = ActivityDataManager.Instance.GetCurOpenActiveByType(ActivityType.YuanXiao);
|