public SoundBoard(Game_SoundBoard inGame) : base(inGame) { soundBoardNodes = new SoundBoardNode[SOUND_BOARD_WIDTH, SOUND_BOARD_HEIGHT]; myGame = inGame; drawScale = 8.0f / SOUND_BOARD_WIDTH; }
public SoundBoardNode(Game_SoundBoard inGame, string soundEffectFileName) { myGame = inGame; mySoundEffect = null; if (soundEffectFileName != string.Empty) { // Strip off the end. string[] splitFileName = soundEffectFileName.Split('.'); mySoundEffect = myGame.Content.Load<SoundEffect>(splitFileName[0]); } myColor = Color.White; mySprite = myGame.Content.Load<Texture2D>("Sprites\\Circle"); spriteTextureData = new Color[mySprite.Width * mySprite.Height]; mySprite.GetData(spriteTextureData); }