Mercurial > wow > hotcorners
diff HotCorners.xml @ 0:fc346da3afd9
First commit Hot Corners standalone.
author | tercio |
---|---|
date | Fri, 08 Aug 2014 12:35:17 -0300 |
parents | |
children | a6fb0ff113b1 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/HotCorners.xml Fri Aug 08 12:35:17 2014 -0300 @@ -0,0 +1,119 @@ +<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"> + + <Frame name="HotCornersBackgroundFrame" frameStrata="MEDIUM" parent="UIParent"> + <Anchors> + <Anchor point="TOPLEFT" relativeTo="$parent" relativePoint="TOPLEFT" x="0" y="0"/> + <Anchor point="BOTTOMRIGHT" relativeTo="$parent" relativePoint="BOTTOMRIGHT" x="0" y="0"/> + </Anchors> + + <Scripts> + <OnLoad> + self:EnableMouse (false); + </OnLoad> + <OnEnter> + HotCornersBackgroundOnEnter (self); + </OnEnter> + </Scripts> + + </Frame> + + <Frame name="HotCornersFrameCornerTemplate" frameStrata="FULLSCREEN" virtual="true" parent="UIParent"> + <Size x="1" y="1"/> + <Backdrop bgFile="Interface\DialogFrame\UI-DialogBox-Background" tile="true"> + <TileSize> + <AbsValue val="40"/> + </TileSize> + <BackgroundInsets> + <AbsInset left="0" right="0" top="0" bottom="0"/> + </BackgroundInsets> + </Backdrop> + + <Scripts> + <OnEnter> + HotCornersOnEnter (self); + </OnEnter> + <OnLeave> + HotCornersOnLeave (self); + </OnLeave> + </Scripts> + </Frame> + + <Frame name="HotCornersQuickCornerButtonTemplate" frameStrata="FULLSCREEN" virtual="true"> + <Size x="1" y="1"/> + <Anchors> + <Anchor point="TOPLEFT" relativeTo="$parent" relativePoint="TOPLEFT" x="0" y="0"/> + </Anchors> + + <Scripts> + <OnLoad> + self:SetFrameLevel (self:GetParent():GetFrameLevel()+2); + </OnLoad> + <OnClick> + HotCornersOnQuickClick (self, button); + </OnClick> + <OnEnter> + HotCornersOnEnter (self:GetParent()); + </OnEnter> + </Scripts> + </Frame> + + <Frame name="HotCornersButtonTemplate" frameStrata="FULLSCREEN" hidden="true" virtual="true"> + <Size x="32" y="32"/> + <Scripts> + <OnLoad> + self:SetFrameLevel (self:GetParent():GetFrameLevel()+2); + </OnLoad> + <OnEnter> + HotCornersButtonOnEnter (self); + </OnEnter> + <OnLeave> + HotCornersButtonOnLeave (self); + </OnLeave> + <OnMouseDown> + HotCornersButtonOnMouseDown (self, button); + </OnMouseDown> + <OnMouseUp> + HotCornersButtonOnMouseUp (self, button); + </OnMouseUp> + </Scripts> + </Frame> + + <Button name="HotCornersOptionsButtonTemplate" frameStrata="FULLSCREEN" hidden="false" virtual="true"> + <Size x="32" y="32"/> + + <Layers> + <Layer level="OVERLAY"> + <FontString text="options" name="$parentText" inherits="GameFontHighlightSmall" justifyH="LEFT" nonspacewrap="true" parentKey="text"> + <Anchors> + <Anchor point="CENTER" relativeTo="$parent" relativePoint="CENTER"/> + </Anchors> + <Color r="0.8" g="0.8" b="0.8" a="0.8"/> + </FontString> + </Layer> + </Layers> + + <Scripts> + <OnLoad> + self:SetFrameLevel (self:GetParent():GetFrameLevel()+2); + </OnLoad> + <OnEnter> + HotCornersOptionsButtonOnEnter (self); + self.text:SetTextColor (1, 1, 1, 1); + </OnEnter> + <OnLeave> + HotCornersOptionsButtonOnLeave (self); + self.text:SetTextColor (0.8, 0.8, 0.8, 0.8); + </OnLeave> + <OnMouseDown> + self.text:SetPoint ("center", self, "center", 1, -1); + </OnMouseDown> + <OnMouseUp> + self.text:SetPoint ("center", self, "center"); + HotCornersOpenOptions (self:GetParent()); + </OnMouseUp> + </Scripts> + </Button> + + <Script file="HotCorners.lua"/> + +</Ui> \ No newline at end of file