Skip to main content

DrawButton

Callable

  • DrawButton(Left: number, Top: number, Width: number, Height: number, Label: string, Color: string, Image?: string, HoveringText?: string, Disabled?: boolean): void

  • Draws a button component


    Parameters

    • Left: number

      Position of the component from the left of the canvas

    • Top: number

      Position of the component from the top of the canvas

    • Width: number

      Width of the component

    • Height: number

      Height of the component

    • Label: string

      Text to display in the button

    • Color: string

      Color of the component

    • optionalImage: string

      URL of the image to draw inside the button, if applicable

    • optionalHoveringText: string

      Text of the tooltip, if applicable

    • optionalDisabled: boolean

      Disables the hovering options if set to true

    Returns void

    • Nothing