C# Class Rome.SliderButton

Inheritance: ImageButton
显示文件 Open project: ReticentJohn/Spring-Project-2011

Public Properties

Property Type Description
backgroundImage Sprite

Public Methods

Method Description
BackgroundIsClicked ( ) : bool
Draw ( SpriteBatch spriteBatch ) : void
LoadContent ( Microsoft.Xna.Framework.Content.ContentManager content, string buttonTextureName, string backgroundTextureName ) : void
LoadContent ( Microsoft.Xna.Framework.Content.ContentManager content, string buttonTextureName, string backgroundTextureName, int maxNumOfFrames, int maxNumOfFrameSets ) : void
MouseOverBackground ( ) : bool
SlideIfClicked ( ) : void

Essentially an update function. Check if slider is clicked, and if so, make it slide as the mouse moves.

SliderButton ( Sprite loadedSprite, Sprite loadedBackground, int minSliderValue, int maxSliderValue, int startingValue ) : Microsoft.Xna.Framework.Content
SliderButton ( Sprite loadedSprite, int minSliderValue, int maxSliderValue, int startingValue ) : Microsoft.Xna.Framework.Content
SliderButton ( int minSliderValue, int maxSliderValue, int startingValue ) : Microsoft.Xna.Framework.Content

Method Details

BackgroundIsClicked() public method

public BackgroundIsClicked ( ) : bool
return bool

Draw() public method

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

LoadContent() public method

public LoadContent ( Microsoft.Xna.Framework.Content.ContentManager content, string buttonTextureName, string backgroundTextureName ) : void
content Microsoft.Xna.Framework.Content.ContentManager
buttonTextureName string
backgroundTextureName string
return void

LoadContent() public method

public LoadContent ( Microsoft.Xna.Framework.Content.ContentManager content, string buttonTextureName, string backgroundTextureName, int maxNumOfFrames, int maxNumOfFrameSets ) : void
content Microsoft.Xna.Framework.Content.ContentManager
buttonTextureName string
backgroundTextureName string
maxNumOfFrames int
maxNumOfFrameSets int
return void

MouseOverBackground() public method

public MouseOverBackground ( ) : bool
return bool

SlideIfClicked() public method

Essentially an update function. Check if slider is clicked, and if so, make it slide as the mouse moves.
public SlideIfClicked ( ) : void
return void

SliderButton() public method

public SliderButton ( Sprite loadedSprite, Sprite loadedBackground, int minSliderValue, int maxSliderValue, int startingValue ) : Microsoft.Xna.Framework.Content
loadedSprite Sprite
loadedBackground Sprite
minSliderValue int
maxSliderValue int
startingValue int
return Microsoft.Xna.Framework.Content

SliderButton() public method

public SliderButton ( Sprite loadedSprite, int minSliderValue, int maxSliderValue, int startingValue ) : Microsoft.Xna.Framework.Content
loadedSprite Sprite
minSliderValue int
maxSliderValue int
startingValue int
return Microsoft.Xna.Framework.Content

SliderButton() public method

public SliderButton ( int minSliderValue, int maxSliderValue, int startingValue ) : Microsoft.Xna.Framework.Content
minSliderValue int
maxSliderValue int
startingValue int
return Microsoft.Xna.Framework.Content

Property Details

backgroundImage public_oe property

public Sprite backgroundImage
return Sprite