C# Class RAGENativeUI.Common

Show file Open project: alexguirre/RAGENativeUI Class Usage Examples

Public Methods

Method Description
GetPressedKeys ( ) : ICollection

Gets the current pressed keys.

IsDisabledControlJustPressed ( int index, GameControl control ) : bool

Check if a Rage.GameControl is just pressed while it's disabled

IsDisabledControlJustReleased ( int index, GameControl control ) : bool

Check if a Rage.GameControl is just released while it's disabled

IsDisabledControlPressed ( int index, GameControl control ) : bool

Check if a Rage.GameControl is pressed while it's disabled

PlaySound ( string soundFile, string soundSet ) : void
WriteFileFromResources ( Assembly yourAssembly, string fullResourceName ) : string

Save an embedded resource to a temporary file.

WriteFileFromResources ( Assembly yourAssembly, string fullResourceName, string savePath ) : string

Save an embedded resource to a concrete path.

Method Details

GetPressedKeys() public static method

Gets the current pressed keys.
public static GetPressedKeys ( ) : ICollection
return ICollection

IsDisabledControlJustPressed() public static method

Check if a Rage.GameControl is just pressed while it's disabled
public static IsDisabledControlJustPressed ( int index, GameControl control ) : bool
index int
control GameControl
return bool

IsDisabledControlJustReleased() public static method

Check if a Rage.GameControl is just released while it's disabled
public static IsDisabledControlJustReleased ( int index, GameControl control ) : bool
index int
control GameControl
return bool

IsDisabledControlPressed() public static method

Check if a Rage.GameControl is pressed while it's disabled
public static IsDisabledControlPressed ( int index, GameControl control ) : bool
index int
control GameControl
return bool

PlaySound() public static method

public static PlaySound ( string soundFile, string soundSet ) : void
soundFile string
soundSet string
return void

WriteFileFromResources() public static method

Save an embedded resource to a temporary file.
public static WriteFileFromResources ( Assembly yourAssembly, string fullResourceName ) : string
yourAssembly System.Reflection.Assembly Your executing assembly.
fullResourceName string Resource name including your solution name. E.G MyMenuMod.banner.png
return string

WriteFileFromResources() public static method

Save an embedded resource to a concrete path.
public static WriteFileFromResources ( Assembly yourAssembly, string fullResourceName, string savePath ) : string
yourAssembly System.Reflection.Assembly Your executing assembly.
fullResourceName string Resource name including your solution name. E.G MyMenuMod.banner.png
savePath string Path to where save the file, including the filename.
return string