SecureTemplates.xml

SecureTemplates.xml (8.3.7.35284; unchanged since 7.2.0.23835)
  1. <Ui xmlns="http://www.blizzard.com/wow/ui/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.blizzard.com/wow/ui/
  2. ..\FrameXML\UI.xsd">
  3.     <!-- A base template for secure frames -->
  4.     <Frame name="SecureFrameTemplate" protected="true" virtual="true"/>
  5.    
  6.     <Script file="SecureTemplates.lua"/>
  7.     <Script file="SecureStateDriver.lua"/>
  8.     <Script file="SecureHoverDriver.lua"/>
  9.  
  10.     <!-- A button template for click-cast style action buttons -->
  11.     <Button name="SecureActionButtonTemplate" inherits="SecureFrameTemplate" virtual="true">
  12.         <Scripts>
  13.             <OnClick function="SecureActionButton_OnClick"/>
  14.         </Scripts>
  15.     </Button>
  16.  
  17.   <!-- A template that can perform secure actions outside of combat -->
  18.   <Button name="InsecureActionButtonTemplate" virtual="true">
  19.     <Scripts>
  20.       <OnClick> if not InCombatLockdown() then SecureActionButton_OnClick(self, button, down); end</OnClick>
  21.     </Scripts>
  22.   </Button>
  23.  
  24.     <!-- A variant of SecureActionButtonTemplate used for unit buttons -->
  25.     <Button name="SecureUnitButtonTemplate" inherits="SecureFrameTemplate" virtual="true">
  26.         <Scripts>
  27.             <OnClick function="SecureUnitButton_OnClick"/>
  28.         </Scripts>
  29.     </Button>
  30. </Ui>