C# Class Rome.SliderButton

Inheritance: ImageButton
Afficher le fichier Open project: ReticentJohn/Spring-Project-2011

Méthodes publiques

Свойство Type Description
backgroundImage Sprite

Méthodes publiques

Méthode 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 méthode

public BackgroundIsClicked ( ) : bool
Résultat bool

Draw() public méthode

public Draw ( SpriteBatch spriteBatch ) : void
spriteBatch Microsoft.Xna.Framework.Graphics.SpriteBatch
Résultat void

LoadContent() public méthode

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

LoadContent() public méthode

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
Résultat void

MouseOverBackground() public méthode

public MouseOverBackground ( ) : bool
Résultat bool

SlideIfClicked() public méthode

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

SliderButton() public méthode

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
Résultat Microsoft.Xna.Framework.Content

SliderButton() public méthode

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

SliderButton() public méthode

public SliderButton ( int minSliderValue, int maxSliderValue, int startingValue ) : Microsoft.Xna.Framework.Content
minSliderValue int
maxSliderValue int
startingValue int
Résultat Microsoft.Xna.Framework.Content

Property Details

backgroundImage public_oe property

public Sprite backgroundImage
Résultat Sprite