ScriptRegion:IsProtected

From Warcraft Wiki
Jump to navigation Jump to search

Returns whether the region is currently protected.

isProtected, isProtectedExplicitly = ScriptRegion:IsProtected()

Returns

isProtected
boolean - true if the frame is currently protected.
isProtectedExplicitly
boolean - true if the widget was explicitly specified as protected at the time of creation.

Details

  • You cannot call methods affecting the frame's position, visibility, interactivity, or attributes on protected (isProtected) frames from insecure code while the combat lockdown is in effect.
  • Anchoring or parenting a protected frame to another frame makes that frame implicitly protected as well (isProtected, but not isExplicitlyProtected). This applies recursively. Removing all protected children/anchors will clear implicit protection.

Patch changes

Bc icon.gif Patch 2.0.1 (2006-12-05): Added.

See also