C# Class ManicDigger.Hud.HUDLayoutHelper

Helper that loads and saves the HUD layout.
Mostrar archivo Open project: henon/manic_digger Class Usage Examples

Public Methods

Method Description
GetAbsX ( int screenWidth, float percentualX ) : float
GetAbsY ( int screenHeight, float percentualY ) : float
GetRelX ( int screenWidth, float absoluteX ) : float
GetRelY ( int screenHeight, float absoluteY ) : float
LoadLayout ( Stream stream, IHUD hud, int screenWidth, int screenHeight ) : void
SaveLayout ( Stream stream, IHUD hud ) : void

Private Methods

Method Description
HUDLayoutHelper ( ) : System

Method Details

GetAbsX() public static method

public static GetAbsX ( int screenWidth, float percentualX ) : float
screenWidth int
percentualX float
return float

GetAbsY() public static method

public static GetAbsY ( int screenHeight, float percentualY ) : float
screenHeight int
percentualY float
return float

GetRelX() public static method

public static GetRelX ( int screenWidth, float absoluteX ) : float
screenWidth int
absoluteX float
return float

GetRelY() public static method

public static GetRelY ( int screenHeight, float absoluteY ) : float
screenHeight int
absoluteY float
return float

LoadLayout() public static method

public static LoadLayout ( Stream stream, IHUD hud, int screenWidth, int screenHeight ) : void
stream Stream
hud IHUD
screenWidth int
screenHeight int
return void

SaveLayout() public static method

public static SaveLayout ( Stream stream, IHUD hud ) : void
stream Stream
hud IHUD
return void