#How do I add commands to a Json ui

1 messages · Page 1 of 1 (latest)

stoic drum
#

@ancient pilot This isn't the right channel for this kind of question. Use #1067535382285135923

#

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 ^