C# Class Ensage.Common.HUDInfo

Class used for locating several HUD positions
Show file Open project: EnsageSharp/Ensage.Common

Public Methods

Method Description
GetHPBarSizeX ( Unit unit = null ) : float

Returns HealthBar X position for given unit

GetHPbarPosition ( Unit unit ) : System.Vector2

Returns HealthBar position for given unit

GetHpBarSizeY ( Unit unit = null ) : float

Returns HealthBar Y position for given unit

GetTopPanelPosition ( Hero hero ) : System.Vector2

Returns top panel position for given hero

GetTopPanelSize ( Hero hero ) : double[]

Returns top panel size

GetTopPanelSizeX ( Hero hero ) : double

Returns top panel hero icon width

GetTopPanelSizeY ( Hero hero ) : double

Returns top panel hero icon height

RatioPercentage ( ) : float

The ratio percentage.

ScreenSizeX ( ) : float

Returns screen width

ScreenSizeY ( ) : float

Returns screen height

WorldToMinimap ( this mapPosition ) : System.Vector2

The world to minimap.

Private Methods

Method Description
Drawing_OnDraw ( EventArgs args ) : void
GetXX ( System.Entity hero ) : double

The get xx.

HUDInfo ( ) : System

Initializes static members of the HUDInfo class.

Method Details

GetHPBarSizeX() public static method

Returns HealthBar X position for given unit
public static GetHPBarSizeX ( Unit unit = null ) : float
unit Unit /// The unit. ///
return float

GetHPbarPosition() public static method

Returns HealthBar position for given unit
public static GetHPbarPosition ( Unit unit ) : System.Vector2
unit Unit /// The unit. ///
return System.Vector2

GetHpBarSizeY() public static method

Returns HealthBar Y position for given unit
public static GetHpBarSizeY ( Unit unit = null ) : float
unit Unit /// The unit. ///
return float

GetTopPanelPosition() public static method

Returns top panel position for given hero
public static GetTopPanelPosition ( Hero hero ) : System.Vector2
hero Hero /// The hero. ///
return System.Vector2

GetTopPanelSize() public static method

Returns top panel size
public static GetTopPanelSize ( Hero hero ) : double[]
hero Hero /// The hero. ///
return double[]

GetTopPanelSizeX() public static method

Returns top panel hero icon width
public static GetTopPanelSizeX ( Hero hero ) : double
hero Hero /// The hero. ///
return double

GetTopPanelSizeY() public static method

Returns top panel hero icon height
public static GetTopPanelSizeY ( Hero hero ) : double
hero Hero /// The hero. ///
return double

RatioPercentage() public static method

The ratio percentage.
public static RatioPercentage ( ) : float
return float

ScreenSizeX() public static method

Returns screen width
public static ScreenSizeX ( ) : float
return float

ScreenSizeY() public static method

Returns screen height
public static ScreenSizeY ( ) : float
return float

WorldToMinimap() public static method

The world to minimap.
public static WorldToMinimap ( this mapPosition ) : System.Vector2
mapPosition this /// The map position. ///
return System.Vector2