tercio@0
|
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/..\FrameXML\UI.xsd">
|
tercio@0
|
2
|
tercio@0
|
3 <Frame name="HotCornersBackgroundFrame" frameStrata="MEDIUM" parent="UIParent">
|
tercio@0
|
4 <Anchors>
|
tercio@0
|
5 <Anchor point="TOPLEFT" relativeTo="$parent" relativePoint="TOPLEFT" x="0" y="0"/>
|
tercio@0
|
6 <Anchor point="BOTTOMRIGHT" relativeTo="$parent" relativePoint="BOTTOMRIGHT" x="0" y="0"/>
|
tercio@0
|
7 </Anchors>
|
tercio@0
|
8
|
tercio@0
|
9 <Scripts>
|
tercio@0
|
10 <OnLoad>
|
tercio@0
|
11 self:EnableMouse (false);
|
tercio@0
|
12 </OnLoad>
|
tercio@0
|
13 <OnEnter>
|
tercio@0
|
14 HotCornersBackgroundOnEnter (self);
|
tercio@0
|
15 </OnEnter>
|
tercio@0
|
16 </Scripts>
|
tercio@0
|
17
|
tercio@0
|
18 </Frame>
|
tercio@0
|
19
|
tercio@0
|
20 <Frame name="HotCornersFrameCornerTemplate" frameStrata="FULLSCREEN" virtual="true" parent="UIParent">
|
tercio@0
|
21 <Size x="1" y="1"/>
|
tercio@0
|
22 <Backdrop bgFile="Interface\DialogFrame\UI-DialogBox-Background" tile="true">
|
tercio@0
|
23 <TileSize>
|
tercio@0
|
24 <AbsValue val="40"/>
|
tercio@0
|
25 </TileSize>
|
tercio@0
|
26 <BackgroundInsets>
|
tercio@0
|
27 <AbsInset left="0" right="0" top="0" bottom="0"/>
|
tercio@0
|
28 </BackgroundInsets>
|
tercio@0
|
29 </Backdrop>
|
tercio@0
|
30
|
tercio@0
|
31 <Scripts>
|
tercio@0
|
32 <OnEnter>
|
tercio@0
|
33 HotCornersOnEnter (self);
|
tercio@0
|
34 </OnEnter>
|
tercio@0
|
35 <OnLeave>
|
tercio@0
|
36 HotCornersOnLeave (self);
|
tercio@0
|
37 </OnLeave>
|
tercio@0
|
38 </Scripts>
|
tercio@0
|
39 </Frame>
|
tercio@0
|
40
|
tercio@0
|
41 <Frame name="HotCornersQuickCornerButtonTemplate" frameStrata="FULLSCREEN" virtual="true">
|
tercio@0
|
42 <Size x="1" y="1"/>
|
tercio@0
|
43 <Anchors>
|
tercio@0
|
44 <Anchor point="TOPLEFT" relativeTo="$parent" relativePoint="TOPLEFT" x="0" y="0"/>
|
tercio@0
|
45 </Anchors>
|
tercio@0
|
46
|
tercio@0
|
47 <Scripts>
|
tercio@0
|
48 <OnLoad>
|
tercio@0
|
49 self:SetFrameLevel (self:GetParent():GetFrameLevel()+2);
|
tercio@0
|
50 </OnLoad>
|
tercio@0
|
51 <OnClick>
|
tercio@0
|
52 HotCornersOnQuickClick (self, button);
|
tercio@0
|
53 </OnClick>
|
tercio@0
|
54 <OnEnter>
|
tercio@0
|
55 HotCornersOnEnter (self:GetParent());
|
tercio@0
|
56 </OnEnter>
|
tercio@0
|
57 </Scripts>
|
tercio@0
|
58 </Frame>
|
tercio@0
|
59
|
tercio@0
|
60 <Frame name="HotCornersButtonTemplate" frameStrata="FULLSCREEN" hidden="true" virtual="true">
|
tercio@0
|
61 <Size x="32" y="32"/>
|
tercio@0
|
62 <Scripts>
|
tercio@0
|
63 <OnLoad>
|
tercio@0
|
64 self:SetFrameLevel (self:GetParent():GetFrameLevel()+2);
|
tercio@0
|
65 </OnLoad>
|
tercio@0
|
66 <OnEnter>
|
tercio@0
|
67 HotCornersButtonOnEnter (self);
|
tercio@0
|
68 </OnEnter>
|
tercio@0
|
69 <OnLeave>
|
tercio@0
|
70 HotCornersButtonOnLeave (self);
|
tercio@0
|
71 </OnLeave>
|
tercio@0
|
72 <OnMouseDown>
|
tercio@0
|
73 HotCornersButtonOnMouseDown (self, button);
|
tercio@0
|
74 </OnMouseDown>
|
tercio@0
|
75 <OnMouseUp>
|
tercio@0
|
76 HotCornersButtonOnMouseUp (self, button);
|
tercio@0
|
77 </OnMouseUp>
|
tercio@0
|
78 </Scripts>
|
tercio@0
|
79 </Frame>
|
tercio@0
|
80
|
tercio@0
|
81 <Button name="HotCornersOptionsButtonTemplate" frameStrata="FULLSCREEN" hidden="false" virtual="true">
|
tercio@0
|
82 <Size x="32" y="32"/>
|
tercio@0
|
83
|
tercio@0
|
84 <Layers>
|
tercio@0
|
85 <Layer level="OVERLAY">
|
tercio@0
|
86 <FontString text="options" name="$parentText" inherits="GameFontHighlightSmall" justifyH="LEFT" nonspacewrap="true" parentKey="text">
|
tercio@0
|
87 <Anchors>
|
tercio@0
|
88 <Anchor point="CENTER" relativeTo="$parent" relativePoint="CENTER"/>
|
tercio@0
|
89 </Anchors>
|
tercio@0
|
90 <Color r="0.8" g="0.8" b="0.8" a="0.8"/>
|
tercio@0
|
91 </FontString>
|
tercio@0
|
92 </Layer>
|
tercio@0
|
93 </Layers>
|
tercio@0
|
94
|
tercio@0
|
95 <Scripts>
|
tercio@0
|
96 <OnLoad>
|
tercio@0
|
97 self:SetFrameLevel (self:GetParent():GetFrameLevel()+2);
|
tercio@0
|
98 </OnLoad>
|
tercio@0
|
99 <OnEnter>
|
tercio@0
|
100 HotCornersOptionsButtonOnEnter (self);
|
tercio@0
|
101 self.text:SetTextColor (1, 1, 1, 1);
|
tercio@0
|
102 </OnEnter>
|
tercio@0
|
103 <OnLeave>
|
tercio@0
|
104 HotCornersOptionsButtonOnLeave (self);
|
tercio@0
|
105 self.text:SetTextColor (0.8, 0.8, 0.8, 0.8);
|
tercio@0
|
106 </OnLeave>
|
tercio@0
|
107 <OnMouseDown>
|
tercio@0
|
108 self.text:SetPoint ("center", self, "center", 1, -1);
|
tercio@0
|
109 </OnMouseDown>
|
tercio@0
|
110 <OnMouseUp>
|
tercio@0
|
111 self.text:SetPoint ("center", self, "center");
|
tercio@0
|
112 HotCornersOpenOptions (self:GetParent());
|
tercio@0
|
113 </OnMouseUp>
|
tercio@0
|
114 </Scripts>
|
tercio@0
|
115 </Button>
|
tercio@0
|
116
|
tercio@0
|
117 <Script file="HotCorners.lua"/>
|
tercio@0
|
118
|
tercio@0
|
119 </Ui> |