-
Notifications
You must be signed in to change notification settings - Fork 0
/
CPR.xml
39 lines (39 loc) · 1.22 KB
/
CPR.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
<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/ C:\Projects\WoW\Bin\Interface\FrameXML\UI.xsd">
<Script file="CPR.lua"/>
<GameTooltip name="CPRTooltip" inherits="GameTooltipTemplate" parent="UIParent" hidden="true"></GameTooltip>
<GameTooltip name="CPRStomachTooltip" inherits="GameTooltipTemplate" parent="UIParent" hidden="true"></GameTooltip>
<Frame name="CPRFrame" movable="true" toplevel="true" parent="UIParent" hidden="true">
<Size>
<AbsDimension x="16" y="16" />
</Size>
<Anchors>
<Anchor point="CENTER"/>
</Anchors>
<Layers>
<Layer level="BACKGROUND">
<Texture name="CPRStatusTexture" file="Interface\AddOns\CPR\CPR-Status"/>
</Layer>
</Layers>
<Scripts>
<OnLoad>
CPR_OnLoad();
this:RegisterForDrag("LeftButton");
this:EnableMouse(1);
</OnLoad>
<OnEvent>
CPR_OnEvent(event);
</OnEvent>
<OnUpdate>
CPR_OnUpdate(arg1)
</OnUpdate>
<OnDragStart>
if(CPRStatus_Locked == 0) then
this:StartMoving();
end
</OnDragStart>
<OnDragStop>
this:StopMovingOrSizing();
</OnDragStop>
</Scripts>
</Frame>
</Ui>