Display
CommandMiscellaneous
display [ok|okcancel|yesno|yesnocancel] {message}- Sets
#DispRes
Also searchable as: Display · message box · popup · alert
display shows a Windows message box with the message and waits until the user closes it. The button that
was pressed goes into #DispRes.
Parameters
Section titled “Parameters”| Parameter | Meaning |
|---|---|
| buttons | Optional. ok (the default), okcancel, yesno or yesnocancel. |
message |
The text. $ starts a new line. |
#DispRes is Ok, Yes, No or Cancel. Comparisons ignore case, so #DispRes = yes works.
The script waits while the box is open, but the rest of EasyUO Reforged keeps working.
Example
Section titled “Example”display yesno You have run out of ingots.$Stop the script?if #DispRes = yes haltdisplay ok Going on without ingots.haltSee also
Based on the EasyUO wiki, edited for EasyUO Reforged. This text is available under the GNU Free Documentation License 1.2.