Elements

Here is an explanation of menu elements and their respected properties

Creating Elements

When using juju.create_element there is an argument labeled types. Below is an example of how to properly set up this argument.

juju.create_element(1, "Example keybind with toggle", {
    keybind = {
        key_flag = "example_keybind",
        method_flag = "example_method",
        default_method = 1,
        hide = false,
        lock_method = false,
        default_key = Enum.KeyCode.Insert
    },
    toggle = {
        flag = "example_toggle"
    }
}, true)

You can combine any elements, but please note that there are no checks for them. Meaning if, for example, you combine a dropdown with a slider, they will be inside of each other on the menu.

Last updated