UiToolkitAPI
Functions
AddDenyAllInputToGame
Denies input to the game by filtering input events. Returns a handle used by ReleaseDenyAllInputToGame.
Parameters
Name | Type | Description |
panelPtr | GenericPanel | No description provided. |
strDebugContextName | string | No description provided. |
AddDenyMouseInputToGame
Denies mouse input to the game by filtering mouse input events. Returns a handle used by ReleaseDenyMouseInputToGame.
Parameters
Name | Type | Description |
panelPtr | GenericPanel | No description provided. |
strDebugContextName | string | No description provided. |
CloseAllVisiblePopups
Force closing all visible popups
GetGlobalObject
Returns a global object that can be used to store global variables you would like to share across js files.
HideCustomLayoutTooltip
Hide the tooltip with the given id.
Parameter
Name | Type | Description |
tooltipID | string | No description provided. |
HideTextTooltip
Hide the text tooltip
HideTitleImageTextTooltip
Hide the title image text tooltip
HideTitleTextTooltip
Hide the title text tooltip
InvokeJSCallback
Invoke a javascript callback using a handle previously registered with RegisterJSCallback. First argument must be the callback handle followed by the callback's arguments.
Parameters
Name | Type | Description |
callback | number | No description provided. |
...args | any[] | No description provided. |
IsPanoramaInECOMode
Is Panorama in ECO (perf) mode
MakeStringSafe
No description provided.
Parameter
Name | Type | Description |
str | string | No description provided. |
ProfilingScopeBegin
Notify telemetry that a zone is been entered
Parameter
Name | Type | Description |
tagName | string | No description provided. |
ProfilingScopeEnd
Notify telemetry that a zone is been left. Returns duration in milliseconds.
RegisterHUDPanel2d
Register a HUD panel type name with the corresponding layout file
Parameters
Name | Type | Description |
panelTypeName | string | No description provided. |
layoutFile | string | No description provided. |
RegisterJSCallback
Register a javascript callback that can be invoke at a later stage using InvokeJSCallback. Returns a callback handle.
Parameter
Name | Type | Description |
callback | Func<any[], void> | No description provided. |
RegisterPanel2d
Register a panel type name with the corresponding layout file
Parameters
Name | Type | Description |
panelTypeName | string | No description provided. |
layoutFile | string | No description provided. |
ReleaseDenyAllInputToGame
ReleaseDenyAllInputToGame takes a handle as parameters previously returned by AddDenyAllInputToGame
Parameter
Name | Type | Description |
handle | string | number | No description provided. |
ReleaseDenyMouseInputToGame
ReleaseDenyMouseInputToGame takes a handle as parameters previously returned by AddDenyMouseInputToGame
Parameter
Name | Type | Description |
handle | string | number | No description provided. |
ShowCustomLayoutContextMenu
Show a context menu with a specific id and using the given layout. targetPanelID can be the empty string in which case the cursor position is used to position the context menu. Returns context menu panel.
Parameters
Name | Type | Description |
targetPanelID | string | No description provided. |
contentmenuID | string | No description provided. |
layoutFile | string | No description provided. |
ShowCustomLayoutContextMenuParameters
Show a context menu with a specific id and using the given layout and parameters. targetPanelID can be the empty string in which case the cursor position is used to position the context menu. Returns context menu panel.
Parameters
Name | Type | Description |
targetPanelID | string | No description provided. |
contentmenuID | string | No description provided. |
layoutFile | string | No description provided. |
parameters | string | No description provided. |
ShowCustomLayoutContextMenuParametersDismissEvent
Show a context menu with a specific id and using the given layout and parameters and call a function when dismissed. targetPanelID can be the empty string in which case the cursor position is used to position the context menu. Returns context menu panel.
Parameters
Name | Type | Description |
targetPanelID | string | No description provided. |
contentmenuID | string | No description provided. |
layoutFile | string | No description provided. |
parameters | string | No description provided. |
dismissJsFunc | unknown | No description provided. |
ShowCustomLayoutParametersTooltip
Show a tooltip with a specifix id and using the given layout and parameters.
Parameters
Name | Type | Description |
targetPanelID | string | No description provided. |
tooltipID | string | No description provided. |
layoutFile | string | No description provided. |
parameters | string | No description provided. |
ShowCustomLayoutParametersTooltipStyled
Show a tooltip with a specifix id and using the given layout and parameters. Also apply a CSS class named "style" (to the tooltip root panel) in order to allow custom styling (eg. "Tooltip_NoArrow" to remove tooltip's arrow).
Parameters
Name | Type | Description |
targetPanelID | string | No description provided. |
tooltipID | string | No description provided. |
layoutFile | string | No description provided. |
parameters | string | No description provided. |
style | string | No description provided. |
ShowCustomLayoutPopup
Show a popup that lets you specify a layout.
Parameters
Name | Type | Description |
popupID | string | No description provided. |
layoutFile | string | No description provided. |
ShowCustomLayoutPopupParameters
Show a popup that lets you specify a layout and parameters.
Parameters
Name | Type | Description |
popupID | string | No description provided. |
layoutFile | string | No description provided. |
parameters | string | No description provided. |
ShowCustomLayoutTooltip
Show a tooltip with a specifix id and using the given layout.
Parameters
Name | Type | Description |
targetPanelID | string | No description provided. |
tooltipID | string | No description provided. |
layoutFile | string | No description provided. |
ShowCustomLayoutTooltipStyled
Show a tooltip with a specifix id and using the given layout. Also apply a CSS class named "style" (to the tooltip root panel) in order to allow custom styling (eg. "Tooltip_NoArrow" to remove tooltip's arrow).
Parameters
Name | Type | Description |
targetPanelID | string | No description provided. |
tooltipID | string | No description provided. |
layoutFile | string | No description provided. |
style | string | No description provided. |
ShowGenericPopup
Show a popup with the given title add message and optional style. Button present: "OK".
Parameters
Name | Type | Description |
title | string | No description provided. |
message | string | No description provided. |
style | string | No description provided. |
ShowGenericPopupBgStyle
Show a popup with the given title add message and optional style. You can specify the background style ("none", "dim" or "blur"). Button present: "OK".
Parameters
Name | Type | Description |
title | string | No description provided. |
message | string | No description provided. |
style | string | No description provided. |
bgStyle | string | No description provided. |
ShowGenericPopupCancel
Show a popup with the given title add message and optional style. Button present: "Cancel".
Parameters
Name | Type | Description |
title | string | No description provided. |
message | string | No description provided. |
style | string | No description provided. |
cancelJSFunc | unknown | No description provided. |
ShowGenericPopupCancelBgStyle
Show a popup with the given title add message and optional style. You can specify the background style ("none", "dim" or "blur"). Button present: "Cancel".
Parameters
Name | Type | Description |
title | string | No description provided. |
message | string | No description provided. |
style | string | No description provided. |
cancelJSFunc | unknown | No description provided. |
bgStyle | string | No description provided. |
ShowGenericPopupOk
Show a popup with the given title add message and optional style. Button present: "OK".
Parameters
Name | Type | Description |
title | string | No description provided. |
message | string | No description provided. |
style | string | No description provided. |
okJSFunc | unknown | No description provided. |
ShowGenericPopupOkBgStyle
Show a popup with the given title add message and optional style. You can specify the background style ("none", "dim" or "blur"). Button present: "OK".
Parameters
Name | Type | Description |
title | string | No description provided. |
message | string | No description provided. |
style | string | No description provided. |
okJSFunc | unknown | No description provided. |
bgStyle | string | No description provided. |
ShowGenericPopupOkCancel
Show a popup with the given title add message and optional style. Button present: "Ok"/"Cancel".
Parameters
Name | Type | Description |
title | string | No description provided. |
message | string | No description provided. |
style | string | No description provided. |
okJSFunc | unknown | No description provided. |
cancelJSFunc | unknown | No description provided. |
ShowGenericPopupOkCancelBgStyle
Show a popup with the given title add message and optional style. You can specify the background style ("none", "dim" or "blur"). Button present: "Ok"/"Cancel".
Parameters
Name | Type | Description |
title | string | No description provided. |
message | string | No description provided. |
style | string | No description provided. |
okJSFunc | unknown | No description provided. |
cancelJSFunc | unknown | No description provided. |
bgStyle | string | No description provided. |
ShowGenericPopupOneOption
Show a popup with the given title add message and optional style and let you specify the name of one button.
Parameters
Name | Type | Description |
title | string | No description provided. |
message | string | No description provided. |
style | string | No description provided. |
optionName | string | No description provided. |
optionJSFunc | unknown | No description provided. |
ShowGenericPopupOneOptionBgStyle
Show a popup with the given title add message and optional style and let you specify the name of one button. You can specify the background style ("none", "dim" or "blur").
Parameters
Name | Type | Description |
title | string | No description provided. |
message | string | No description provided. |
style | string | No description provided. |
optionName | string | No description provided. |
optionJSFunc | unknown | No description provided. |
bgStyle | string | No description provided. |
ShowGenericPopupThreeOptions
Show a popup with the given title add message and optional style and let you specify the name of two button.
Parameters
Name | Type | Description |
title | string | No description provided. |
message | string | No description provided. |
style | string | No description provided. |
option1Name | string | No description provided. |
option1JSFunc | unknown | No description provided. |
option2Name | string | No description provided. |
option2JSFunc | unknown | No description provided. |
option3Name | string | No description provided. |
option3JSFunc | unknown | No description provided. |
ShowGenericPopupThreeOptionsBgStyle
Show a popup with the given title add message and optional style and let you specify the name of two button. You can specify the background style ("none", "dim" or "blur").
Parameters
Name | Type | Description |
title | string | No description provided. |
message | string | No description provided. |
style | string | No description provided. |
option1Name | string | No description provided. |
option1JSFunc | unknown | No description provided. |
option2Name | string | No description provided. |
option2JSFunc | unknown | No description provided. |
option3Name | string | No description provided. |
option3JSFunc | unknown | No description provided. |
bgStyle | string | No description provided. |
ShowGenericPopupTwoOptions
Show a popup with the given title add message and optional style and let you specify the name of two button.
Parameters
Name | Type | Description |
title | string | No description provided. |
message | string | No description provided. |
style | string | No description provided. |
option1Name | string | No description provided. |
option1JSFunc | unknown | No description provided. |
option2Name | string | No description provided. |
option2JSFunc | unknown | No description provided. |
ShowGenericPopupTwoOptionsBgStyle
Show a popup with the given title add message and optional style and let you specify the name of two button. You can specify the background style ("none", "dim" or "blur").
Parameters
Name | Type | Description |
title | string | No description provided. |
message | string | No description provided. |
style | string | No description provided. |
option1Name | string | No description provided. |
option1JSFunc | unknown | No description provided. |
option2Name | string | No description provided. |
option2JSFunc | unknown | No description provided. |
bgStyle | string | No description provided. |
ShowGenericPopupYesNo
Show a popup with the given title add message and optional style. Button present: "Yes"/"No".
Parameters
Name | Type | Description |
title | string | No description provided. |
message | string | No description provided. |
style | string | No description provided. |
yesJSFunc | unknown | No description provided. |
noJSFunc | unknown | No description provided. |
ShowGenericPopupYesNoBgStyle
Show a popup with the given title add message and optional style. You can specify the background style ("none", "dim" or "blur"). Button present: "Yes"/"No".
Parameters
Name | Type | Description |
title | string | No description provided. |
message | string | No description provided. |
style | string | No description provided. |
yesJSFunc | unknown | No description provided. |
noJSFunc | unknown | No description provided. |
bgStyle | string | No description provided. |
ShowGenericPopupYesNoCancel
Show a popup with the given title add message and optional style. Button present: "Yes"/"No"/"Cancel".
Parameters
Name | Type | Description |
title | string | No description provided. |
message | string | No description provided. |
style | string | No description provided. |
yesJSFunc | unknown | No description provided. |
noJSFunc | unknown | No description provided. |
cancelJSFunc | unknown | No description provided. |
ShowGenericPopupYesNoCancelBgStyle
Show a popup with the given title add message and optional style. You can specify the background style ("none", "dim" or "blur"). Button present: "Yes"/"No"/"Cancel".
Parameters
Name | Type | Description |
title | string | No description provided. |
message | string | No description provided. |
style | string | No description provided. |
yesJSFunc | unknown | No description provided. |
noJSFunc | unknown | No description provided. |
cancelJSFunc | unknown | No description provided. |
bgStyle | string | No description provided. |
ShowGlobalCustomLayoutPopup
Show a popup on the 'global popups top level window' that lets you specify a layout.
Parameters
Name | Type | Description |
popupID | string | No description provided. |
layoutFile | string | No description provided. |
ShowGlobalCustomLayoutPopupParameters
Show a popup on 'global popups top level window' that lets you specify a layout and parameters.
Parameters
Name | Type | Description |
popupID | string | No description provided. |
layoutFile | string | No description provided. |
parameters | string | No description provided. |
ShowSimpleContextMenu
Show a context menu with a specific id and populate the context menu item list using the given "items" array. targetPanelID can be the empty string in which case the cursor position is used to position the context menu. Returns context menu panel.
Parameters
Name | Type | Description |
targetPanelID | string | No description provided. |
contentmenuID | string | No description provided. |
items | UiToolkitAPI.SimpleContextMenuItem[] | No description provided. |
ShowSimpleContextMenuWithDismissEvent
Show a context menu with a specific id and populate the context menu item list using the given "items" array. targetPanelID can be the empty string in which case the cursor position is used to position the context menu. Returns context menu panel.
Parameters
Name | Type | Description |
targetPanelID | string | No description provided. |
contentmenuID | string | No description provided. |
items | UiToolkitAPI.SimpleContextMenuItem[] | No description provided. |
dismissJsFunc | unknown | No description provided. |
ShowTextTooltip
Show a tooltip with the given text
Parameters
Name | Type | Description |
targetPanelID | string | No description provided. |
text | string | No description provided. |
ShowTextTooltipOnPanel
Show a tooltip with the given text on given panel
Parameters
Name | Type | Description |
targetPanel | unknown | No description provided. |
text | string | No description provided. |
ShowTextTooltipOnPanelStyled
Show a tooltip with the given text on given panel. Also apply a CSS class named "style" to allow custom styling.
Parameters
Name | Type | Description |
targetPanel | unknown | No description provided. |
text | string | No description provided. |
style | string | No description provided. |
ShowTextTooltipStyled
Show a tooltip with the given text. Also apply a CSS class named "style" to allow custom styling.
Parameters
Name | Type | Description |
targetPanelID | string | No description provided. |
text | string | No description provided. |
style | string | No description provided. |
ShowTitleImageTextTooltip
Show a tooltip with the given title, image and text.
Parameters
Name | Type | Description |
targetPanelID | string | No description provided. |
title | string | No description provided. |
image | string | No description provided. |
text | string | No description provided. |
ShowTitleImageTextTooltipStyled
Show a tooltip with the giben title, image and text. Also apply a CSS class named "style" to allow custom styling.
Parameters
Name | Type | Description |
targetPanelID | string | No description provided. |
title | string | No description provided. |
image | string | No description provided. |
text | string | No description provided. |
style | string | No description provided. |
ShowTitleTextTooltip
Show a tooltip with the given title and text.
Parameters
Name | Type | Description |
targetPanelID | string | No description provided. |
title | string | No description provided. |
text | string | No description provided. |
ShowTitleTextTooltipStyled
Show a tooltip with the given title and text. Also apply a CSS class named "style" to allow custom styling.
Parameters
Name | Type | Description |
targetPanelID | string | No description provided. |
title | string | No description provided. |
text | string | No description provided. |
style | string | No description provided. |
UnregisterJSCallback
Unregister a javascript callback previously registered with RegisterJSCallback.
Parameter
Name | Type | Description |
jsCallbackHandle | number | No description provided. |