public TSoundOption ( |
||
structOptionsMain | ||
structSound | ||
return | System |
public TSoundOption(Game1.StructOptionsMain structOptionsMain, StructSound structSound)
{
//GRAPHICS
this.graphics = structOptionsMain.Graphics;
//TEXTURES
this.txSoundBar = structSound.TxSoundBar;
this.txBarCursor = structSound.TxSoundBarCursor;
this.txArrowLeft = structSound.TxArrowLeft;
this.txArrowRight = structSound.TxArrowRight;
//TEXTURES POSITIONS
this.posSoundBar = structSound.PosSoundBar;
this.posArrowLeft = structSound.PosArrowLeft;
this.posArrowRight = structSound.PosArrowRight;
//TEXTURES SIZES
this.sizeSoundBar = structSound.SizeSoundBar;
this.sizeBarCursor = structSound.SizeSoundBarCursor;
this.sizeArrow = structSound.SizeArrow;
//COLOUR
this.col = Color.White;
//INITIALIZE
barCursorHeigthFloat = posSoundBar.Y += 0.30f;
MakeResolutionArray();
Init();
}
TSoundOption::TSoundOption ( GraphicsDeviceManager graphics, Microsoft.Xna.Framework.Graphics.Texture2D txSoundBar, Microsoft.Xna.Framework.Graphics.Texture2D txBarCursor, Microsoft.Xna.Framework.Graphics.Texture2D txArrowLeft, Microsoft.Xna.Framework.Graphics.Texture2D txArrowRight, Vector2 posSoundBar, Vector2 sizeSoundBar, Vector2 sizeBarCursor, Vector2 posArrowLeft, Vector2 posArrowRight, Vector2 sizeArrow, Color col ) : System |