Пример #1
0
 public GameplayState(Game game, GameStateManager manager, EntityProperties properties)
     : base(game, manager)
 {
     loadedGame = true;
     loadedProps = properties == null ? new EntityProperties() : properties;
     hud = new HUD(this);
 }
Пример #2
0
        public DialogueBox(HUD parent, string owner, string text)
        {
            this.parent = parent;
            this.textOwner = owner;
            this.text = text;

            dialogueBoxTex = new DrawableRectangle(parent.parentState.Game.GraphicsDevice, new Vector2(10, 10), Color.Black, true).Texture;
            dialogueFont = parent.parentState.Game.Content.Load<SpriteFont>("Fonts\\dialogue");
            dialogueBoldFont = parent.parentState.Game.Content.Load<SpriteFont>("Fonts\\dialogueBold");

            semiTransparentGray = new Color(0, 0, 0, .6f);
            darkGray = new Color(0f, 0f, 0f, .9f);
        }
Пример #3
0
 public GameplayState(Game game, GameStateManager manager)
     : base(game, manager)
 {
     hud = new HUD(this);
 }