Widget handler: OnClick

From AddOn Studio
Revision as of 23:04, 13 August 2008 by WoWWiki>Mundocani
Jump to navigation Jump to search

Widget handlers < OnClick

Description

The OnClick handler is called when a UI element is clicked with the mouse.

Arguments

self - the button being clicked

button - a string representing the button that was clicked. Can be any of the following:

  • LeftButton
  • RightButton
  • MiddleButton
  • Button4
  • Button5

According to how the UI element is setup with API_Button_RegisterForClicks

down - whether the button is down (1 or nil? true or false? someone please provide more info)