Skip to main content

PromptQueue

Queue system for prompts and other UI

Functions

new

PromptQueue.new() → PromptQueue

Constructs a new prompt queue

Queue

PromptQueue:Queue(transitionModelTransitionModel) → ()

Queues a transition model to be shown

HasItems

PromptQueue:HasItems() → boolean

Returns if the queue has any items

Clear

PromptQueue:Clear(doNotAnimateboolean?) → ()

Clears the current queue

HideCurrent

PromptQueue:HideCurrent(doNotAnimateboolean?) → Promise

Promises the current prompt to be hidden

Show raw api
{
    "functions": [
        {
            "name": "new",
            "desc": "Constructs a new prompt queue",
            "params": [],
            "returns": [
                {
                    "desc": "",
                    "lua_type": "PromptQueue"
                }
            ],
            "function_type": "static",
            "source": {
                "line": 24,
                "path": "src/promptqueue/src/Shared/PromptQueue.lua"
            }
        },
        {
            "name": "Queue",
            "desc": "Queues a transition model to be shown",
            "params": [
                {
                    "name": "transitionModel",
                    "desc": "",
                    "lua_type": "TransitionModel"
                }
            ],
            "returns": [],
            "function_type": "method",
            "source": {
                "line": 41,
                "path": "src/promptqueue/src/Shared/PromptQueue.lua"
            }
        },
        {
            "name": "HasItems",
            "desc": "Returns if the queue has any items",
            "params": [],
            "returns": [
                {
                    "desc": "",
                    "lua_type": "boolean"
                }
            ],
            "function_type": "method",
            "source": {
                "line": 138,
                "path": "src/promptqueue/src/Shared/PromptQueue.lua"
            }
        },
        {
            "name": "Clear",
            "desc": "Clears the current queue",
            "params": [
                {
                    "name": "doNotAnimate",
                    "desc": "",
                    "lua_type": "boolean?"
                }
            ],
            "returns": [],
            "function_type": "method",
            "source": {
                "line": 147,
                "path": "src/promptqueue/src/Shared/PromptQueue.lua"
            }
        },
        {
            "name": "HideCurrent",
            "desc": "Promises the current prompt to be hidden",
            "params": [
                {
                    "name": "doNotAnimate",
                    "desc": "",
                    "lua_type": "boolean?"
                }
            ],
            "returns": [
                {
                    "desc": "",
                    "lua_type": "Promise"
                }
            ],
            "function_type": "method",
            "source": {
                "line": 157,
                "path": "src/promptqueue/src/Shared/PromptQueue.lua"
            }
        }
    ],
    "properties": [],
    "types": [],
    "name": "PromptQueue",
    "desc": "Queue system for prompts and other UI",
    "source": {
        "line": 6,
        "path": "src/promptqueue/src/Shared/PromptQueue.lua"
    }
}