vanilla-wow-addons – Blame information for rev 1

Subversion Repositories:
Rev:
Rev Author Line No. Line
1 office 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  
3 <Button name="myModelFrame" movable="true" parent="UIParent" hidden="false" frameStrata="LOW">
4 <Size>
5 <AbsDimension x="233" y="224"/>
6 </Size>
7 <Anchors>
8 <Anchor point="CENTER"/>
9 </Anchors>
10 <Frames>
11 <PlayerModel name="$parent_Model" hidden="false">
12 <Size>
13 <AbsDimension x="233" y="224"/>
14 </Size>
15 <Anchors>
16 <Anchor point="CENTER"/>
17 </Anchors>
18 <Scripts>
19 <OnLoad>
20 this:SetUnit("player");
21 this:RegisterEvent("DISPLAY_SIZE_CHANGED");
22 this:RegisterEvent("UNIT_MODEL_CHANGED");
23 </OnLoad>
24 <OnEvent>
25 if (event == "UNIT_MODEL_CHANGED") then
26 this:SetUnit("player");
27 else
28 this:RefreshUnit();
29 end
30 </OnEvent>
31 </Scripts>
32 </PlayerModel>
33 </Frames>
34 <Scripts>
35 <OnLoad>
36 this:RegisterForDrag("LeftButton", "RightButton");
37 </OnLoad>
38 <OnDragStart>
39 if( IsShiftKeyDown() ) then
40 this:StartMoving();
41 end
42 </OnDragStart>
43 <OnDragStop>
44 this:StopMovingOrSizing();
45 </OnDragStop>
46 <OnHide>
47 this:StopMovingOrSizing();
48 </OnHide>
49 </Scripts>
50 </Button>
51  
52 </Ui>