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 $Id:$
4 -->
5 <Script file="localization.lua" />
6 <Script file="CleanMinimapMover.lua" />
7 <!-- Templates -->
8 <Button name="ResizingButtonTemplate" virtual="true">
9 <Size>
10 <AbsDimension x="8" y="8"/>
11 </Size>
12 <Backdrop bgFile="Interface\Tooltips\UI-Tooltip-Background" edgeFile="Interface\Tooltips\UI-Tooltip-Border" tile="true">
13 <EdgeSize>
14 <AbsValue val="4"/>
15 </EdgeSize>
16 <TileSize>
17 <AbsValue val="8"/>
18 </TileSize>
19 <BackgroundInsets>
20 <AbsInset left="2" right="2" top="2" bottom="2"/>
21 </BackgroundInsets>
22 </Backdrop>
23 <Scripts>
24 <OnLoad>
25 local anchorto, anchor = CleanMinimapMover_SizingAnchor( this );
26 this:SetPoint( anchor, this:GetParent():GetName(), anchorto, 0, 0 );
27 </OnLoad>
28 <OnShow>
29 this:SetFrameLevel(this:GetParent():GetFrameLevel()+2);
30 </OnShow>
31 <OnMouseDown>
32 this:GetParent().SizingAnchor = CleanMinimapMover_SizingAnchor( this );
33 this:GetParent():StartSizing( CleanMinimapMover_SizingAnchor( this ) );
34 </OnMouseDown>
35 <OnMouseUp>
36 this:GetParent():StopMovingOrSizing()
37 CleanMinimapMover_UpdatePosition( this:GetParent() );
38 this:GetParent().MASizingAnchor = nil;
39 if( arg1 == "RightButton" and not IsShiftKeyDown() ) then
40 CleanMinimapMover_StopMoving(this:GetParent());
41 CleanMinimap_StopMoving();
42 end
43 </OnMouseUp>
44 </Scripts>
45 </Button>
46  
47 <Frame name="CleanMinimapMoverTemplate" frameStrata="DIALOG" enableMouse="true" hidden="true" parent="UIParent" movable="true" resizable="true" virtual="true" setAllPoints="true">
48 <Size>
49 <AbsDimension x="100" y="100"/>
50 </Size>
51 <ResizeBounds>
52 <minResize>
53 <AbsDimension x="50" y="50"/>
54 </minResize>
55 <maxResize>
56 <AbsDimension x="300" y="300"/>
57 </maxResize>
58 </ResizeBounds>
59 <Anchors>
60 <Anchor point="BOTTOMLEFT"/>
61 </Anchors>
62 <Scripts>
63 <OnMouseDown>
64 this:StartMoving();
65 </OnMouseDown>
66 <OnMouseUp>
67 this:StopMovingOrSizing()
68 CleanMinimapMover_UpdatePosition( this );
69 CleanMinimapMover_StopMoving( this );
70 CleanMinimap_StopMoving();
71 </OnMouseUp>
72 <OnSizeChanged>
73 CleanMinimapMover_OnSizeChanged( this );
74 </OnSizeChanged>
75 <OnShow>
76 --getglobal( this:GetName().."BackdropMovingFrameName" ):SetText( "Moving\n");
77 </OnShow>
78 </Scripts>
79 <Frames>
80 <Frame name="$parentBackdrop" setAllPoints="true" enableMouse="false">
81 <Backdrop bgFile="Interface\Tooltips\UI-Tooltip-Background" edgeFile="Interface\Tooltips\UI-Tooltip-Border" tile="true">
82 <EdgeSize>
83 <AbsValue val="8"/>
84 </EdgeSize>
85 <TileSize>
86 <AbsValue val="16"/>
87 </TileSize>
88 <BackgroundInsets>
89 <AbsInset left="3" right="3" top="3" bottom="3"/>
90 </BackgroundInsets>
91 </Backdrop>
92 <Layers>
93 <Layer level="ARTWORK">
94 <FontString name="$parentMovingFrameName" inherits="GameFontNormal">
95 <Anchors>
96 <Anchor point="CENTER" />
97 </Anchors>
98 </FontString>
99 </Layer>
100 </Layers>
101 </Frame>
102 <Button name="$parentResize_TOP" inherits="ResizingButtonTemplate"/>
103 <Button name="$parentResize_LEFT" inherits="ResizingButtonTemplate"/>
104 <Button name="$parentResize_BOTTOM" inherits="ResizingButtonTemplate"/>
105 <Button name="$parentResize_RIGHT" inherits="ResizingButtonTemplate"/>
106 </Frames>
107 </Frame>
108  
109 <!-- The real frame -->
110 <Frame name="CleanMinimapMoverFrame" inherits="CleanMinimapMoverTemplate" parent="UIParent" />
111 </Ui>