Exemplo n.º 1
0
    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();
        }
    }
Exemplo n.º 2
0
 protected override void OnDraw()
 {
     if (Screen.ModalDialog == this.Parent ||
         (Screen.ModalDialog is DialogueBox && !((DialogueBox)Screen.ModalDialog).BlockInput))
     {
         m_text.Draw();
     }
 }
Exemplo n.º 3
0
 public void Draw()
 {
     topBar.Draw();
     top.Draw();
     bottomMenu.Draw();
     bottomLeft.Draw();
     bottomRight.Draw();
 }
Exemplo n.º 4
0
        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();
        }
Exemplo n.º 5
0
        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();
 }