WoW:Widget handlers: Difference between revisions
Jump to navigation
Jump to search
(Created page with "hi. see deleted Widget handlers2 for history. there is a DB error involving what looks like a version of the page with name with underscore and one wihtout and confusing t...") |
m (Move page script moved page Widget handlers to Widget handlers without leaving a redirect) |
(No difference)
|
Latest revision as of 04:49, 15 August 2023
This is a list of all of the types of handlers allowed, and grouped by frame type as returned by the :GetFrameType() method or used in XML.
Reference[edit]
- As of patch 4.0.1, event arguments are no longer set as global variables, and must be passed to the handlers correctly if defined in XML.
Base[edit]
Event handlers used by all major Ui elements.
- OnLoad(self) - called once at element load time, just after element is created in Lua
- OnUpdate(self, elapsed) - called every frame, with elapsed time since last frame
Alpha[edit]
- from Animation:
- OnPlay(self)
- OnPause(self)
- OnStop(self)
- OnFinished(self)
- from Base:
Animation[edit]
- OnPlay(self)
- OnPause(self)
- OnStop(self)
- OnFinished(self)
- from Base:
AnimationGroup[edit]
- OnPlay(self)
- OnPause(self)
- OnStop(self)
- OnFinished(self)
- OnLoop(self, loopState)
- from Base:
Browser[edit]
- from Frame:
- OnChar(self, text)
- OnDragStart(self, button)
- OnDragStop(self)
- OnEnter(self, motion)
- OnEvent(self, event, ...)
- OnHide(self)
- OnKeyDown(self, key)
- OnKeyUp(self, key)
- OnLeave(self, motion)
- OnLoad(self)
- OnMouseDown(self, button)
- OnMouseUp(self, button)
- OnMouseWheel(self, delta)
- OnReceiveDrag(self)
- OnShow(self)
- OnSizeChanged(self, w, h)
- OnUpdate(self, elapsed)
- from Base:
Button[edit]
- OnClick(self, button, down)
- OnDoubleClick(self, button)
- PostClick(self, button, down)
- PreClick(self, button, down)
- from Frame:
- OnChar(self, text)
- OnDragStart(self, button)
- OnDragStop(self)
- OnEnter(self, motion)
- OnEvent(self, event, ...)
- OnHide(self)
- OnKeyDown(self, key)
- OnKeyUp(self, key)
- OnLeave(self, motion)
- OnLoad(self)
- OnMouseDown(self, button)
- OnMouseUp(self, button)
- OnMouseWheel(self, delta)
- OnReceiveDrag(self)
- OnShow(self)
- OnSizeChanged(self, w, h)
- OnUpdate(self, elapsed)
- from Base:
CheckButton[edit]
- from Button:
- OnClick(self, button, down)
- OnDoubleClick(self, button)
- from Frame:
- OnChar(self, text)
- OnDragStart(self, button)
- OnDragStop(self)
- OnEnter(self, motion)
- OnEvent(self, event, ...)
- OnHide(self)
- OnKeyDown(self, key)
- OnKeyUp(self, key)
- OnLeave(self, motion)
- OnLoad(self)
- OnMouseDown(self, button)
- OnMouseUp(self, button)
- OnMouseWheel(self, delta)
- OnReceiveDrag(self)
- OnShow(self)
- OnSizeChanged(self, w, h)
- OnUpdate(self, elapsed)
- from Base:
ColorSelect[edit]
- OnColorSelect(self, r, g, b)
- from Frame:
- OnChar(self, text)
- OnDragStart(self, button)
- OnDragStop(self)
- OnEnter(self, motion)
- OnEvent(self, event, ...)
- OnHide(self)
- OnKeyDown(self, key)
- OnKeyUp(self, key)
- OnLeave(self, motion)
- OnLoad(self)
- OnMouseDown(self, button)
- OnMouseUp(self, button)
- OnMouseWheel(self, delta)
- OnReceiveDrag(self)
- OnShow(self)
- OnSizeChanged(self, w, h)
- OnUpdate(self, elapsed)
- from Base:
DressUpModel[edit]
- from Model:
- OnAnimFinished(self)
- OnUpdateModel(self)
- from Frame:
- OnChar(self, text)
- OnDragStart(self, button)
- OnDragStop(self)
- OnEnter(self, motion)
- OnEvent(self, event, ...)
- OnHide(self)
- OnKeyDown(self, key)
- OnKeyUp(self, key)
- OnLeave(self, motion)
- OnLoad(self)
- OnMouseDown(self, button)
- OnMouseUp(self, button)
- OnMouseWheel(self, delta)
- OnReceiveDrag(self)
- OnShow(self)
- OnSizeChanged(self, w, h)
- OnUpdate(self, elapsed)
- from Base:
EditBox[edit]
- OnArrowPressed(self, key)
- OnCursorChanged(self, x, y, w, h)
- OnEditFocusGained(self)
- OnEditFocusLost(self)
- OnEnterPressed(self)
- OnEscapePressed(self)
- OnHyperlinkClick(self, link, text, button)
- OnHyperlinkEnter(self, link, text)
- OnHyperlinkLeave(self, link, text)
- OnInputLanguageChanged(self, language)
- OnSpacePressed(self)
- OnTabPressed(self)
- OnTextChanged(self)
- OnTextSet(self)
- from Frame:
- OnChar(self, text)
- OnDragStart(self, button)
- OnDragStop(self)
- OnEnter(self, motion)
- OnEvent(self, event, ...)
- OnHide(self)
- OnKeyDown(self, key)
- OnKeyUp(self, key)
- OnLeave(self, motion)
- OnLoad(self)
- OnMouseDown(self, button)
- OnMouseUp(self, button)
- OnMouseWheel(self, delta)
- OnReceiveDrag(self)
- OnShow(self)
- OnSizeChanged(self, w, h)
- OnUpdate(self, elapsed)
- from Base:
Frame[edit]
- OnChar(self, text)
- OnDragStart(self, button)
- OnDragStop(self)
- OnEnter(self, motion)
- OnEvent(self, event, ...)
- OnHide(self)
- OnKeyDown(self, key)
- OnKeyUp(self, key)
- OnLeave(self, motion)
- OnLoad(self)
- OnMouseDown(self, button)
- OnMouseUp(self, button)
- OnMouseWheel(self, delta)
- OnReceiveDrag(self)
- OnShow(self)
- OnSizeChanged(self, w, h)
- OnUpdate(self, elapsed)
- from Base:
GameTooltip[edit]
- OnTooltipAddMoney(self, cost)
- OnTooltipCleared(self)
- OnTooltipSetAchievement
- OnTooltipSetDefaultAnchor
- OnTooltipSetItem(self)
- OnTooltipSetSpell(self)
- OnTooltipSetUnit(self)
- from Frame:
- OnChar(self, text)
- OnDragStart(self, button)
- OnDragStop(self)
- OnEnter(self, motion)
- OnEvent(self, event, ...)
- OnHide(self)
- OnKeyDown(self, key)
- OnKeyUp(self, key)
- OnLeave(self, motion)
- OnLoad(self)
- OnMouseDown(self, button)
- OnMouseUp(self, button)
- OnMouseWheel(self, delta)
- OnReceiveDrag(self)
- OnShow(self)
- OnSizeChanged(self, w, h)
- OnUpdate(self, elapsed)
- from Base:
LootButton[edit]
- from Button:
- OnClick(self, button, down)
- OnDoubleClick(self, button)
- from Frame:
- OnChar(self, text)
- OnDragStart(self, button)
- OnDragStop(self)
- OnEnter(self, motion)
- OnEvent(self, event, ...)
- OnHide(self)
- OnKeyDown(self, key)
- OnKeyUp(self, key)
- OnLeave(self, motion)
- OnLoad(self)
- OnMouseDown(self, button)
- OnMouseUp(self, button)
- OnMouseWheel(self, delta)
- OnReceiveDrag(self)
- OnShow(self)
- OnSizeChanged(self, w, h)
- OnUpdate(self, elapsed)
- from Base:
MessageFrame[edit]
- from Frame:
- OnChar(self, text)
- OnDragStart(self, button)
- OnDragStop(self)
- OnEnter(self, motion)
- OnEvent(self, event, ...)
- OnHide(self)
- OnKeyDown(self, key)
- OnKeyUp(self, key)
- OnLeave(self, motion)
- OnLoad(self)
- OnMouseDown(self, button)
- OnMouseUp(self, button)
- OnMouseWheel(self, delta)
- OnReceiveDrag(self)
- OnShow(self)
- OnSizeChanged(self, w, h)
- OnUpdate(self, elapsed)
- from Base:
Minimap[edit]
- from Frame:
- OnChar(self, text)
- OnDragStart(self, button)
- OnDragStop(self)
- OnEnter(self, motion)
- OnEvent(self, event, ...)
- OnHide(self)
- OnKeyDown(self, key)
- OnKeyUp(self, key)
- OnLeave(self, motion)
- OnLoad(self)
- OnMouseDown(self, button)
- OnMouseUp(self, button)
- OnMouseWheel(self, delta)
- OnReceiveDrag(self)
- OnShow(self)
- OnSizeChanged(self, w, h)
- OnUpdate(self, elapsed)
- from Base:
Model[edit]
- OnAnimFinished(self)
- OnUpdateModel(self)
- from Frame:
- OnChar(self, text)
- OnDragStart(self, button)
- OnDragStop(self)
- OnEnter(self, motion)
- OnEvent(self, event, ...)
- OnHide(self)
- OnKeyDown(self, key)
- OnKeyUp(self, key)
- OnLeave(self, motion)
- OnLoad(self)
- OnMouseDown(self, button)
- OnMouseUp(self, button)
- OnMouseWheel(self, delta)
- OnReceiveDrag(self)
- OnShow(self)
- OnSizeChanged(self, w, h)
- OnUpdate(self, elapsed)
- from Base:
Path[edit]
- from Animation:
- OnPlay(self)
- OnPause(self)
- OnStop(self)
- OnFinished(self)
- from Base:
PlayerModel[edit]
- from Model:
- OnAnimFinished(self)
- OnUpdateModel(self)
- from Frame:
- OnChar(self, text)
- OnDragStart(self, button)
- OnDragStop(self)
- OnEnter(self, motion)
- OnEvent(self, event, ...)
- OnHide(self)
- OnKeyDown(self, key)
- OnKeyUp(self, key)
- OnLeave(self, motion)
- OnLoad(self)
- OnMouseDown(self, button)
- OnMouseUp(self, button)
- OnMouseWheel(self, delta)
- OnReceiveDrag(self)
- OnShow(self)
- OnSizeChanged(self, w, h)
- OnUpdate(self, elapsed)
- from Base:
QuestPOIFrame[edit]
- from Frame:
- OnChar(self, text)
- OnDragStart(self, button)
- OnDragStop(self)
- OnEnter(self, motion)
- OnEvent(self, event, ...)
- OnHide(self)
- OnKeyDown(self, key)
- OnKeyUp(self, key)
- OnLeave(self, motion)
- OnLoad(self)
- OnMouseDown(self, button)
- OnMouseUp(self, button)
- OnMouseWheel(self, delta)
- OnReceiveDrag(self)
- OnShow(self)
- OnSizeChanged(self, w, h)
- OnUpdate(self, elapsed)
- from Base:
Rotation[edit]
- from Animation:
- OnPlay(self)
- OnPause(self)
- OnStop(self)
- OnFinished(self)
- from Base:
Scale[edit]
- from Animation:
- OnPlay(self)
- OnPause(self)
- OnStop(self)
- OnFinished(self)
- from Base:
ScrollFrame[edit]
- OnHorizontalScroll(self, offset)
- OnScrollRangeChanged(self, xrange, yrange)
- OnVerticalScroll(self, offset)
- from Frame:
- OnChar(self, text)
- OnDragStart(self, button)
- OnDragStop(self)
- OnEnter(self, motion)
- OnEvent(self, event, ...)
- OnHide(self)
- OnKeyDown(self, key)
- OnKeyUp(self, key)
- OnLeave(self, motion)
- OnLoad(self)
- OnMouseDown(self, button)
- OnMouseUp(self, button)
- OnMouseWheel(self, delta)
- OnReceiveDrag(self)
- OnShow(self)
- OnSizeChanged(self, w, h)
- OnUpdate(self, elapsed)
- from Base:
ScrollingMessageFrame[edit]
- OnHyperlinkClick(self, link, text, button)
- OnHyperlinkEnter(self, link, text)
- OnHyperlinkLeave(self, link, text)
- OnMessageScrollChanged
- from Frame:
- OnChar(self, text)
- OnDragStart(self, button)
- OnDragStop(self)
- OnEnter(self, motion)
- OnEvent(self, event, ...)
- OnHide(self)
- OnKeyDown(self, key)
- OnKeyUp(self, key)
- OnLeave(self, motion)
- OnLoad(self)
- OnMouseDown(self, button)
- OnMouseUp(self, button)
- OnMouseWheel(self, delta)
- OnReceiveDrag(self)
- OnShow(self)
- OnSizeChanged(self, w, h)
- OnUpdate(self, elapsed)
- from Base:
SimpleHTML[edit]
- OnHyperlinkClick(self, link, text, button)
- OnHyperlinkEnter(self, link, text)
- OnHyperlinkLeave(self, link, text)
- from Frame:
- OnChar(self, text)
- OnDragStart(self, button)
- OnDragStop(self)
- OnEnter(self, motion)
- OnEvent(self, event, ...)
- OnHide(self)
- OnKeyDown(self, key)
- OnKeyUp(self, key)
- OnLeave(self, motion)
- OnLoad(self)
- OnMouseDown(self, button)
- OnMouseUp(self, button)
- OnMouseWheel(self, delta)
- OnReceiveDrag(self)
- OnShow(self)
- OnSizeChanged(self, w, h)
- OnUpdate(self, elapsed)
- from Base:
Slider[edit]
- OnValueChanged(self, value)
- from Frame:
- OnChar(self, text)
- OnDragStart(self, button)
- OnDragStop(self)
- OnEnter(self, motion)
- OnEvent(self, event, ...)
- OnHide(self)
- OnKeyDown(self, key)
- OnKeyUp(self, key)
- OnLeave(self, motion)
- OnLoad(self)
- OnMouseDown(self, button)
- OnMouseUp(self, button)
- OnMouseWheel(self, delta)
- OnReceiveDrag(self)
- OnShow(self)
- OnSizeChanged(self, w, h)
- OnUpdate(self, elapsed)
- from Base:
StatusBar[edit]
- OnValueChanged(self, value)
- from Frame:
- OnChar(self, text)
- OnDragStart(self, button)
- OnDragStop(self)
- OnEnter(self, motion)
- OnEvent(self, event, ...)
- OnHide(self)
- OnKeyDown(self, key)
- OnKeyUp(self, key)
- OnLeave(self, motion)
- OnLoad(self)
- OnMouseDown(self, button)
- OnMouseUp(self, button)
- OnMouseWheel(self, delta)
- OnReceiveDrag(self)
- OnShow(self)
- OnSizeChanged(self, w, h)
- OnUpdate(self, elapsed)
- from Base:
TabardModel[edit]
- OnAnimFinished(self)
- OnUpdateModel(self)
- from Frame:
- OnChar(self, text)
- OnDragStart(self, button)
- OnDragStop(self)
- OnEnter(self, motion)
- OnEvent(self, event, ...)
- OnHide(self)
- OnKeyDown(self, key)
- OnKeyUp(self, key)
- OnLeave(self, motion)
- OnLoad(self)
- OnMouseDown(self, button)
- OnMouseUp(self, button)
- OnMouseWheel(self, delta)
- OnReceiveDrag(self)
- OnShow(self)
- OnSizeChanged(self, w, h)
- OnUpdate(self, elapsed)
- from Base:
Translation[edit]
- from Animation:
- OnPlay(self)
- OnPause(self)
- OnStop(self)
- OnFinished(self)
- from Base: