Creating UIs: Difference between revisions
Appearance
. Tag: Reverted |
m Reverted edits by WikiAudit2026 (talk) to last revision by Fruitkitty Tag: Rollback |
||
| (2 intermediate revisions by one other user not shown) | |||
| Line 1: | Line 1: | ||
== Creating UI == | |||
* Open <code>Config UI</code>, and head over to <code>Customizer</code> page | |||
* Click "add" | |||
* Click "action form" (feel free to try out the other ui types though!) | |||
== Filling in the properties == | |||
=== Title (required) === | |||
The title is the text at the top of the form | |||
=== Body (optional) === | |||
The body is the text under the title, but above the buttons | |||
=== Scriptevent (required) === | |||
The scriptevent is how you open the UI. It is like a unique identifier | |||
To open your UI, do <code>/scriptevent leaf:open UI_SCRIPTEVENT</code>. | |||
Example: <code>/scriptevent leaf:open server-ui</code> | |||
=== After cancel action === | |||
If the user closes the UI without clicking a button, you can run a command. | |||
< | === UI Layout === | ||
</ | This is pretty much the layout of the UI. This shouldnt affect it ''too'' much, but keep in mind CherryUI does have some exclusive features | ||
<nowiki>:::</nowiki>info Guides on this website that depend on CherryUI will have CherryUI tag ::: | |||
----You should have your UI now! :3 | |||
Latest revision as of 04:47, 19 June 2026
Creating UI
- Open
Config UI, and head over toCustomizerpage - Click "add"
- Click "action form" (feel free to try out the other ui types though!)
Filling in the properties
Title (required)
The title is the text at the top of the form
Body (optional)
The body is the text under the title, but above the buttons
Scriptevent (required)
The scriptevent is how you open the UI. It is like a unique identifier
To open your UI, do /scriptevent leaf:open UI_SCRIPTEVENT.
Example: /scriptevent leaf:open server-ui
After cancel action
If the user closes the UI without clicking a button, you can run a command.
UI Layout
This is pretty much the layout of the UI. This shouldnt affect it too much, but keep in mind CherryUI does have some exclusive features
:::info Guides on this website that depend on CherryUI will have CherryUI tag :::
You should have your UI now! :3