Skip to main content

ExtendedItemCustomDraw

Callable

  • ExtendedItemCustomDraw(Name: string, X: number, Y: number, imagePath?: string, IsSelected?: boolean, ChangeWhenLocked?: boolean): void

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


    Parameters

    • Name: string

      The name of the button and its pseudo-type

    • X: number

      The X coordinate of the button

    • Y: number

      The Y coordinate of the button

    • imagePath: string = null

      — The pa

    • IsSelected: boolean = false

      Whether the button is selected or not

    • ChangeWhenLocked: boolean = true

      Whether the button can be clicked when locked

    Returns void

    Nothing