OSRS Plugin API
    Preparing search index...

    Interface Tooltip

    Floating text element used to display information relevant to an element on-hover.

    interface Tooltip {
        tooltip: string;
    }

    Hierarchy (View Summary)

    Implemented by

    Index

    Properties

    Properties

    tooltip: string

    String to display to the user when hovered over the element.

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

    -- Create a button with a tooltip
    local button = osrs.Ui.textButton({text = "Test", tooltip = "This is a Tooltip!"})

    -- Add slider to the container
    newWindow:addChild(button)

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