C# Class ManicDigger.Hud.HUDLayoutHelper

Helper that loads and saves the HUD layout.
Afficher le fichier Open project: henon/manic_digger Class Usage Examples

Méthodes publiques

Méthode 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

Méthode Description
HUDLayoutHelper ( ) : System

Method Details

GetAbsX() public static méthode

public static GetAbsX ( int screenWidth, float percentualX ) : float
screenWidth int
percentualX float
Résultat float

GetAbsY() public static méthode

public static GetAbsY ( int screenHeight, float percentualY ) : float
screenHeight int
percentualY float
Résultat float

GetRelX() public static méthode

public static GetRelX ( int screenWidth, float absoluteX ) : float
screenWidth int
absoluteX float
Résultat float

GetRelY() public static méthode

public static GetRelY ( int screenHeight, float absoluteY ) : float
screenHeight int
absoluteY float
Résultat float

LoadLayout() public static méthode

public static LoadLayout ( Stream stream, IHUD hud, int screenWidth, int screenHeight ) : void
stream Stream
hud IHUD
screenWidth int
screenHeight int
Résultat void

SaveLayout() public static méthode

public static SaveLayout ( Stream stream, IHUD hud ) : void
stream Stream
hud IHUD
Résultat void