C# Класс Rome.SliderButton

Наследование: ImageButton
Показать файл Открыть проект

Открытые свойства

Свойство Тип Описание
backgroundImage Sprite

Открытые методы

Метод Описание
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

Описание методов

BackgroundIsClicked() публичный Метод

public BackgroundIsClicked ( ) : bool
Результат bool

Draw() публичный Метод

public Draw ( SpriteBatch spriteBatch ) : void
spriteBatch Microsoft.Xna.Framework.Graphics.SpriteBatch
Результат void

LoadContent() публичный Метод

public LoadContent ( Microsoft.Xna.Framework.Content.ContentManager content, string buttonTextureName, string backgroundTextureName ) : void
content Microsoft.Xna.Framework.Content.ContentManager
buttonTextureName string
backgroundTextureName string
Результат void

LoadContent() публичный Метод

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
Результат void

MouseOverBackground() публичный Метод

public MouseOverBackground ( ) : bool
Результат bool

SlideIfClicked() публичный Метод

Essentially an update function. Check if slider is clicked, and if so, make it slide as the mouse moves.
public SlideIfClicked ( ) : void
Результат void

SliderButton() публичный Метод

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
Результат Microsoft.Xna.Framework.Content

SliderButton() публичный Метод

public SliderButton ( Sprite loadedSprite, int minSliderValue, int maxSliderValue, int startingValue ) : Microsoft.Xna.Framework.Content
loadedSprite Sprite
minSliderValue int
maxSliderValue int
startingValue int
Результат Microsoft.Xna.Framework.Content

SliderButton() публичный Метод

public SliderButton ( int minSliderValue, int maxSliderValue, int startingValue ) : Microsoft.Xna.Framework.Content
minSliderValue int
maxSliderValue int
startingValue int
Результат Microsoft.Xna.Framework.Content

Описание свойств

backgroundImage публичное свойство

public Sprite backgroundImage
Результат Sprite