Skip to content

iSourceGame

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

new iSourceGame(): iSourceGame

iSourceGame

getValue: () => Promise<string | XML>

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

Promise<string | XML>


setValue: (value) => Promise<iSourceGame>

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

string | XML

Promise<iSourceGame>

getGameFPSCap(): Promise<number>

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

return: Promise

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

Promise<number>

ISourceGame.getGameFPSCap


getOfflineImage(): Promise<string>

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

return: Promise

Get the offline image of a game item

Promise<string>

ISourceGame.getOfflineImage


isShowMouseEnabled(): Promise<boolean>

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

return: Promise

Check if Show Mouse is currently enabled or not

Promise<boolean>

ISourceGame.isShowMouseEnabled


isSpecialOptimizationEnabled(): Promise<boolean>

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

return: Promise

Check if Game Special Optimization is currently enabled or not

Promise<boolean>

ISourceGame.isSpecialOptimizationEnabled


isTransparent(): Promise<boolean>

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

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>

ISourceGame.isTransparent


setGameFPSCap(value): Promise<iSourceGame>

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

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>

ISourceGame.setGameFPSCap


setOfflineImage(path): Promise<iSourceGame>

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

param: path

Set the offline image of a game item

Chainable.

string

Promise<iSourceGame>

ISourceGame.setOfflineImage


setShowMouseEnabled(value): Promise<iSourceGame>

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

param: (value: boolean)

Set Show Mouse in game to on or off

Chainable.

boolean

Promise<iSourceGame>

ISourceGame.setShowMouseEnabled


setSpecialOptimizationEnabled(value): Promise<iSourceGame>

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

param: Promise

Set Game Special Optimization to on or off

Chainable.

boolean

Promise<iSourceGame>

ISourceGame.setSpecialOptimizationEnabled


setTransparent(value): Promise<iSourceGame>

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

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>

ISourceGame.setTransparent