Logo
Public Types | Public Member Functions | List of all members
Yukar.Engine.GaugeDrawer Class Reference

A class that draws gauges such as HP bars More...

Public Types

enum  GaugeOrientetion { HorizonalLeftToRight , HorizonalRightToLeft , VerticalUpToDown , VerticalDownToUp }
 Gauge Orientation More...
 

Public Member Functions

 GaugeDrawer (WindowDrawer b, WindowDrawer gauge, WindowDrawer max)
 
void Draw (Vector2 position, Vector2 gaugeSize, float percent, GaugeOrientetion gaugeOrientetion)
 
void Draw (Vector2 position, Vector2 gaugeSize, float percent, GaugeOrientetion gaugeOrientetion, Color gaugeColor)
 

Detailed Description

A class that draws gauges such as HP bars

Member Enumeration Documentation

◆ GaugeOrientetion

Gauge Orientation

Enumerator
HorizonalLeftToRight 
HorizonalRightToLeft 
VerticalUpToDown 
VerticalDownToUp 

Constructor & Destructor Documentation

◆ GaugeDrawer()

Yukar.Engine.GaugeDrawer.GaugeDrawer ( WindowDrawer  b,
WindowDrawer  gauge,
WindowDrawer  max 
)

Member Function Documentation

◆ Draw() [1/2]

void Yukar.Engine.GaugeDrawer.Draw ( Vector2  position,
Vector2  gaugeSize,
float  percent,
GaugeOrientetion  gaugeOrientetion 
)

◆ Draw() [2/2]

void Yukar.Engine.GaugeDrawer.Draw ( Vector2  position,
Vector2  gaugeSize,
float  percent,
GaugeOrientetion  gaugeOrientetion,
Color  gaugeColor 
)