public void LoadContent(ContentManager content, SpriteBatch spriteBatch)
        {
            // Create a new SpriteBatch, which can be used to draw textures.
            Texture2D texture;
            texture = content.Load<Texture2D>("Button");
            myFont = content.Load<SpriteFont>("myFont");

            characterButtonOne = new monoButton(texture, myFont, spriteBatch, "Create New Character", GameState.CreateCharacter);
            characterButtonTwo = new monoButton(texture, myFont, spriteBatch, "Create New Character", GameState.CreateCharacter);
            characterButtonThree = new monoButton(texture, myFont, spriteBatch, "Create New Character", GameState.CreateCharacter);

            // TODO: use this.Content to load your game content here
        }
示例#2
0
        public void LoadContent(ContentManager content, SpriteBatch spriteBatch)
        {
            // Create a new SpriteBatch, which can be used to draw textures.
            Texture2D texture;

            texture = content.Load <Texture2D>("Button");
            myFont  = content.Load <SpriteFont>("myFont");

            characterButtonOne   = new monoButton(texture, myFont, spriteBatch, "Create New Character", GameState.CreateCharacter);
            characterButtonTwo   = new monoButton(texture, myFont, spriteBatch, "Create New Character", GameState.CreateCharacter);
            characterButtonThree = new monoButton(texture, myFont, spriteBatch, "Create New Character", GameState.CreateCharacter);

            // TODO: use this.Content to load your game content here
        }