UIHANDLER OnAttributeChanged

From Warcraft Wiki
Jump to navigation Jump to search
Inv mushroom 11.png  GitHub Octocat.png  Blizz.gif  Wowprogramming.png Frame:GetAttribute
Inv mushroom 11.png  GitHub Octocat.png  Blizz.gif  Wowprogramming.png Frame:SetAttribute
Inv mushroom 11.png  GitHub Octocat.png  Blizz.gif Frame:SetAttributeNoHandler
Inv mushroom 11.png  GitHub Octocat.png  Blizz.gif  Wowprogramming.png Frame:CanChangeAttribute
Inv mushroom 11.png  GitHub Octocat.png  Blizz.gif Frame:ExecuteAttribute
Inv mushroom 11.png  GitHub Octocat.png  Blizz.gif OnAttributeChanged

Fires when an attribute is modified on a frame.

(name, value)

Arguments

self
ScriptObject - The object the attribute of which was changed.
name
string - The lowercased name of the attribute that was modified.
value
any - The value that was assigned.

Details

  • This script handler is triggered by Frame:SetAttribute().
  • This script handler will always be invoked even if the previous and newly assigned values for an attribute are identical.

Patch changes