C# Class Asteroids.TSoundOption

显示文件 Open project: Timvangool/AsteroidsAPO2 Class Usage Examples

Public Methods

Method Description
BarCursorHeigthConvert ( ) : int
ChangeVolume ( float volume ) : void
DistanceCalculate ( float count ) : float
Draw ( SpriteBatch sprite ) : void
Init ( ) : void
MakeResolutionArray ( ) : void
MoveCurser ( float x ) : void
SelectLeft ( ) : void
SelectRight ( ) : void
TSoundOption ( Game1 structOptionsMain, StructSound structSound ) : System
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
Update ( Microsoft.Xna.Framework.Input.MouseState mouse ) : void

Method Details

BarCursorHeigthConvert() public method

public BarCursorHeigthConvert ( ) : int
return int

ChangeVolume() public method

public ChangeVolume ( float volume ) : void
volume float
return void

DistanceCalculate() public method

public DistanceCalculate ( float count ) : float
count float
return float

Draw() public method

public Draw ( SpriteBatch sprite ) : void
sprite Microsoft.Xna.Framework.Graphics.SpriteBatch
return void

Init() public method

public Init ( ) : void
return void

MakeResolutionArray() public method

public MakeResolutionArray ( ) : void
return void

MoveCurser() public method

public MoveCurser ( float x ) : void
x float
return void

SelectLeft() public method

public SelectLeft ( ) : void
return void

SelectRight() public method

public SelectRight ( ) : void
return void

TSoundOption() public method

public TSoundOption ( Game1 structOptionsMain, StructSound structSound ) : System
structOptionsMain Game1
structSound StructSound
return System

TSoundOption() public method

public 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
graphics GraphicsDeviceManager
txSoundBar Microsoft.Xna.Framework.Graphics.Texture2D
txBarCursor Microsoft.Xna.Framework.Graphics.Texture2D
txArrowLeft Microsoft.Xna.Framework.Graphics.Texture2D
txArrowRight Microsoft.Xna.Framework.Graphics.Texture2D
posSoundBar Vector2
sizeSoundBar Vector2
sizeBarCursor Vector2
posArrowLeft Vector2
posArrowRight Vector2
sizeArrow Vector2
col Color
return System

Update() public method

public Update ( Microsoft.Xna.Framework.Input.MouseState mouse ) : void
mouse Microsoft.Xna.Framework.Input.MouseState
return void