Skip to main content

ExtendedItemDrawCheckbox

Callable

  • ExtendedItemDrawCheckbox(name: string, x: number, y: number, isChecked: boolean, options?: { changeWhenLocked: boolean; height: number; text: string; textColor: string; width: number }): void

  • Helper click function for creating custom check boxes, including extended item permission support.


    Parameters

    • name: string

      The name of the checkbox and its pseudo-type

    • x: number

      The X coordinate of the checkbox

    • y: number

      The Y coordinate of the checkbox

    • isChecked: boolean

      Whether the checkbox is checked or not

    • options: { changeWhenLocked: boolean; height: number; text: string; textColor: string; width: number } = null
      • changeWhenLocked: boolean

        Whether the checkbox can be toggled when locked

      • height: number

        Height of the checkbox

      • text: string

        Label associated with the checkbox

      • textColor: string
      • width: number

        Width of the checkbox

    Returns void