private void InitSprites() { _background = new Sprite3D { Texture = TextureManager.Textures("PlayerOptionsFrame") }; _speedBlocks = new Sprite3D { Texture = TextureManager.Textures("PlayerOptionsSpeedBlocks") }; _difficultyIcons = new SpriteMap3D { Columns = 1, Rows = (int)Difficulty.Count + 1, Texture = TextureManager.Textures("PlayerDifficulties") }; _indicatorArrows = new SpriteMap3D { Columns = 4, Rows = 1, Texture = TextureManager.Textures("IndicatorArrows") }; _playerIdentifiers = new SpriteMap3D { Columns = 1, Rows = 5, Texture = TextureManager.Textures("PlayerIdentifiers") }; _nameBackground = new Sprite3D { Texture = TextureManager.BlankTexture() }; }
private void Initialize() { _mySprite = new Sprite3D { Texture = TextureManager.BlankTexture(), Height = this.Height, Width = this.Width, ColorShading = Colour, }; _spectrumDrawer = new SpectrumDrawer { Position = new Vector2(0, GameCore.INTERNAL_HEIGHT), Size = new Vector2(BAR_WIDTH, -BAR_HEIGHT), ColorShading = Colour, LevelsCount = WAVEFORM_POINTS }; _spectrumDrawerTop = new SpectrumDrawer { Position = new Vector2(0, 0), Size = new Vector2(BAR_WIDTH, BAR_HEIGHT), ColorShading = Colour, LevelsCount = WAVEFORM_POINTS }; _waveformDrawer = new WaveformDrawer { ColorShading = Colour, Size = new Vector2(GameCore.INTERNAL_WIDTH, GameCore.INTERNAL_HEIGHT / 4), Position = new Vector2(0, GameCore.INTERNAL_HEIGHT / 2), }; _waveformDrawer.Init(); _spectrumDrawer.Init(); }