vanilla-wow-addons – Blame information for rev 1
?pathlinks?
Rev | Author | Line No. | Line |
---|---|---|---|
1 | office | 1 | |
2 | <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/ |
||
3 | ..\FrameXML\UI.xsd"> |
||
4 | |||
5 | <Script file="LowHealth.lua" /> |
||
6 | |||
7 | <Frame name="LowHealthWarningFrame"> |
||
8 | <Scripts> |
||
9 | <OnLoad> |
||
10 | -- initialize data |
||
11 | TNE_LowHealth_OnLoad() |
||
12 | -- register meta events |
||
13 | this:RegisterEvent("VARIABLES_LOADED") |
||
14 | this:RegisterEvent("PLAYER_LEAVING_WORLD") |
||
15 | this:RegisterEvent("PLAYER_ENTERING_WORLD") |
||
16 | </OnLoad> |
||
17 | <OnEvent> |
||
18 | -- lazy filter for health/mana events |
||
19 | if (arg1 and arg1 == "player") then |
||
20 | TNE_LowHealth_OnEvent(event) |
||
21 | -- handle meta events and zoning |
||
22 | elseif (event == "VARIABLES_LOADED" or this.running) then |
||
23 | TNE_LowHealth_ApplySettings(event == "PLAYER_LEAVING_WORLD") |
||
24 | -- this.running is not true before VARIABLES_LOADED as we don't |
||
25 | -- want to do anything until we have the correct settings |
||
26 | this.running = true |
||
27 | end |
||
28 | </OnEvent> |
||
29 | </Scripts> |
||
30 | </Frame> |
||
31 | |||
32 | <Frame name="LHTest1"> |
||
33 | <Layers> |
||
34 | <Layer level="BACKGROUND"> |
||
35 | <Texture name="$parentTexture" file="Interface\AddOns\TNE_LowHealthWarning\Textures\lowhealth1.tga" alphaMode="ADD" /> |
||
36 | </Layer> |
||
37 | </Layers> |
||
38 | </Frame> |
||
39 | |||
40 | </Ui> |