WoW:XML file: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
No edit summary
mNo edit summary
Line 1: Line 1:
{{Wowapi}}
{{uiaddon}}
Example:
<pre>
&#60;Ui xsi&#58;schemaLocation=&#34;http&#58;//www.blizzard.com/wow/ui/">;
&#60;script file=&#34;repopme.lua"/>;
&#60;&#33;-- Frame to handle all core events --&#62;


&#60;Frame name=&#34;repopme_core&#34;&#62;
== Example ==
 
<!-- where did this come from? very old -->
&#60;scripts&#62;
<[[XML/Ui|Ui]] xsi:schemaLocation="http://www.blizzard.com/wow/ui/">;
 
  <Script file="repopme.lua"/>;
&#60;OnLoad&#62;
 
this&#58;RegisterEvent&#40;&#34;PLAYER_DEAD&#34;&#41;;
  <!-- Frame to handle all core events -->
&#60;/OnLoad&#62;
  <Frame name="repopme_core">
 
    <Scripts>
&#60;OnEvent&#62;
      <OnLoad>
  repopme_OnEvent&#40;event&#41;;
        self:RegisterEvent("PLAYER_DEAD");
&#60;/OnEvent&#62;
      </OnLoad>
&#60;/Scripts&#62;
      <OnEvent>
&#60;/Frame&#62;
        repopme_OnEvent(event);
&#60;/Ui&#62;
      </OnEvent>
</pre>
    </Scripts>
  </Frame>
</Ui>

Revision as of 17:43, 9 September 2014

WoW AddOn


Example

<Ui xsi:schemaLocation="http://www.blizzard.com/wow/ui/">;
  <Script file="repopme.lua"/>;
  
  <Frame name="repopme_core">
    <Scripts>
      <OnLoad>
        self:RegisterEvent("PLAYER_DEAD");
      </OnLoad>
      <OnEvent> 
        repopme_OnEvent(event);
      </OnEvent>
    </Scripts>
  </Frame>
</Ui>