10 protected const float FADE_OUT_WAIT_TIME = 5;
13 protected Widget m_wRoot;
16 protected int m_iLastUpdateTimeMs;
19 override void HandlerAttached(Widget w)
24 m_iLastUpdateTimeMs = System.GetTickCount();
29 m_Widgets.m_OpenButtonComponent.m_OnActivated.Insert(OnOpenButton);
32 m_Animator.FadeOutInstantly();
39 override void HandlerDeattached(Widget w)
42 GetGame().GetCallqueue().Remove(Update);
52 int tDeltaMs = System.GetTickCount() - m_iLastUpdateTimeMs;
53 float tDelta = 0.001 * tDeltaMs;
58 UpdateAllWidgets(tDelta);
60 GetGame().GetCallqueue().CallLater(Update, 10);
63 m_iLastUpdateTimeMs = System.GetTickCount();
68 protected void UpdateAllWidgets(
float tDelta)
74 int nTotal, nCompleted;
75 mgr.GetDownloadQueueState(nCompleted, nTotal);
77 m_Animator.ForceVisible(nTotal > 0);
79 m_Animator.Update(tDelta);