C# Класс RAGENativeUI.Common

Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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.

Описание методов

GetPressedKeys() публичный статический Метод

Gets the current pressed keys.
public static GetPressedKeys ( ) : ICollection
Результат ICollection

IsDisabledControlJustPressed() публичный статический Метод

Check if a Rage.GameControl is just pressed while it's disabled
public static IsDisabledControlJustPressed ( int index, GameControl control ) : bool
index int
control GameControl
Результат bool

IsDisabledControlJustReleased() публичный статический Метод

Check if a Rage.GameControl is just released while it's disabled
public static IsDisabledControlJustReleased ( int index, GameControl control ) : bool
index int
control GameControl
Результат bool

IsDisabledControlPressed() публичный статический Метод

Check if a Rage.GameControl is pressed while it's disabled
public static IsDisabledControlPressed ( int index, GameControl control ) : bool
index int
control GameControl
Результат bool

PlaySound() публичный статический Метод

public static PlaySound ( string soundFile, string soundSet ) : void
soundFile string
soundSet string
Результат void

WriteFileFromResources() публичный статический Метод

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
Результат string

WriteFileFromResources() публичный статический Метод

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.
Результат string