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