#How do I add commands to a Json ui
1 messages · Page 1 of 1 (latest)
Also
customUi.show(source).then(response => {
if (response.selection === undefined || response.canceled) return;
switch (response.selection) {
case 0:
// Spawn
break;
case 1:
// Shop
break;
case 2:
// Plots
break;
}
});
To make your buttons do things, just add a response handler like this ^