Skip to main content

Draw button (rectangle)

This will draw a rectangle as a clickable button. When pressed by a user, all actions inside of this action will run.

note

Relative paths will be resolved from Pandemic's Script Creator's "files" folder.

Parameters

  • X (number)
  • Y (number)
  • Width (number)
  • Height (number)
  • Radius (number)
  • Opacity (0-100) (number)
  • Color (color)
  • Hovered Color (color)
  • Pressed Color (color)