Quantity Prompt
Scripting with the InventoolQuantityPrompt class.
The InventoolConfirmPrompt
class is a pop-up UI element that prompts the user to confirm or cancel an action that requires a user-defined quantity.
Fields & Properties
document
The UI document.
UIDocument
protected
root
The root element
VisualElement
protected
hiddenCloseButton
The full-screen invisible close button.
Button
protected
titleLabel
The title label.
Label
protected
descriptionLabel
The description label.
Label
protected
leftButton
The left button option.
Button
protected
rightButton
The right button option.
Button
protected
leftButtonIconElement
Left button icon element.
VisualElement
protected
rightButtonIconElement
Right button icon element.
VisualElement
protected
leftButtonLabel
The left button label.
Label
protected
rightButtonLabel
The right button label.
Label
protected
spacing
The button spacing element.
VisualElement
protected
leftButtonAction
The left button on-click action.
Action
protected
rightButtonAction
The right button on-click action.
Action
protected
LeftButtonColor
The left button color.
Color
public
RightButtonColor
The right button color.
Color
public
Active Instance
You can get the active InventoolConfirmPrompt
instance with InventoolConfirmPrompt.Instance
. Ensure there's an instance of it in your scene before using this field.
Open
The Open
method has many parameters you can use to customize what's displayed on the confirm prompt.
title
The prompt title.
string
description
The prompt description.
string
leftButtonAction
The left button on-click action.
Action
rightButtonAction
The right button on-click action.
Action
showLeftButton
If the left button should be displayed.
bool
showRightButton
If the right button should be displayed.
bool
leftButtonText
The left button text.
string
rightButtonText
The right button text.
string
leftButtonIcon
The left button icon.
Texture2D
rightButtonIcon
The right button icon.
Texture2D
Close
Last updated