Skip to content

ISourceGame

Defined in: core/source/igame.ts:15

getGameFPSCap(): Promise<number>

Defined in: core/source/igame.ts:87

return: Promise

Get the maximum number of frames per second the game is being limited to by XBC

Promise<number>


getOfflineImage(): Promise<string>

Defined in: core/source/igame.ts:62

return: Promise

Get the offline image of a game item

Promise<string>


isShowMouseEnabled(): Promise<boolean>

Defined in: core/source/igame.ts:37

return: Promise

Check if Show Mouse is currently enabled or not

Promise<boolean>


isSpecialOptimizationEnabled(): Promise<boolean>

Defined in: core/source/igame.ts:21

return: Promise

Check if Game Special Optimization is currently enabled or not

Promise<boolean>


isTransparent(): Promise<boolean>

Defined in: core/source/igame.ts:70

return: Promise

Get the transparency of a game item. Please note that game source transparency only works if Game Special Optimization is also enabled.

Promise<boolean>


setGameFPSCap(fps): Promise<ISourceGame>

Defined in: core/source/igame.ts:97

param: path

Set the maximum number of frames per second the game is being limited to by XBC. Accepter values are either 0 (disable capping) or within the range of 24 to 300 fps

Chainable.

number

Promise<ISourceGame>


setOfflineImage(path): Promise<ISourceGame>

Defined in: core/source/igame.ts:55

param: path

Set the offline image of a game item

Chainable.

string

Promise<ISourceGame>


setShowMouseEnabled(value): Promise<ISourceGame>

Defined in: core/source/igame.ts:46

param: (value: boolean)

Set Show Mouse in game to on or off

Chainable.

boolean

Promise<ISourceGame>


setSpecialOptimizationEnabled(value): Promise<ISourceGame>

Defined in: core/source/igame.ts:30

param: Promise

Set Game Special Optimization to on or off

Chainable.

boolean

Promise<ISourceGame>


setTransparent(value): Promise<ISourceGame>

Defined in: core/source/igame.ts:80

param: value

Set the transparency of a game source Please note that game transparency only works if Game Special Optimization is also enabled.

Chainable.

boolean

Promise<ISourceGame>