# Quantity Prompt UGUI

<div><figure><img src="https://content.gitbook.com/content/U01GoZemiyGb05FxOrLe/blobs/e71eLTjUuT21nrHZC55D/image_2025-03-13_234858201.png" alt=""><figcaption></figcaption></figure> <figure><img src="https://content.gitbook.com/content/U01GoZemiyGb05FxOrLe/blobs/z2jqCo5fvOAlTayTzzBb/image_2025-01-06_005237932.png" alt="" width="375"><figcaption></figcaption></figure></div>

The Inventool Quantity Prompt UGUI is a component designed to let players confirm or cancel actions that require a user-defined quantity. While primarily intended for shopkeeper interactions, it can also be used for other purposes. Additionally, it supports displaying small icons on buttons.

| Name                    | Description                                                                                 |
| ----------------------- | ------------------------------------------------------------------------------------------- |
| Hidden Close Button     | The hidden close button. This is usually at the back of the confirm prompt and full-screen. |
| Title Label             | The label that displays the title.                                                          |
| Target Graphic          | The image that displays the target graphic.                                                 |
| Quantity Slider         | The quantity slider.                                                                        |
| Quantity Field          | The quantity text field.                                                                    |
| Left Button             | The left button.                                                                            |
| Right Button            | The right button.                                                                           |
| Left Button Icon Image  | The image that displays the left button icon.                                               |
| Right Button Icon Image | The image that displays the right button icon.                                              |
| Left Button Label       | The label that displays the left button text.                                               |
| Right Button Label      | The label that displays the right button text.                                              |

## Scripting Side

{% content-ref url="../../../../scripting/api/ui/ugui/inventool-quantity-prompt-ugui" %}
[inventool-quantity-prompt-ugui](https://stylishesper.gitbook.io/inventool/inventool-v1/scripting/api/ui/ugui/inventool-quantity-prompt-ugui)
{% endcontent-ref %}
