public void DisplayOnStart() { switch (state) { case StarMenu.MenuItemId.Start_Menu: logo.Draw(); textMenu.Draw(); break; case StarMenu.MenuItemId.Options: logo.DrawContext(); options.Draw(); break; case StarMenu.MenuItemId.Load_Game: logo.DrawContext(); loadZone.Draw(); load.Draw(); break; } if (inputs.Contains(state)) { inputs[state].Draw(); } }
protected override void OnDraw() { if (Screen.ModalDialog == this.Parent || (Screen.ModalDialog is DialogueBox && !((DialogueBox)Screen.ModalDialog).BlockInput)) { m_text.Draw(); } }
public void Draw() { topBar.Draw(); top.Draw(); bottomMenu.Draw(); bottomLeft.Draw(); bottomRight.Draw(); }
protected override void OnDraw(SpriteBatch batch) { batch.Begin(); // overlay background batch.FillRect(new Rectangle(0, 0, GraphicsDevice.Viewport.Width, GraphicsDevice.Viewport.Height), 0, new Color(0, 0, 0, 220)); // menu _menu.Draw(batch); batch.End(); }
protected override void OnDraw(SpriteBatch batch) { GraphicsDevice.Clear(AppColors.WindowBackground); batch.Begin(); // background batch.Draw(_background, new Vector2(GraphicsDevice.Viewport.Width - _background.Width - 25, 25), Color.White); // menu _menu.Draw(batch); batch.End(); }
public void Display() { DrawBackGround(); DrawItems(); options.Draw(); }