Update to 1.6 version (#6)
* Merge from origin https://gitlab.com/Tsoukie/clique-3.3.5 * Linting * Ascension Modifications Fixes Spec swap and adds the 12 slots Fixes ascension compact raid frame support Fixes ascension spell panel integration * Add profile dropdown to binding window * Fix menu buttons showing as invisible * cleanup xml button definitions * enable or disable Bind Spell button when spellbook is visible * give the labels a bit more spacing for default UI
This commit is contained in:
committed by
GitHub
parent
c2bb10665d
commit
9c36ee6e47
+529
-90
@@ -1,96 +1,535 @@
|
||||
<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">
|
||||
<CheckButton name="CliqueIconTemplate" virtual="true">
|
||||
<Size>
|
||||
<AbsDimension x="36" y="36"/>
|
||||
</Size>
|
||||
<Layers>
|
||||
<Layer level="BACKGROUND">
|
||||
<Texture file="Interface\Buttons\UI-EmptySlot-Disabled">
|
||||
<Size>
|
||||
<AbsDimension x="64" y="64"/>
|
||||
</Size>
|
||||
<Anchors>
|
||||
<Anchor point="CENTER">
|
||||
<Offset>
|
||||
<AbsDimension x="0" y="-1"/>
|
||||
</Offset>
|
||||
</Anchor>
|
||||
</Anchors>
|
||||
</Texture>
|
||||
</Layer>
|
||||
</Layers>
|
||||
<NormalTexture name="$parentIcon">
|
||||
<Size>
|
||||
<AbsDimension x="36" y="36"/>
|
||||
</Size>
|
||||
<Anchors>
|
||||
<Anchor point="CENTER">
|
||||
<Offset>
|
||||
<AbsDimension x="0" y="-1"/>
|
||||
</Offset>
|
||||
</Anchor>
|
||||
</Anchors>
|
||||
</NormalTexture>
|
||||
<HighlightTexture alphaMode="ADD" file="Interface\Buttons\ButtonHilight-Square"/>
|
||||
<CheckedTexture alphaMode="ADD" file="Interface\Buttons\CheckButtonHilight"/>
|
||||
<?xml version="1.0"?>
|
||||
<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/ http://wowprogramming.com/FrameXML/UI.xsd">
|
||||
<Button name="CliqueRowTemplate" enableMouse="true" virtual="true">
|
||||
<Size x="298" y="30"/>
|
||||
<Layers>
|
||||
<Layer level="BORDER">
|
||||
<Texture name="$parentIcon" parentKey="icon" file="Interface\Icons\INV_Misc_QuestionMark">
|
||||
<Size x="25" y="25"/>
|
||||
<Anchors>
|
||||
<Anchor point="LEFT">
|
||||
<Offset>
|
||||
<AbsDimension x="5" y="0"/>
|
||||
</Offset>
|
||||
</Anchor>
|
||||
</Anchors>
|
||||
</Texture>
|
||||
<FontString name="$parentName" parentKey="name" inherits="GameFontHighlight" justifyH="LEFT" text="An error has occurred">
|
||||
<Size>
|
||||
<AbsDimension x="175" y="12"/>
|
||||
</Size>
|
||||
<Anchors>
|
||||
<Anchor point="TOPLEFT" relativeTo="$parentIcon" relativePoint="TOPRIGHT">
|
||||
<Offset>
|
||||
<AbsDimension x="3" y="0"/>
|
||||
</Offset>
|
||||
</Anchor>
|
||||
</Anchors>
|
||||
</FontString>
|
||||
<FontString name="$parentInfo" parentKey="info" inherits="GameFontNormalSmall" justifyH="LEFT" text="Spell">
|
||||
<Size>
|
||||
<AbsDimension x="175" y="12"/>
|
||||
</Size>
|
||||
<Anchors>
|
||||
<Anchor point="TOPLEFT" relativeTo="$parentName" relativePoint="BOTTOMLEFT">
|
||||
<Offset>
|
||||
<AbsDimension x="0" y="-2"/>
|
||||
</Offset>
|
||||
</Anchor>
|
||||
</Anchors>
|
||||
<Color r="0.6" g="0.6" b="0.6"/>
|
||||
</FontString>
|
||||
<FontString name="$parentBind" parentKey="bind" inherits="GameFontHighlightSmall" justifyH="RIGHT" text="Alt-LeftClick">
|
||||
<Size>
|
||||
<AbsDimension x="106" y="12"/>
|
||||
</Size>
|
||||
<Anchors>
|
||||
<Anchor point="TOPLEFT" relativeTo="$parentName" relativePoint="TOPRIGHT">
|
||||
<Offset>
|
||||
<AbsDimension x="0" y="0"/>
|
||||
</Offset>
|
||||
</Anchor>
|
||||
</Anchors>
|
||||
</FontString>
|
||||
</Layer>
|
||||
</Layers>
|
||||
<Scripts>
|
||||
<OnLoad>
|
||||
self:RegisterForClicks("RightButtonDown")
|
||||
</OnLoad>
|
||||
<OnClick>
|
||||
CliqueConfig:Row_OnClick(self, button)
|
||||
</OnClick>
|
||||
<OnMouseWheel>
|
||||
local slider = CliqueConfig.page1.slider
|
||||
slider:SetValue(slider:GetValue() - delta)
|
||||
</OnMouseWheel>
|
||||
</Scripts>
|
||||
<HighlightTexture setAllPoints="true" file="Interface\QuestFrame\UI-QuestTitleHighlight" alphaMode="ADD">
|
||||
<Size x="315" y="28"/>
|
||||
<Anchors>
|
||||
<Anchor point="TOPLEFT">
|
||||
<Offset x="1" y="0"/>
|
||||
</Anchor>
|
||||
</Anchors>
|
||||
</HighlightTexture>
|
||||
</Button>
|
||||
|
||||
<Button name="CliqueColumnTemplate" inherits="WhoFrameColumnHeaderTemplate" virtual="true">
|
||||
<Scripts>
|
||||
<OnClick>
|
||||
Clique:SetSpellIcon(self)
|
||||
PlaySound("igMainMenuOptionCheckBoxOn");
|
||||
CliqueConfig:Column_OnClick(self, button)
|
||||
</OnClick>
|
||||
</Scripts>
|
||||
</CheckButton>
|
||||
</Button>
|
||||
|
||||
<Frame name="CliqueEditTemplate" virtual="true" hidden="true">
|
||||
<Size>
|
||||
<AbsDimension x="286" y="106"/>
|
||||
</Size>
|
||||
<Backdrop bgFile="Interface\DialogFrame\UI-DialogBox-Background" edgeFile="Interface\Tooltips\UI-Tooltip-Border" tile="true">
|
||||
<BackgroundInsets>
|
||||
<AbsInset left="4" right="4" top="4" bottom="4" />
|
||||
</BackgroundInsets>
|
||||
<TileSize>
|
||||
<AbsValue val="16" />
|
||||
</TileSize>
|
||||
<EdgeSize>
|
||||
<AbsValue val="16" />
|
||||
</EdgeSize>
|
||||
</Backdrop>
|
||||
<Frames>
|
||||
<ScrollFrame name="$parentScrollFrame" inherits="UIPanelScrollFrameTemplate">
|
||||
<Anchors>
|
||||
<Anchor point="TOPLEFT">
|
||||
<Offset><AbsDimension x="8" y="-8"/></Offset>
|
||||
</Anchor>
|
||||
<Anchor point="BOTTOMRIGHT">
|
||||
<Offset><AbsDimension x="-8" y="8"/></Offset>
|
||||
</Anchor>
|
||||
</Anchors>
|
||||
<ScrollChild>
|
||||
<EditBox name="$parentEditBox" multiLine="true" letters="255" autoFocus="false">
|
||||
<Size>
|
||||
<AbsDimension x="270" y="90"/>
|
||||
</Size>
|
||||
<Scripts>
|
||||
<OnTextChanged>
|
||||
local scrollBar = getglobal(this:GetParent():GetName().."ScrollBar")
|
||||
this:GetParent():UpdateScrollChildRect();
|
||||
local min;
|
||||
local max;
|
||||
min, max = scrollBar:GetMinMaxValues();
|
||||
if ( max > 0 and (this.max ~= max) ) then
|
||||
this.max = max;
|
||||
scrollBar:SetValue(max);
|
||||
end
|
||||
</OnTextChanged>
|
||||
<OnEscapePressed>
|
||||
this:ClearFocus();
|
||||
</OnEscapePressed>
|
||||
</Scripts>
|
||||
<FontString inherits="GameFontHighlightSmall"/>
|
||||
</EditBox>
|
||||
</ScrollChild>
|
||||
</ScrollFrame>
|
||||
</Frames>
|
||||
</Frame>
|
||||
<Button name="CliqueSpellbookButtonTemplate" setAllPoints="true" hidden="true" virtual="true">
|
||||
<Scripts>
|
||||
<OnEnter>
|
||||
local parent = self:GetParent()
|
||||
if parent:IsEnabled() == 1 then
|
||||
SpellButton_OnEnter(parent)
|
||||
else
|
||||
self:GetHighlightTexture():Hide()
|
||||
end
|
||||
|
||||
CliqueConfig:Spellbook_EnableKeyboard(self, motion)
|
||||
</OnEnter>
|
||||
<OnLeave>
|
||||
GameTooltip:Hide()
|
||||
CliqueConfig:Spellbook_DisableKeyboard(self, motion)
|
||||
</OnLeave>
|
||||
<OnClick>
|
||||
CliqueConfig:Spellbook_OnBinding(self, button)
|
||||
</OnClick>
|
||||
<OnKeyDown>
|
||||
CliqueConfig:Spellbook_OnBinding(self, key)
|
||||
</OnKeyDown>
|
||||
<OnMouseWheel>
|
||||
if time() ~= self.last_mousewheel then
|
||||
local button = (delta > 0) and "MOUSEWHEELUP" or "MOUSEWHEELDOWN"
|
||||
CliqueConfig:Spellbook_OnBinding(self, button)
|
||||
self.last_mousewheel = time()
|
||||
end
|
||||
</OnMouseWheel>
|
||||
</Scripts>
|
||||
<HighlightTexture file="Interface\BUTTONS\ButtonHilight-Square" alphaMode="ADD"/>
|
||||
</Button>
|
||||
|
||||
<CheckButton name="CliqueSpellTab" inherits="SpellBookSkillLineTabTemplate" parent="AscensionSpellbookFrameSideBarTab1" hidden="false">
|
||||
<Scripts>
|
||||
<OnClick>
|
||||
CliqueConfig:SpellTab_OnClick()
|
||||
</OnClick>
|
||||
<OnShow>
|
||||
if CliqueConfig:IsVisible() then
|
||||
self:SetChecked(true)
|
||||
end
|
||||
|
||||
local num = GetNumSpellTabs()
|
||||
self:ClearAllPoints()
|
||||
local lastTab = _G["AscensionSpellbookFrameSideBarTab" .. num]
|
||||
self:SetPoint("TOPLEFT", lastTab, "BOTTOMLEFT", 0, -17)
|
||||
</OnShow>
|
||||
</Scripts>
|
||||
<NormalTexture file="Interface\AddOns\Clique\images\icon_square_64"/>
|
||||
</CheckButton>
|
||||
|
||||
<Frame name="CliqueTabAlert" parentKey="alert" inherits="GlowBoxTemplate" parent="AscensionSpellbookFrame" enableMouse="true" hidden="true" frameStrata="DIALOG" framelevel="2">
|
||||
<Size x="220" y="100"/>
|
||||
<Anchors>
|
||||
<Anchor point="LEFT" relativeTo="CliqueSpellTab" relativePoint="RIGHT" x="20" y="0"/>
|
||||
</Anchors>
|
||||
<Layers>
|
||||
<Layer level="OVERLAY">
|
||||
<FontString name="$parentText" parentKey="text" inherits="GameFontHighlightLeft" justifyV="TOP" text="" >
|
||||
<Size x="188" y="0"/>
|
||||
<Anchors>
|
||||
<Anchor point="TOPLEFT" x="16" y="-24"/>
|
||||
</Anchors>
|
||||
</FontString>
|
||||
</Layer>
|
||||
</Layers>
|
||||
<Frames>
|
||||
<Button name="$parentClose" parentKey="close" inherits="UIPanelCloseButton">
|
||||
<Anchors>
|
||||
<Anchor point="TOPRIGHT" x="6" y="6"/>
|
||||
</Anchors>
|
||||
<Scripts>
|
||||
<OnClick>
|
||||
Clique.settings.alerthidden = true
|
||||
CliqueTabAlert:Hide();
|
||||
</OnClick>
|
||||
</Scripts>
|
||||
</Button>
|
||||
<Frame name="$parentArrow" parentKey="arrow" inherits="GlowBoxArrowTemplate">
|
||||
<Anchors>
|
||||
<Anchor point="RIGHT" relativePoint="LEFT" x="0" y="0"/>
|
||||
</Anchors>
|
||||
</Frame>
|
||||
</Frames>
|
||||
<Scripts>
|
||||
<OnLoad>
|
||||
self.arrow:SetSize(21, 53)
|
||||
self.arrow.arrow = _G[self.arrow:GetName() .. "Arrow"]
|
||||
self.arrow.glow = _G[self.arrow:GetName() .. "Glow"]
|
||||
self.arrow.arrow:SetAllPoints(true)
|
||||
self.arrow.glow:SetAllPoints(true)
|
||||
-- Rotate 90 degrees
|
||||
-- left, bottom, right, bottom, left, top, right, top
|
||||
self.arrow.arrow:SetTexCoord(0.78515625, 0.58789063, 0.99218750, 0.58789063, 0.78515625, 0.54687500, 0.99218750, 0.54687500)
|
||||
self.arrow.glow:SetTexCoord(0.40625000, 0.82812500, 0.66015625, 0.82812500, 0.40625000, 0.77343750, 0.66015625, 0.77343750)
|
||||
self.text:SetSpacing(4)
|
||||
|
||||
</OnLoad>
|
||||
<OnShow>
|
||||
self:SetHeight(self.text:GetHeight() + 42)
|
||||
</OnShow>
|
||||
</Scripts>
|
||||
</Frame>
|
||||
|
||||
<Frame name="CliqueDialog" toplevel="true" enableMouse="true" movable="true" inherits="BasicFrameTemplate" parent="UIParent" frameStrata="DIALOG" hidden="true">
|
||||
<Size x="350" y="160"/>
|
||||
<Layers>
|
||||
<Layer level="OVERLAY">
|
||||
<FontString name="$parentDesc" parentKey="desc" inherits="GameFontHighlightSmallLeftTop">
|
||||
<Size x="340" y="60"/>
|
||||
<Anchors>
|
||||
<Anchor point="TOPLEFT" x="5" y="-25"/>
|
||||
</Anchors>
|
||||
</FontString>
|
||||
<FontString name="$parentBindText" parentKey="bindText" JustifyH="CENTER" inherits="GameFontHighlightSmallLeftTop">
|
||||
<Size x="200" y="12"/>
|
||||
<Anchors>
|
||||
<Anchor point="BOTTOM" x="0" y="35"/>
|
||||
</Anchors>
|
||||
</FontString>
|
||||
</Layer>
|
||||
</Layers>
|
||||
<Frames>
|
||||
<Button name="$parentDragButton">
|
||||
<Size x="0" y="20"/>
|
||||
<Anchors>
|
||||
<Anchor point="TOPLEFT"/>
|
||||
<Anchor point="TOPRIGHT"/>
|
||||
</Anchors>
|
||||
<Scripts>
|
||||
<OnLoad>
|
||||
self:RegisterForClicks("LeftButton")
|
||||
</OnLoad>
|
||||
<OnMouseDown>
|
||||
CliqueDialog:SetUserPlaced(false)
|
||||
CliqueDialog:StartMoving()
|
||||
</OnMouseDown>
|
||||
<OnMouseUp>
|
||||
CliqueDialog:SetUserPlaced(false)
|
||||
CliqueDialog:StopMovingOrSizing()
|
||||
</OnMouseUp>
|
||||
<OnHide>
|
||||
CliqueDialog:SetUserPlaced(false)
|
||||
CliqueDialog:StopMovingOrSizing()
|
||||
</OnHide>
|
||||
</Scripts>
|
||||
</Button>
|
||||
<Button name="$parentButtonBinding" parentKey="button_binding" inherits="UIPanelButtonTemplate2">
|
||||
<Size x="160" y="22"/>
|
||||
<Anchors>
|
||||
<Anchor point="TOP" relativeTo="$parentDesc" relativePoint="BOTTOM" x="0" y="0"/>
|
||||
</Anchors>
|
||||
<Scripts>
|
||||
<OnLoad>
|
||||
self:RegisterForClicks("AnyUp")
|
||||
self:EnableKeyboard(false)
|
||||
</OnLoad>
|
||||
<OnEnter>
|
||||
if motion then
|
||||
self:EnableKeyboard(true)
|
||||
end
|
||||
</OnEnter>
|
||||
<OnLeave>
|
||||
self:EnableKeyboard(false)
|
||||
</OnLeave>
|
||||
<OnClick>
|
||||
CliqueConfig:BindingButton_OnClick(self, button)
|
||||
</OnClick>
|
||||
<OnKeyDown>
|
||||
CliqueConfig:BindingButton_OnClick(self, key)
|
||||
</OnKeyDown>
|
||||
<OnMouseWheel>
|
||||
local button = (delta > 0) and "MOUSEWHEELUP" or "MOUSEWHEELDOWN"
|
||||
CliqueConfig:BindingButton_OnClick(self, button)
|
||||
</OnMouseWheel>
|
||||
</Scripts>
|
||||
</Button>
|
||||
<Button name="$parentButtonAccept" parentKey="button_accept" inherits="UIPanelButtonTemplate2">
|
||||
<Size x="80" y="22"/>
|
||||
<Anchors>
|
||||
<Anchor point="BOTTOMRIGHT" x="-3" y="3"/>
|
||||
</Anchors>
|
||||
<Scripts>
|
||||
<OnClick>
|
||||
CliqueConfig:AcceptSetBinding()
|
||||
</OnClick>
|
||||
</Scripts>
|
||||
</Button>
|
||||
</Frames>
|
||||
<Scripts>
|
||||
<OnLoad>
|
||||
table.insert(UISpecialFrames, "CliqueDialog")
|
||||
</OnLoad>
|
||||
</Scripts>
|
||||
</Frame>
|
||||
|
||||
<!-- Main configuration frame -->
|
||||
<Frame name="CliqueConfig" inherits="ButtonFrameTemplate" parent="UIParent" hidden="true">
|
||||
<Size>
|
||||
<AbsDimension x="333" y="475"/>
|
||||
</Size>
|
||||
<Anchors>
|
||||
<Anchor point="CENTER" x="0" y="0"/>
|
||||
</Anchors>
|
||||
<Frames>
|
||||
<!-- Dropdown menu for utility -->
|
||||
<Frame name="$parentDropdown" parentKey="dropdown" inherits="UIDropDownMenuTemplate"/>
|
||||
|
||||
<!-- Page definitions - Configuration List -->
|
||||
<Frame name="$parentPage1" parentKey="page1" hidden="true">
|
||||
<Frames>
|
||||
<Button name="$parentColumn1" parentKey="column1" inherits="CliqueColumnTemplate">
|
||||
<Anchors>
|
||||
<Anchor point="TOPLEFT">
|
||||
<Offset x="0" y="0"/>
|
||||
</Anchor>
|
||||
</Anchors>
|
||||
<Scripts>
|
||||
<OnLoad>
|
||||
WhoFrameColumn_SetWidth(self, 203);
|
||||
</OnLoad>
|
||||
</Scripts>
|
||||
</Button>
|
||||
<Button name="$parentColumn2" parentKey="column2" inherits="CliqueColumnTemplate">
|
||||
<Anchors>
|
||||
<Anchor point="TOPLEFT" relativePoint="TOPRIGHT" relativeTo="$parentColumn1">
|
||||
<Offset x="-2" y="0"/>
|
||||
</Anchor>
|
||||
</Anchors>
|
||||
<Scripts>
|
||||
<OnLoad>
|
||||
WhoFrameColumn_SetWidth(self, 120);
|
||||
</OnLoad>
|
||||
</Scripts>
|
||||
<ButtonText>
|
||||
<Anchors>
|
||||
<Anchor point="RIGHT">
|
||||
<Offset>
|
||||
<AbsDimension x="-8" y="0"/>
|
||||
</Offset>
|
||||
</Anchor>
|
||||
</Anchors>
|
||||
</ButtonText>
|
||||
</Button>
|
||||
<Slider name="$parent_VSlider" parentKey="slider" valueStep="1.0" hidden="true" orientation="VERTICAL">
|
||||
<Size x="18" y="0"/>
|
||||
<Anchors>
|
||||
<Anchor point="TOPRIGHT" x="0" y="-20"/>
|
||||
<Anchor point="BOTTOMRIGHT"/>
|
||||
</Anchors>
|
||||
<Backdrop edgeFile="Interface\Buttons\UI-SliderBar-Border" bgFile="Interface\Buttons\UI-SliderBar-Background" tile="true">
|
||||
<EdgeSize>
|
||||
<AbsValue val="8"/>
|
||||
</EdgeSize>
|
||||
<TileSize>
|
||||
<AbsValue val="8"/>
|
||||
</TileSize>
|
||||
<BackgroundInsets>
|
||||
<AbsInset left="3" right="3" top="6" bottom="6"/>
|
||||
</BackgroundInsets>
|
||||
</Backdrop>
|
||||
<Scripts>
|
||||
<OnValueChanged>
|
||||
CliqueConfig:UpdateList()
|
||||
</OnValueChanged>
|
||||
</Scripts>
|
||||
<ThumbTexture name="$parentThumbTexture" file="Interface\Buttons\UI-ScrollBar-Knob">
|
||||
<Size x="24" y="24"/>
|
||||
</ThumbTexture>
|
||||
</Slider>
|
||||
</Frames>
|
||||
<Scripts>
|
||||
<OnShow>
|
||||
CliqueConfig:EnableSpellbookButtons()
|
||||
</OnShow>
|
||||
<OnHide>
|
||||
CliqueConfig:EnableSpellbookButtons()
|
||||
</OnHide>
|
||||
</Scripts>
|
||||
</Frame> <!-- Page 1 - Configuration List -->
|
||||
|
||||
<!-- Page definitions - Edit Page -->
|
||||
<Frame name="$parentPage2" parentKey="page2" hidden="true">
|
||||
<Layers>
|
||||
<Layer level="OVERLAY">
|
||||
<FontString name="$parentDesc" parentKey="desc" inherits="GameFontHighlightSmallLeftTop">
|
||||
<Size x="0" y="200"/>
|
||||
<Anchors>
|
||||
<Anchor point="TOPLEFT" x="5" y="-5"/>
|
||||
<Anchor point="TOPRIGHT" x="-5" y="-5"/>
|
||||
</Anchors>
|
||||
</FontString>
|
||||
<FontString name="$parentBindText" parentKey="bindText" JustifyH="CENTER" inherits="GameFontHighlightSmallLeftTop">
|
||||
<Size x="200" y="12"/>
|
||||
<Anchors>
|
||||
<Anchor point="CENTER" relativeTo="$parent" x="0" y="-24"/>
|
||||
</Anchors>
|
||||
</FontString>
|
||||
</Layer>
|
||||
</Layers>
|
||||
<Frames>
|
||||
<Button name="$parentButtonBinding" parentKey="button_binding" inherits="UIPanelButtonTemplate2">
|
||||
<Size x="160" y="22"/>
|
||||
<Anchors>
|
||||
<Anchor point="CENTER" relativeTo="$parent" x="0" y="0"/>
|
||||
</Anchors>
|
||||
<Scripts>
|
||||
<OnLoad>
|
||||
self:RegisterForClicks("AnyUp")
|
||||
self:EnableKeyboard(false)
|
||||
</OnLoad>
|
||||
<OnEnter>
|
||||
if motion then
|
||||
self:EnableKeyboard(true)
|
||||
end
|
||||
if CliqueConfig.page2.editbox:HasFocus() then
|
||||
CliqueConfig.page2.editbox:ClearFocus()
|
||||
end
|
||||
</OnEnter>
|
||||
<OnLeave>
|
||||
self:EnableKeyboard(false)
|
||||
</OnLeave>
|
||||
<OnClick>
|
||||
CliqueConfig:MacroBindingButton_OnClick(self, button)
|
||||
</OnClick>
|
||||
<OnKeyDown>
|
||||
CliqueConfig:MacroBindingButton_OnClick(self, key)
|
||||
</OnKeyDown>
|
||||
<OnMouseWheel>
|
||||
local button = (delta > 0) and "MOUSEWHEELUP" or "MOUSEWHEELDOWN"
|
||||
CliqueConfig:MacroBindingButton_OnClick(self, button)
|
||||
</OnMouseWheel>
|
||||
</Scripts>
|
||||
</Button>
|
||||
|
||||
<!-- Wrap the scroll frame in a frame that can capture clicks -->
|
||||
<Button name="CliqueClickGrabber" parentKey="clickGrabber">
|
||||
<Size x="320" y="160"/>
|
||||
<Anchors>
|
||||
<Anchor point="BOTTOMLEFT" relativeTo="$parent" relativePoint="BOTTOMLEFT">
|
||||
<Offset>
|
||||
<AbsDimension x="1" y="0"/>
|
||||
</Offset>
|
||||
</Anchor>
|
||||
</Anchors>
|
||||
<Backdrop bgFile="Interface\Tooltips\UI-Tooltip-Background" edgeFile="Interface\Tooltips\UI-Tooltip-Border" tile="true">
|
||||
<EdgeSize>
|
||||
<AbsValue val="16"/>
|
||||
</EdgeSize>
|
||||
<TileSize>
|
||||
<AbsValue val="16"/>
|
||||
</TileSize>
|
||||
<BackgroundInsets>
|
||||
<AbsInset left="5" right="5" top="5" bottom="5"/>
|
||||
</BackgroundInsets>
|
||||
</Backdrop>
|
||||
<Scripts>
|
||||
<OnLoad>
|
||||
self:SetBackdropColor(0.3, 0.3, 0.3)
|
||||
self:SetBackdropBorderColor(0.5, 0.5, 0.5)
|
||||
</OnLoad>
|
||||
<OnClick>
|
||||
CliqueScrollFrameEditBox:SetFocus()
|
||||
</OnClick>
|
||||
</Scripts>
|
||||
<Frames>
|
||||
<ScrollFrame name="CliqueScrollFrame" parentKey="scrollFrame" inherits="UIPanelScrollFrameTemplate">
|
||||
<Size>
|
||||
<AbsDimension x="288" y="150"/>
|
||||
</Size>
|
||||
<Anchors>
|
||||
<Anchor point="TOPLEFT" relativeTo="$parent" relativePoint="TOPLEFT">
|
||||
<Offset>
|
||||
<AbsDimension x="5" y="-5"/>
|
||||
</Offset>
|
||||
</Anchor>
|
||||
</Anchors>
|
||||
<ScrollChild>
|
||||
<EditBox name="$parentEditBox" parentKey="editbox" multiLine="true" autoFocus="false" countInvisibleLetters="true">
|
||||
<Size>
|
||||
<AbsDimension x="288" y="85"/>
|
||||
</Size>
|
||||
<Scripts>
|
||||
<OnTextChanged>
|
||||
ScrollingEdit_OnTextChanged(self, self:GetParent());
|
||||
</OnTextChanged>
|
||||
<OnCursorChanged function="ScrollingEdit_OnCursorChanged"/>
|
||||
<OnUpdate>
|
||||
ScrollingEdit_OnUpdate(self, elapsed, self:GetParent());
|
||||
</OnUpdate>
|
||||
<OnEscapePressed function="EditBox_ClearFocus"/>
|
||||
</Scripts>
|
||||
<FontString inherits="GameFontHighlightSmall"/>
|
||||
</EditBox>
|
||||
</ScrollChild>
|
||||
</ScrollFrame>
|
||||
</Frames>
|
||||
</Button>
|
||||
</Frames>
|
||||
</Frame> <!-- Page 3 - Macro Edit Page -->
|
||||
|
||||
<!-- Alert above the spellbook to show we're in binding mode -->
|
||||
<Frame name="CliqueConfigBindAlert" parentKey="bindAlert" inherits="GlowBoxTemplate" hidden="false" frameStrata="DIALOG" framelevel="2">
|
||||
<Size x="235" y="43"/>
|
||||
<Anchors>
|
||||
<Anchor point="BOTTOMLEFT" relativeTo="AscensionSpellbookFrameContentSpellsSpellButton1" relativePoint="TOP" x="-40" y="25"/>
|
||||
</Anchors>
|
||||
<Layers>
|
||||
<Layer level="OVERLAY">
|
||||
<FontString name="$parentText" parentKey="text" inherits="GameFontHighlightLeft" justifyV="TOP" text="" >
|
||||
<Size x="230" y="0"/>
|
||||
<Anchors>
|
||||
<Anchor point="TOPLEFT" x="16" y="-15"/>
|
||||
</Anchors>
|
||||
</FontString>
|
||||
</Layer>
|
||||
</Layers>
|
||||
<Frames>
|
||||
<Frame name="$parentArrow" parentKey="arrow" inherits="GlowBoxArrowTemplate">
|
||||
<Anchors>
|
||||
<Anchor point="TOP" relativePoint="BOTTOMLEFT" x="40" y="1"/>
|
||||
</Anchors>
|
||||
</Frame>
|
||||
</Frames>
|
||||
<Scripts>
|
||||
<OnLoad>
|
||||
self.text:SetSpacing(4)
|
||||
</OnLoad>
|
||||
</Scripts>
|
||||
</Frame> <!-- End bindAlert -->
|
||||
</Frames>
|
||||
<Scripts>
|
||||
<OnLoad>
|
||||
CliqueConfigPortrait:SetTexture("Interface\\Addons\\Clique\\images\\icon_circle_128")
|
||||
CliqueConfig.page1:SetParent(CliqueConfig.Inset)
|
||||
CliqueConfig.page2:SetParent(CliqueConfig.Inset)
|
||||
CliqueConfig.page1:SetAllPoints(CliqueConfig.Inset)
|
||||
CliqueConfig.page2:SetAllPoints(CliqueConfig.Inset)
|
||||
</OnLoad>
|
||||
<OnShow>
|
||||
CliqueConfig:OnShow()
|
||||
</OnShow>
|
||||
<OnHide>
|
||||
CliqueConfig:OnHide()
|
||||
</OnHide>
|
||||
</Scripts>
|
||||
</Frame> <!-- CliqueConfig -->
|
||||
</Ui>
|
||||
|
||||
Reference in New Issue
Block a user