コード例 #1
0
ファイル: Editor.cs プロジェクト: EoinF/CupOfEthanol
        private static void DrawMisc(SpriteBatch spriteBatch)
        {
            spriteBatch.Draw(Textures.GetTexture("Cursor"), new Vector2((float)InputManager.Mousestate[0].X, (float)InputManager.Mousestate[0].Y), null, Color.White, 0f, Vector2.Zero, 1f, 0, 1f);
            if (InputBox.Active)
            {
                InputBox.Draw(spriteBatch);
            }
            if (MessageBox.GameMessage != null)
            {
                MessageBox.GameMessage.Draw(spriteBatch, false);
            }
            if (MessageBox.StatusMessage != null)
            {
                MessageBox.StatusMessage.Draw(spriteBatch, true);
            }
            if (PConsole.Active)
            {
                PConsole.Draw(spriteBatch);
            }

            if (LabelList != null)
            {
                if (SelectedEntity != -1 && !ScreenManager.Paused)
                {
                    foreach (TextSprite ts in LabelList)
                    {
                        spriteBatch.DrawString(ts.Spritefont, ts.Text, ts.Position, ts.Colour, 0f, Vector2.Zero, 1f, 0, 0.999f);
                    }

                    Button.DrawAll(spriteBatch);
                    TextSprite.DrawAll(spriteBatch);
                }
            }
        }
コード例 #2
0
 private static void DrawButtonsAndLabels(SpriteBatch spriteBatch)
 {
     if (TextInput.TextInputList != null)
     {
         foreach (TextInput input in TextInput.TextInputList)
         {
             input.Draw(spriteBatch);
         }
     }
     TextSprite.DrawAll(spriteBatch);
     foreach (TextSprite ts in LabelList)
     {
         spriteBatch.DrawString(ts.Spritefont, ts.Text, ts.Position, ts.Colour, 0f, Vector2.Zero, 1f, 0, 0.999f);
     }
     Button.DrawAll(spriteBatch);
 }
コード例 #3
0
ファイル: MainMenu.cs プロジェクト: EoinF/CupOfEthanol
        public static void Draw(SpriteBatch spriteBatch)
        {
            if (ScreenManager.Mainmenu || ScreenManager.Levelselect)
            {
                if (ScreenManager.Credits)
                {
                    spriteBatch.Draw(Textures.GetTexture("SkyB"), Vector2.Zero, null, Color.White, 0f, Vector2.Zero, 2f, 0, 0.8f);
                }
                else
                {
                    spriteBatch.Draw(Textures.GetTexture("SkyA"), Vector2.Zero, null, Color.White, 0f, Vector2.Zero, 2f, 0, 0.8f);
                }

                spriteBatch.Draw(Textures.GetTexture("Cursor"), new Vector2((float)InputManager.Mousestate[0].X, (float)InputManager.Mousestate[0].Y), null, Color.White, 0f, Vector2.Zero, 1f, 0, 1f);
                Button.DrawAll(spriteBatch);
                LevelButton.DrawAll(spriteBatch);
                TextSprite.DrawAll(spriteBatch);
                FallingObject.DrawAll(spriteBatch);
            }
        }
コード例 #4
0
ファイル: PauseMenu.cs プロジェクト: EoinF/CupOfEthanol
 private static void DrawButtons_Labels(SpriteBatch spriteBatch)
 {
     Button.DrawAll(spriteBatch);
     TextSprite.DrawAll(spriteBatch);
     spriteBatch.DrawString(Label.Spritefont, Label.Text, Label.Position, Label.Colour, 0f, Vector2.Zero, 1f, 0, 0.95f);
 }