85a273aa63
- Added options for lock, unlock, break snap, close, reopen and create new window. - Added a options panel for HotCorners. - Shortcut panel is now known as Bookmarks panel, also a revamp has been done in its frames. - Fixed percent issue with Healing Done and HPS while in combat. - New API: instance:IsStarted() return if the instance have its frames built.
164 lines
4.6 KiB
XML
164 lines
4.6 KiB
XML
<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>
|
|
|
|
<Frame name="HotCornersOptionsFrame" frameStrata="HIGH" movable="true" hidden="true" parent="UIParent" inherits="ButtonFrameTemplate">
|
|
<Size>
|
|
<AbsDimension x="400" y="200"/>
|
|
</Size>
|
|
|
|
<Anchors>
|
|
<Anchor point="CENTER" relativeTo="$parent" relativePoint="CENTER" x="0" y="0"/>
|
|
</Anchors>
|
|
|
|
<Frames>
|
|
<CheckButton name="$parentEnableCheckBox" inherits="ChatConfigCheckButtonTemplate">
|
|
<Anchors>
|
|
<Anchor point="TOPLEFT" relativeTo="$parent" relativePoint="TOPLEFT" x="30" y="-70"/>
|
|
</Anchors>
|
|
<Scripts>
|
|
<OnLoad>
|
|
_G [self:GetName() .. "Text"]:SetText ("Enabled");
|
|
self.tooltip = "Enable or Disable HorCorners";
|
|
tinsert (UISpecialFrames, "HotCornersOptionsFrame");
|
|
</OnLoad>
|
|
<PostClick>
|
|
if (self:GetChecked()) then
|
|
HotCornersSetEnabled (true);
|
|
else
|
|
HotCornersSetEnabled (false);
|
|
end
|
|
</PostClick>
|
|
</Scripts>
|
|
</CheckButton>
|
|
</Frames>
|
|
|
|
<Scripts>
|
|
<OnLoad>
|
|
self.TitleText:SetText ("HotCorners Options");
|
|
self.portrait:SetTexture ([[Interface\FriendsFrame\FriendsFrameScrollIcon]]);
|
|
</OnLoad>
|
|
<OnMouseDown>
|
|
self:StartMoving();
|
|
</OnMouseDown>
|
|
<OnMouseUp>
|
|
self:StopMovingOrSizing();
|
|
</OnMouseUp>
|
|
</Scripts>
|
|
</Frame>
|
|
|
|
<Script file="LibHotCorners.lua"/>
|
|
|
|
</Ui> |