Lore archive · Warcraft Wiki, 2023 dump
Widget script handlers
Last wiki revision 2023-08-21
Widget scripts allow you to respond to user interaction and other types of widget events (such as a frame being shown or hidden). This page lists the available scripts and the list of widget types for which each script is valid.
Registers for clicks on a widget with the script.
- OnUiMapChanged(self, uiMapID)
- OnTooltipAddMoney(self, cost, maxcost) - Run when an amount of money should be added to the tooltip.
- OnTooltipCleared(self) - Run when the tooltip is hidden or its content is cleared.
- OnTooltipSetAchievement(self) - Run when the tooltip is filled with information about an achievement.
- OnTooltipSetDefaultAnchor(self) - Run when the tooltip is repositioned to its default anchor location.
- OnTooltipSetEquipmentSet(self) - Run when the tooltip is filled with information about an equipment set.
- OnTooltipSetFramestack(self, highlightFrame) - Run when the tooltip is filled with a list of frames under the mouse cursor.
- OnTooltipSetItem(self) - Run when the tooltip is filled with information about an item.
- OnTooltipSetQuest(self) - Run when the tooltip is filled with information about a quest.
- OnTooltipSetSpell(self) - Run when the tooltip is filled with information about a spell.
- OnTooltipSetUnit(self) - Run when the tooltip is filled with information about a unit.
PlayerModel / TabardModel inherit the handlers from Model.
- OnAnimFinished(self) - Run when the model's animation finishes.
- OnAnimStarted(self)
- OnModelLoaded(self)
- OnPanFinished
- OnDressModel(self)
- OnMovieFinished(self) - Run when a movie frame's movie ends.
- OnMovieHideSubtitle(self) - Runs when the movie's most recently displayed subtitle should be hidden.
- OnMovieShowSubtitle(self, text) - Runs when a subtitle for the playing movie should be displayed.
- OnMinMaxChanged(self, min, max) - Run when the slider's or status bar's minimum and maximum values change.
- OnValueChanged(self, value, userInput) - Run when the slider's or status bar's value changes.
- OnMinMaxChanged(self, min, max) - Run when the slider's or status bar's minimum and maximum values change.
- OnValueChanged(self, value) - Run when the slider's or status bar's value changes.
- OnDressModel(self)
Scripts for this widget can only be set from XML.
- OnAnimFinished(self)
- OnModelLoaded(self)
- OnModelLoading
Categories
- Widget script handlers
Source
https://warcraft.wiki.gg/wiki/Widget_script_handlers · retrieved 2023-11-13 · CC BY-SA 4.0
Converted from wikitext with templates, tables and images removed, so some sentences may be missing values.
This archive predates WoW: Forever. For collected gameplay facts see the Forever database. Search the archive.