C# Class spaceconquest.ProgressBar

Inheritance: MenuComponent
显示文件 Open project: cclay/spaceconquest Class Usage Examples

Public Methods

Method Description
Contains ( int x, int y ) : bool
Draw ( ) : void
ProgressBar ( int x, int y, int width, int height, int goalNumber, bool isVertical, Color barColor ) : System

Constructor for a progresBar widget for menu manager

SetCurrentNumber ( int curNum ) : void
SetGoalNumber ( int num ) : void
SetVertical ( bool isVertical ) : void

Method Details

Contains() public method

public Contains ( int x, int y ) : bool
x int
y int
return bool

Draw() public method

public Draw ( ) : void
return void

ProgressBar() public method

Constructor for a progresBar widget for menu manager
public ProgressBar ( int x, int y, int width, int height, int goalNumber, bool isVertical, Color barColor ) : System
x int
y int
width int GUI width of bar
height int GUI height ofb ar
goalNumber int The number that indicates progressBar is full
isVertical bool sets orientation of progress bar
barColor Color color of bar
return System

SetCurrentNumber() public method

public SetCurrentNumber ( int curNum ) : void
curNum int
return void

SetGoalNumber() public method

public SetGoalNumber ( int num ) : void
num int
return void

SetVertical() public method

public SetVertical ( bool isVertical ) : void
isVertical bool
return void