修复任务界面刷新bug
parent
d7827b90a7
commit
beb2923448
|
|
@ -50,6 +50,7 @@ public class UI_MissionPannelController : UIWindow
|
|||
private ToggleGroup _toggleGroup;
|
||||
private ScrollView _scrollView;
|
||||
private GameObject _scrollViewContent;
|
||||
private bool _isInitTab;
|
||||
|
||||
private List<TaskInfo> _displayTaskInfos;
|
||||
|
||||
|
|
@ -99,15 +100,14 @@ public class UI_MissionPannelController : UIWindow
|
|||
_displayTaskInfos = new List<TaskInfo>();
|
||||
EventManager.Instance.Register(EventManager.EventName.UpdateTaskCompleted, _OnTaskUpdateEnd);
|
||||
EventManager.Instance.Register(EventManager.EventName.NetOpResultError, _OnOpResultError);
|
||||
|
||||
_CreateScrollView();
|
||||
}
|
||||
|
||||
private void _OnOpenWindow(object data = null)
|
||||
{
|
||||
|
||||
|
||||
_diamondItem.currencyID = GLConfig.Inst.data.DiamondItemId;
|
||||
_coinItem.currencyID = GLConfig.Inst.data.GoldItemId;
|
||||
_CreateScrollView();
|
||||
_tabList[_curSelectTab].isOn = true;
|
||||
}
|
||||
|
||||
|
|
@ -178,9 +178,14 @@ public class UI_MissionPannelController : UIWindow
|
|||
|
||||
private void _RefreshPage(int page)
|
||||
{
|
||||
_curSelectTab = page;
|
||||
_RefreshTaskMap();
|
||||
_Refresh();
|
||||
if (!_isInitTab || _curSelectTab != page)
|
||||
{
|
||||
_curSelectTab = page;
|
||||
_RefreshTaskMap();
|
||||
_Refresh();
|
||||
}
|
||||
|
||||
_isInitTab = true;
|
||||
}
|
||||
|
||||
private void _RefreshTab()
|
||||
|
|
|
|||
Loading…
Reference in New Issue