Logo
Public Member Functions | Properties | List of all members
Yukar.Engine.PercentGraph Class Reference

Public Member Functions

 PercentGraph (Vector2 position, Vector2 size)
 constructor More...
 
void RegisterParameter (float totalValue, List< float > elements, List< Color > colors=null)
 Add parameters required for display More...
 
void Draw ()
 draw More...
 

Properties

Vector2 Position [get, set]
 display position More...
 

Constructor & Destructor Documentation

◆ PercentGraph()

Yukar.Engine.PercentGraph.PercentGraph ( Vector2  position,
Vector2  size 
)

constructor

Parameters
positionposition
sizesize

Member Function Documentation

◆ Draw()

void Yukar.Engine.PercentGraph.Draw ( )

draw

◆ RegisterParameter()

void Yukar.Engine.PercentGraph.RegisterParameter ( float  totalValue,
List< float >  elements,
List< Color >  colors = null 
)

Add parameters required for display

Parameters
totalValuetotal value
elementselement
colorsthe color you want

Property Documentation

◆ Position

Vector2 Yukar.Engine.PercentGraph.Position
getset

display position