private void SetMinimizedState() { List <Gui.Core.Control> controlList = new List <Client.Logic.Gui.Core.Control>(); controlList = GetAllControls(controlList, true, this); for (int i = 0; i < controlList.Count; i++) { controlList[i].RemoveEvents(); } mWindowState = WindowManager.WindowState.Minimized; Globals.GameScreen.TaskBar.Redraw(); }
private void SetNormalState() { if (mWindowState == WindowManager.WindowState.Minimized) { List <Gui.Core.Control> controlList = new List <Client.Logic.Gui.Core.Control>(); controlList = GetAllControls(controlList, true, this); for (int i = 0; i < controlList.Count; i++) { controlList[i].AddEvents(); } } mWindowState = WindowManager.WindowState.Normal; InitBuffer(); Globals.GameScreen.TaskBar.Redraw(); }
private void SetMaximizedState() { if (mWindowState == WindowManager.WindowState.Minimized) { List <Gui.Core.Control> controlList = new List <Client.Logic.Gui.Core.Control>(); controlList = GetAllControls(controlList, true, this); for (int i = 0; i < controlList.Count; i++) { controlList[i].AddEvents(); } } mWindowState = WindowManager.WindowState.Maximized; mPrevFullBounds = mFullBounds; mPrevControlBounds = mControlBounds; this.Location = new Point(0, 0); this.Size = mMaximizedControlBounds.Size; InitBuffer(); Globals.GameScreen.TaskBar.Redraw(); }
private void SetNormalState() { if (mWindowState == WindowManager.WindowState.Minimized) { List<Gui.Core.Control> controlList = new List<Client.Logic.Gui.Core.Control>(); controlList = GetAllControls(controlList, true, this); for (int i = 0; i < controlList.Count; i++) { controlList[i].AddEvents(); } } mWindowState = WindowManager.WindowState.Normal; InitBuffer(); Globals.GameScreen.TaskBar.Redraw(); }
private void SetMinimizedState() { List<Gui.Core.Control> controlList = new List<Client.Logic.Gui.Core.Control>(); controlList = GetAllControls(controlList, true, this); for (int i = 0; i < controlList.Count; i++) { controlList[i].RemoveEvents(); } mWindowState = WindowManager.WindowState.Minimized; Globals.GameScreen.TaskBar.Redraw(); }
private void SetMaximizedState() { if (mWindowState == WindowManager.WindowState.Minimized) { List<Gui.Core.Control> controlList = new List<Client.Logic.Gui.Core.Control>(); controlList = GetAllControls(controlList, true, this); for (int i = 0; i < controlList.Count; i++) { controlList[i].AddEvents(); } } mWindowState = WindowManager.WindowState.Maximized; mPrevFullBounds = mFullBounds; mPrevControlBounds = mControlBounds; this.Location = new Point(0, 0); this.Size = mMaximizedControlBounds.Size; InitBuffer(); Globals.GameScreen.TaskBar.Redraw(); }