UIHANDLER OnAttributeChanged

From Warcraft Wiki
Jump to navigation Jump to search
GitHub Octocat.png  Dragonflight-Icon-Inline.png  BTNTemp.png  Wowprogramming.png Frame:GetAttribute
GitHub Octocat.png  Dragonflight-Icon-Inline.png  BTNTemp.png  Wowprogramming.png Frame:SetAttribute
GitHub Octocat.png  Dragonflight-Icon-Inline.png  BTNTemp.png Frame:SetAttributeNoHandler
GitHub Octocat.png  Dragonflight-Icon-Inline.png  BTNTemp.png  Wowprogramming.png Frame:CanChangeAttribute
GitHub Octocat.png  Dragonflight-Icon-Inline.png  BTNTemp.png Frame:ExecuteAttribute
GitHub Octocat.png  Dragonflight-Icon-Inline.png  BTNTemp.png 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