Saltar al contenido principal

Paper Dialog

Displays a native Paper dialog menu with various button types and input fields. Requires Paper 1.21.6+.

Configuration

FieldTypeDescription
displayNameVar<String>Dialog title
messageVar<String>Body text (supports multiline)
bodyItemVar<Item>Optional item showcased in the dialog body (empty for none)
buttonsList<DialogButtonConfig>List of buttons and inputs
showExitButtonVar<Boolean>Show/hide the exit button
columnsVar<Int>Number of button columns
dialogTypeEnumWindow layout: MULTI_ACTION (grid), CONFIRMATION (yes/no), NOTICE (single button)
afterActionEnumClient behaviour after a click: CLOSE, NONE, WAIT_FOR_RESPONSE

Dialog Types

  • MULTI_ACTION — the default grid of buttons, columns per row.
  • CONFIRMATION — vanilla yes/no window: the first button confirms, the exit button declines.
  • NOTICE — single-button notice window using the first button (or the exit button).

Button Types

Action Button

Simple button that executes a command when clicked.

FieldTypeDescription
labelVar<String>Button text
commandVar<String>Command to execute
asOpVar<Boolean>Execute the command with OP elevation

Trigger Button

Fires Typewriter entries directly when clicked — no command detour.

FieldTypeDescription
labelVar<String>Button text
triggersList<Ref<TriggerableEntry>>Entries triggered on click

Text Input

Text field with a submit button.

FieldTypeDescription
labelVar<String>Input label
keyVar<String>Key used in the command macro (default input)
buttonLabelVar<String>Submit button text
commandVar<String>Command (use $(<key>) for value)
initialStringDefault text value
maxLengthIntMaximum character limit
maxLinesIntMaximum lines for multiline

Boolean Toggle

On/Off toggle switch.

FieldTypeDescription
keyVar<String>Variable key for placeholder (default boolean)
labelVar<String>Toggle label
onTrueVar<String>Text when enabled
onFalseVar<String>Text when disabled
commandVar<String>Command (use $(<key>) for value)

Multiple Choice

Dropdown/list selector.

FieldTypeDescription
labelVar<String>Selector label
keyVar<String>Key used in the command macro (default choice)
optionsVar<String>Comma-separated options (suffix * for default)
commandVar<String>Command (use $(<key>) for value)

Number Range

Slider for numeric values.

FieldTypeDescription
keyVar<String>Variable key for placeholder (default value)
labelVar<String>Slider label
startVar<Int>Minimum value
endVar<Int>Maximum value
stepVar<Int>Step increment
commandVar<String>Command (use $(<key>) for value)

[!TIP] Every input type has its own configurable key, so several inputs of the same type can coexist in one dialog — each command macro reads its own $(<key>).

Requirements

[!IMPORTANT] This extension requires Paper 1.21.6+ with the native Dialog API.