OSRS Plugin API
    Preparing search index...

    Interface Interactable

    interface Interactable {
        enabled: boolean;
    }

    Hierarchy (View Summary)

    Implemented by

    Index

    Properties

    Properties

    enabled: boolean

    Controls whether an interactive element is enabled/disabled.

    true
    
    -- Create new container
    local newWindow = osrs.Ui.window({title = "Example Window"})

    -- Create a checkbox that is interactable, and one that is not
    local interactableCheckbox = osrs.Ui.checkbox(
    {
    label = "Interactable",
    onValueChange = function()
    osrs.print("Checkbox is Interactable")
    end
    }
    )
    local notInteractableCheckbox = osrs.Ui.checkbox(
    {
    label = "Not Interactable",
    enabled = false,
    onValueChange = function()
    osrs.print("Checkbox is not Interactable, this should not print")
    end
    }
    )

    -- Add the Checkbox's to the container
    newWindow:addChild(interactableCheckbox)
    newWindow:addChild(notInteractableCheckbox)

    -- Add container to the canvas
    osrs.Ui.canvas:addChild(newWindow)