Creating UIs: Difference between revisions
Appearance
update Tag: Reverted |
m Reverted edits by WikiAudit2026 (talk) to last revision by Fruitkitty Tag: Rollback |
||
| (One intermediate revision 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 | |||