<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">
<!-- Template: Reagent detail (normal) -->
<Button name="CauldronReagentDetailTemplate" virtual="true">
<Layers>
<Layer level="BACKGROUND">
<Texture name="$parentIconTexture">
<Size x="39" y="39"/>
<Anchors>
<Anchor point="TOPLEFT">
<Offset x="0" y="0"/>
</Anchor>
</Anchors>
</Texture>
<Texture name="$parentNameFrame" urgency="5" file="Interface\QuestFrame\UI-QuestItemNameFrame">
<Size x="128" y="64"/>
<Anchors>
<Anchor point="LEFT" relativeTo="$parentIconTexture" relativePoint="RIGHT">
<Offset x="-10" y="0"/>
</Anchor>
</Anchors>
</Texture>
<FontString name="$parentName" inherits="GameFontHighlight" justifyH="LEFT">
<Size x="90" y="36"/>
<Anchors>
<Anchor point="LEFT" relativeTo="$parentNameFrame">
<Offset x="15" y="0"/>
</Anchor>
</Anchors>
</FontString>
</Layer>
<Layer level="ARTWORK">
<FontString name="$parentCount" inherits="NumberFontNormal" justifyH="RIGHT">
<Anchors>
<Anchor point="BOTTOMRIGHT" relativeTo="$parentIconTexture">
<Offset x="-1" y="1"/>
</Anchor>
</Anchors>
</FontString>
</Layer>
</Layers>
<Scripts>
<OnEnter>
GameTooltip:SetOwner(self, "ANCHOR_TOPLEFT");
-- GameTooltip:SetHyperlink(self.link);
GameTooltip:SetTradeSkillItem(self.skillIndex, self.reagentIndex);
CursorUpdate(self);
</OnEnter>
<OnLeave>
GameTooltip:Hide();
ResetCursor();
</OnLeave>
<OnUpdate>
CursorOnUpdate(self);
</OnUpdate>
<OnClick>
HandleModifiedItemClick(self.link);
</OnClick>
</Scripts>
</Button>
<!-- Template: Reagent detail (small) -->
<Button name="CauldronReagentDetailSmallTemplate" virtual="true" hidden="true">
<Layers>
<Layer level="BACKGROUND">
<Texture name="$parentIconTexture">
<Size x="18" y="18"/>
<Anchors>
<Anchor point="TOPLEFT">
<Offset x="0" y="0"/>
</Anchor>
</Anchors>
</Texture>
</Layer>
<Layer level="ARTWORK">
<!--
<FontString name="$parentCount" inherits="NumberFontNormal" justifyH="RIGHT">
<Anchors>
<Anchor point="BOTTOMRIGHT" relativeTo="$parentIconTexture">
<Offset x="-1" y="1"/>
</Anchor>
</Anchors>
</FontString>
-->
</Layer>
</Layers>
<Scripts>
<OnEnter>
GameTooltip:SetOwner(self, "ANCHOR_TOPLEFT");
-- GameTooltip:SetHyperlink(self.link);
GameTooltip:SetTradeSkillItem(self.skillIndex, self.reagentIndex);
CursorUpdate(self);
</OnEnter>
<OnLeave>
GameTooltip:Hide();
ResetCursor();
</OnLeave>
<OnUpdate>
CursorOnUpdate(self);
</OnUpdate>
<OnClick>
HandleModifiedItemClick(self.link);
</OnClick>
</Scripts>
</Button>
<!-- Template: Skill category header -->
<Frame name="CauldronSkillCategoryFrameTemplate" virtual="true">
</Frame>
<!-- Template: Skill item base -->
<Frame name="CauldronSkillItemBaseFrameTemplate" virtual="true">
<Size x="510" y="37" />
</Frame>
<!-- Template: Skill item (normal, collapsed) -->
<Button name="CauldronSkillItemFrameTemplate" inherits="CauldronSkillItemBaseFrameTemplate" virtual="true">
<Layers>
<Layer level="OVERLAY">
<FontString name="$parentSkillName" inherits="GameFontNormal"
text="(name)" justifyH="LEFT" justifyV="CENTER">
<Size x="250" y="12"/>
<Anchors>
<Anchor point="TOPLEFT">
<Offset x="55" y="-4"/>
</Anchor>
</Anchors>
</FontString>
<FontString name="$parentSkillInfo" inherits="GameFontNormalSmall"
text="" justifyH="LEFT" justifyV="CENTER">
<Size x="250" y="12"/>
<Anchors>
<Anchor point="TOPLEFT">
<Offset x="70" y="-20"/>
</Anchor>
</Anchors>
</FontString>
</Layer>
<Layer level="HIGHLIGHT" setAllPoints="true">
<Texture file="Interface\QuestFrame\UI-QuestLogTitleHighlight" alphaMode="ADD">
<Color r="0.7" g="0.7" b="0.7" a="0.5" />
</Texture>
</Layer>
</Layers>
<Frames>
<Button name="$parentSkillIcon">
<Size x="37" y="37"/>
<Anchors>
<Anchor point="TOPLEFT">
<Offset x="15" y="-3"/>
</Anchor>
</Anchors>
<Layers>
<Layer level="ARTWORK">
<FontString name="$parentCount" inherits="NumberFontNormal" justifyH="RIGHT" hidden="false">
<Anchors>
<Anchor point="BOTTOMRIGHT">
<Offset x="-2" y="2"/>
</Anchor>
</Anchors>
</FontString>
</Layer>
</Layers>
<Scripts>
<OnLoad>
self.isCompact = false;
-- self.hasItem = 1;
</OnLoad>
<OnClick>
HandleModifiedItemClick(GetTradeSkillItemLink(self.skillIndex));
Cauldron:SkillItem_OnClick(self, button, down);
</OnClick>
<OnEnter>
GameTooltip:SetOwner(self, "ANCHOR_RIGHT");
GameTooltip:SetTradeSkillItem(self.skillIndex);
-- Cauldron:AppendToTooltip(GameTooltip, self.skillIndex);
CursorUpdate(self);
</OnEnter>
<OnLeave>
GameTooltip:Hide();
ResetCursor();
</OnLeave>
<OnUpdate>
if GameTooltip:IsOwned(self) then
GameTooltip:SetOwner(self, "ANCHOR_RIGHT");
GameTooltip:SetTradeSkillItem(self.skillIndex);
CursorUpdate(self);
end
CursorOnUpdate(self);
</OnUpdate>
</Scripts>
</Button>
<CheckButton name="$parentFavoriteButton" hidden="false" inherits="UICheckButtonTemplate" text="">
<Size x="20" y="22"/>
<Anchors>
<Anchor point="BOTTOMLEFT" relativeTo="$parentSkillIcon" relativePoint="BOTTOMRIGHT">
<Offset x="2" y="10"/>
</Anchor>
</Anchors>
<Scripts>
<OnLoad>
self:SetScale(0.625);
self:SetText(Cauldron:LocaleString("Favorite?"));
</OnLoad>
<OnEnter>
GameTooltip:SetOwner(self, "ANCHOR_RIGHT");
GameTooltip:ClearLines();
GameTooltip:AddLine(Cauldron:LocaleString("Mark this skill as a favorite"));
GameTooltip:Show();
CursorUpdate(self);
</OnEnter>
<OnLeave>
GameTooltip:Hide();
ResetCursor();
</OnLeave>
<OnClick>
PlaySound("igMainMenuOptionCheckBoxOn");
Cauldron:FavoriteItemButton_OnClick(self);
Cauldron:info("updating skill list from favorites selection");
Cauldron:UpdateSkillList();
</OnClick>
</Scripts>
</CheckButton>
<Button name="$parentDiscloseButton" inherits="ClassTrainerSkillButtonTemplate">
<Size x="20" y="22"/>
<Anchors>
<Anchor point="RIGHT" relativeTo="$parentSkillIcon" relativePoint="LEFT">
<Offset x="0" y="0"/>
</Anchor>
</Anchors>
<Scripts>
<OnLoad>
self:SetScale(0.75);
self:SetText("");
</OnLoad>
<OnClick>
Cauldron:CollapseItemButton_OnClick(self);
</OnClick>
</Scripts>
</Button>
<Frame name="$parentReagents">
<Size x="73" y="37" />
<Anchors>
<Anchor point="LEFT" relativeTo="$parentSkillIcon" relativePoint="RIGHT">
<Offset x="375" y="1"/>
</Anchor>
</Anchors>
<Frames>
<Button name="$parentItemDetail1" inherits="CauldronReagentDetailSmallTemplate" id="1">
<Size x="16" y="16" />
<Anchors>
<Anchor point="TOPLEFT">
<Offset x="0" y="0"/>
</Anchor>
</Anchors>
</Button>
<Button name="$parentItemDetail2" inherits="CauldronReagentDetailSmallTemplate" id="2">
<Size x="15" y="15" />
<Anchors>
<Anchor point="LEFT" relativeTo="$parentItemDetail1" relativePoint="RIGHT">
<Offset x="1" y="0"/>
</Anchor>
</Anchors>
</Button>
<Button name="$parentItemDetail3" inherits="CauldronReagentDetailSmallTemplate" id="3">
<Size x="15" y="15" />
<Anchors>
<Anchor point="LEFT" relativeTo="$parentItemDetail2" relativePoint="RIGHT">
<Offset x="1" y="0"/>
</Anchor>
</Anchors>
</Button>
<Button name="$parentItemDetail4" inherits="CauldronReagentDetailSmallTemplate" id="4">
<Size x="15" y="15" />
<Anchors>
<Anchor point="LEFT" relativeTo="$parentItemDetail3" relativePoint="RIGHT">
<Offset x="1" y="0"/>
</Anchor>
</Anchors>
</Button>
<Button name="$parentItemDetail5" inherits="CauldronReagentDetailSmallTemplate" id="5">
<Size x="15" y="15" />
<Anchors>
<Anchor point="TOP" relativeTo="$parentItemDetail1" relativePoint="BOTTOM">
<Offset x="0" y="-1"/>
</Anchor>
</Anchors>
</Button>
<Button name="$parentItemDetail6" inherits="CauldronReagentDetailSmallTemplate" id="6">
<Size x="15" y="15" />
<Anchors>
<Anchor point="LEFT" relativeTo="$parentItemDetail5" relativePoint="RIGHT">
<Offset x="1" y="0"/>
</Anchor>
</Anchors>
</Button>
<Button name="$parentItemDetail7" inherits="CauldronReagentDetailSmallTemplate" id="7">
<Size x="15" y="15" />
<Anchors>
<Anchor point="LEFT" relativeTo="$parentItemDetail6" relativePoint="RIGHT">
<Offset x="1" y="0"/>
</Anchor>
</Anchors>
</Button>
<Button name="$parentItemDetail8" inherits="CauldronReagentDetailSmallTemplate" id="8">
<Size x="15" y="15" />
<Anchors>
<Anchor point="LEFT" relativeTo="$parentItemDetail7" relativePoint="RIGHT">
<Offset x="1" y="0"/>
</Anchor>
</Anchors>
</Button>
</Frames>
</Frame>
<Frame name="$parentMiscInfo">
<Size x="110" y="37" />
<Anchors>
<Anchor point="TOPRIGHT">
<Offset x="-90" y="0" />
</Anchor>
</Anchors>
<Layers>
<Layer level="OVERLAY">
<FontString name="$parentAchievement" inherits="GameFontNormal"
justifyH="CENTER" justifyV="CENTER" text="A">
<Size x="10" y="37"/>
<Anchors>
<Anchor point="LEFT" relativeTo="$parentMiscInfo" relativePoint="LEFT">
<Offset x="20" y="0"/>
</Anchor>
</Anchors>
<Color r="1.0" g="1.0" b="0.0" />
</FontString>
<FontString name="$parentNumSkillUps" inherits="GameFontNormal"
justifyH="CENTER" justifyV="CENTER" text="">
<Size x="16" y="18"/>
<Anchors>
<Anchor point="LEFT" relativeTo="$parentMiscInfo" relativePoint="LEFT">
<Offset x="50" y="-18"/>
</Anchor>
</Anchors>
<Color r="1.0" g="0.5" b="0.25" />
</FontString>
<FontString name="$parentCount" inherits="GameFontNormalLarge"
justifyH="CENTER" justifyV="CENTER">
<Size x="40" y="37"/>
<Anchors>
<Anchor point="LEFT" relativeTo="$parentNumSkillUps" relativePoint="RIGHT">
<Offset x="0" y="0"/>
</Anchor>
</Anchors>
<Color r="1.0" g="1.0" b="1.0" />
</FontString>
</Layer>
</Layers>
<Frames>
<Button name="$parentCooldown">
<Size x="16" y="16" />
<Anchors>
<Anchor point="LEFT" relativeTo="$parentMiscInfo" relativePoint="LEFT">
<Offset x="0" y="0"/>
</Anchor>
</Anchors>
<Layers level="OVERLAY">
<Texture name="$parentTextureIcon" file="Interface\AddOns\Cauldron\Artwork\Cooldown" alphaMode="ADD">
<Color r="0.7" g="0.7" b="0.7" a="0.5" />
</Texture>
</Layers>
</Button>
<Frame>
<Size x="16" y="16" />
<Anchors>
<Anchor point="RIGHT" relativeTo="$parentNumSkillUps" relativePoint="LEFT">
<Offset x="34" y="0"/>
</Anchor>
</Anchors>
<Layers level="OVERLAY">
<Texture name="$parentNumSkillUpsIcon" file="Interface\TradeSkillFrame\UI-TradeSkill-Multiskill">
<Size x="16" y="16" />
<Color r="1.0" g="0.5" b="0.25" />
</Texture>
</Layers>
</Frame>
</Frames>
</Frame>
<Frame name="$parentSelection" setAllPoints="true" enableMouse="true" hidden="true" frameStrata="LOW" frameLevel="1">
<Layers>
<Layer level="OVERLAY">
<Texture name="$parentSelection" file="Interface\QuestFrame\UI-QuestLogTitleHighlight" alphaMode="ADD">
<Color r="0.5" g="0.5" b="0.5" a="0.5" />
</Texture>
</Layer>
</Layers>
</Frame>
</Frames>
<Scripts>
<OnClick>
Cauldron:SkillItem_OnClick(self, nil, nil);
</OnClick>
</Scripts>
</Button>
<!-- Main UI frame -->
<Frame name="CauldronFrame" inherits="ButtonFrameTemplate"
toplevel="true" parent="UIParent"
movable="true" enableMouse="true" hidden="true">
<Size x="550" y="525"/>
<Layers>
<Layer level="BACKGROUND">
</Layer>
<Layer level="OVERLAY">
<Texture name="CauldronHorizontalTopBarLeft" urgency="5" file="Interface\ClassTrainerFrame\UI-ClassTrainer-HorizontalBar">
<Size x="100" y="16"/> <!-- x="256" -->
<Anchors>
<Anchor point="TOPLEFT">
<Offset x="2" y="-94"/>
</Anchor>
<Anchor point="RIGHT">
<Offset x="-80" y="0"/>
</Anchor>
</Anchors>
<TexCoords left="0" right="1.0" top="0" bottom="0.25"/>
</Texture>
<Texture urgency="5" file="Interface\ClassTrainerFrame\UI-ClassTrainer-HorizontalBar">
<Size x="256" y="16"/>
<Anchors>
<Anchor point="LEFT" relativeTo="CauldronHorizontalTopBarLeft" relativePoint="RIGHT">
<Offset x="0" y="0"/>
</Anchor>
</Anchors>
<TexCoords left="0" right="1.0" top="0.25" bottom="0.5"/>
</Texture>
<Texture name="CauldronHorizontalBottomBarLeft" urgency="5" file="Interface\ClassTrainerFrame\UI-ClassTrainer-HorizontalBar">
<Size x="100" y="16"/> <!-- x="256" -->
<Anchors>
<Anchor point="TOPLEFT">
<Offset x="2" y="-462"/>
</Anchor>
<Anchor point="RIGHT">
<Offset x="-80" y="0"/>
</Anchor>
</Anchors>
<TexCoords left="0" right="1.0" top="0" bottom="0.25"/>
</Texture>
<Texture urgency="5" file="Interface\ClassTrainerFrame\UI-ClassTrainer-HorizontalBar">
<Size x="256" y="16"/>
<Anchors>
<Anchor point="LEFT" relativeTo="CauldronHorizontalBottomBarLeft" relativePoint="RIGHT">
<Offset x="0" y="0"/>
</Anchor>
</Anchors>
<TexCoords left="0" right="1.0" top="0.25" bottom="0.5"/>
</Texture>
</Layer>
</Layers>
<Frames>
<!-- Tradeskill name -->
<Frame name="CauldronSkillNameFrame">
<Size x="250" y="18" />
<Anchors>
<Anchor point="TOPLEFT" relativeTo="CauldronFrame">
<Offset x="60" y="-28" />
</Anchor>
</Anchors>
<Layers>
<Layer level="OVERLAY">
<FontString name="CauldronSkillNameText" inherits="QuestTitleFont" justifyH="LEFT" text="(skill name)">
<Size x="250" y="18" />
<Color r="0.8" g="0.8" b="0.0" />
</FontString>
</Layer>
</Layers>
<Scripts>
<OnLoad>
-- CauldronSkillNameText:SetText("skill name");
</OnLoad>
</Scripts>
</Frame>
<!-- Tradeskill rank text (+ skill count) -->
<Frame name="CauldronRankInfoFrame" drawLayer="BACKGROUND">
<Size x="300" y="15" />
<Anchors>
<Anchor point="TOPLEFT" relativeTo="CauldronSkillNameFrame" relativePoint="BOTTOMLEFT">
<Offset x="0" y="-2" />
</Anchor>
</Anchors>
<Layers>
<Layer level="ARTWORK">
<FontString name="CauldronRankInfoText" inherits="GameFontNormalSmall" justifyH="LEFT" text="(rank info)">
<Size x="300" y="15" />
<Anchors>
<Anchor point="TOPLEFT">
<Offset x="0" y="0" />
</Anchor>
</Anchors>
<Color r="0.5" g="0.5" b="0.5" />
</FontString>
</Layer>
</Layers>
</Frame>
<!-- Chat link button -->
<Frame name="CauldronLinkFrame">
<Size x="30" y="30"/>
<Anchors>
<Anchor point="TOPRIGHT" relativeTo="CauldronFrame" relativePoint="TOPRIGHT">
<Offset x="-7" y="-24"/>
</Anchor>
</Anchors>
<Frames>
<Frame name="CauldronLinkDropDown" inherits="UIDropDownMenuTemplate" clampedToScreen="true" id="1" hidden="true">
<Scripts>
<OnLoad function="CauldronLinkDropDown_OnLoad"/>
</Scripts>
</Frame>
<Button name="CauldronLinkButton">
<Size x="30" y="30"/>
<Anchors>
<Anchor point="LEFT">
<Offset x="0" y="0"/>
</Anchor>
</Anchors>
<Scripts>
<OnClick>
local activeEditBox = ChatEdit_GetActiveWindow();
if activeEditBox then
local link=GetTradeSkillListLink();
if (not ChatEdit_InsertLink(link) ) then
assert(activeEditBox:GetName(), "Failed to add tradeskill link")
end
else
ToggleDropDownMenu(1, nil, CauldronLinkDropDown, "CauldronLinkFrame", 25, 25);
end
PlaySound("igMainMenuOptionCheckBoxOn");
</OnClick>
<OnEnter>
GameTooltip:SetOwner(self,"ANCHOR_TOPLEFT");
GameTooltip:SetText(LINK_TRADESKILL_TOOLTIP, nil, nil, nil, nil, 1);
GameTooltip:Show();
</OnEnter>
<OnLeave function="GameTooltip_Hide"/>
</Scripts>
<NormalTexture file="Interface\Buttons\UI-LinkProfession-Up"/>
<PushedTexture file="Interface\Buttons\UI-LinkProfession-Down"/>
<HighlightTexture file="Interface\Buttons\UI-Common-MouseHilight" alphaMode="ADD"/>
</Button>
</Frames>
</Frame>
<!-- Tradeskill rank bar -->
<StatusBar name="CauldronRankFrame" drawLayer="BACKGROUND" minValue="0" maxValue="1" defaultValue="0" enableMouse="false">
<Size x="236" y="14"/>
<Anchors>
<Anchor point="RIGHT" relativeTo="CauldronLinkFrame" relativePoint="LEFT">
<Offset x="-5" y="0"/>
</Anchor>
</Anchors>
<Layers>
<Layer level="ARTWORK">
<FontString name="$parentText" inherits="GameFontHighlightSmall" justifyH="CENTER">
<Size x="0" y="9"/>
<Anchors>
<Anchor point="CENTER" relativeTo="CauldronRankFrame">
<Offset x="0" y="0"/>
</Anchor>
</Anchors>
</FontString>
<Texture name="$parentBorder" urgency="5" file="Interface\PaperDollInfoFrame\UI-Character-Skills-BarBorder">
<Size x="245" y="27"/>
<Anchors>
<Anchor point="LEFT">
<Offset x="-5" y="0"/>
</Anchor>
</Anchors>
</Texture>
</Layer>
<Layer level="BACKGROUND">
<Texture name="$parentBackground">
<Color r="1.0" g="1.0" b="1.0" a="0.2"/>
</Texture>
</Layer>
</Layers>
<Scripts>
<OnLoad>
self:RegisterEvent("SKILL_LINES_CHANGED");
</OnLoad>
<OnEvent function="CauldronFrame_Update"/>
</Scripts>
<BarTexture name="$parentBar" urgency="5" file="Interface\PaperDollInfoFrame\UI-Character-Skills-Bar" />
<BarColor r="0.25" g="0.25" b="0.75" />
</StatusBar>
<!-- Tradeskill unlearn button -->
<!-- Status text -->
<Frame name="CauldronStatusFrame">
<Size x="465" y="20" />
<Anchors>
<Anchor point="TOPLEFT">
<Offset x="7" y="-75" />
</Anchor>
</Anchors>
<Layers>
<Layer level="ARTWORK">
<Texture urgency="5" file="Interface\Buttons\UI-Listbox-Highlight2">
<Color r="0.6" g="0.75" b="1.0" a="0.5" />
</Texture>
<FontString name="CauldronStatusText" inherits="GameFontHighlight" justifyH="LEFT" text="">
<Size x="520" y="20" />
<Anchors>
<Anchor point="TOPLEFT">
<Offset x="0" y="0" />
</Anchor>
</Anchors>
<Color r="0.8" g="0.8" b="0.8" />
</FontString>
</Layer>
</Layers>
<Frames>
<Button name="CauldronStatusExitButton">
<Size x="17" y="17"/>
<Anchors>
<Anchor point="RIGHT" x="-2" y="0"/>
</Anchors>
<Layers>
<Layer level="ARTWORK">
<Texture file="Interface\FriendsFrame\ClearBroadcastIcon" alpha="0.5" parentKey="texture">
<Size x="17" y="17"/>
<Anchors>
<Anchor point="TOPLEFT" x="0" y="0"/>
</Anchors>
</Texture>
</Layer>
</Layers>
<Scripts>
<OnEnter>
self.texture:SetAlpha(1.0);
</OnEnter>
<OnLeave>
self.texture:SetAlpha(0.5);
</OnLeave>
<OnMouseDown>
self.texture:SetPoint("TOPLEFT", 1, -1);
</OnMouseDown>
<OnMouseUp>
self.texture:SetPoint("TOPLEFT", 0, 0);
</OnMouseUp>
<OnClick>
--[[
TradeSkillFrame.filterTbl = {hasMaterials = false, hasSkillUp = false, subClassValue = -1, slotValue = -1 };
TradeSkillOnlyShowSkillUps(TradeSkillFrame.filterTbl.hasSkillUp);
TradeSkillOnlyShowMakeable(TradeSkillFrame.filterTbl.hasMaterials);
SetTradeSkillSubClassFilter(TradeSkillFrame.filterTbl.subClassValue, 1, 1);
SetTradeSkillInvSlotFilter(TradeSkillFrame.filterTbl.slotValue, 1, 1);
TradeSkillUpdateFilterBar();
CloseDropDownMenus();
--]]
Cauldron:FilterDropDown_Reset();
Cauldron:SetWindowOffset(0);
Cauldron:UpdateSkillList();
Cauldron:UpdateStatus();
Cauldron:UpdatePageInfo();
</OnClick>
</Scripts>
</Button>
</Frames>
</Frame>
<!-- Filter menu -->
<Frame name="CauldronFilterFrame" >
<Size x="1" y="1"/>
<Anchors>
<Anchor point="TOPRIGHT" relativeTo="CauldronFrame" relativePoint="TOPRIGHT">
<Offset x="-80" y="-62"/>
</Anchor>
</Anchors>
<Frames>
<!-- filter -->
<Button name="CauldronFilterButton" inherits="UIMenuButtonStretchTemplate" text="FILTER">
<Size x="70" y="22"/>
<Anchors>
<Anchor point="LEFT"/>
</Anchors>
<Scripts>
<OnClick>
ToggleDropDownMenu(1, nil, CauldronFilterDropDown, "CauldronFilterButton", 74, 15);
</OnClick>
<OnLoad>
CauldronFilterButtonRightArrow:Show();
</OnLoad>
</Scripts>
</Button>
<Frame name="CauldronFilterDropDown" inherits="UIDropDownMenuTemplate">
<Scripts>
<OnLoad function="CauldronFilterDropDown_OnLoad"/>
</Scripts>
</Frame>
<!-- sort -->
<Button name="CauldronSortButton" inherits="UIMenuButtonStretchTemplate" text="SORT">
<Size x="70" y="22"/>
<Anchors>
<Anchor point="TOPLEFT" relativeTo="CauldronFilterButton" relativePoint="BOTTOMLEFT">
<Offset x="0" y="-1" />
</Anchor>
</Anchors>
<Scripts>
<OnClick>
ToggleDropDownMenu(1, nil, CauldronSortDropDown, "CauldronSortButton", 74, 15);
</OnClick>
<OnLoad>
CauldronSortButtonRightArrow:Show();
</OnLoad>
</Scripts>
</Button>
<Frame name="CauldronSortDropDown" inherits="UIDropDownMenuTemplate">
<Scripts>
<OnLoad function="CauldronSortDropDown_OnLoad"/>
</Scripts>
</Frame>
</Frames>
</Frame>
<!-- Search input box -->
<EditBox name="CauldronSearchBox" autoFocus="false">
<Size x="180" y="20"/>
<Anchors>
<Anchor point="RIGHT" relativeTo="CauldronFilterFrame" relativePoint="LEFT">
<Offset x="-5" y="0"/>
</Anchor>
</Anchors>
<Layers>
<Layer level="BACKGROUND">
<Texture name="CauldronSearchBoxLeft" urgency="5" file="Interface\Common\Common-Input-Border">
<Size x="8" y="20"/>
<Anchors>
<Anchor point="TOPLEFT">
<Offset x="-5" y="0"/>
</Anchor>
</Anchors>
<TexCoords left="0" right="0.0625" top="0" bottom="0.625"/>
</Texture>
<Texture name="CauldronSearchBoxRight" urgency="5" file="Interface\Common\Common-Input-Border">
<Size x="8" y="20"/>
<Anchors>
<Anchor point="RIGHT">
<Offset x="0" y="0"/>
</Anchor>
</Anchors>
<TexCoords left="0.9375" right="1.0" top="0" bottom="0.625"/>
</Texture>
<Texture name="CauldronSearchBoxMiddle" urgency="5" file="Interface\Common\Common-Input-Border">
<Size x="0" y="20"/>
<Anchors>
<Anchor point="LEFT" relativeTo="CauldronSearchBoxLeft" relativePoint="RIGHT"/>
<Anchor point="RIGHT" relativeTo="CauldronSearchBoxRight" relativePoint="LEFT"/>
</Anchors>
<TexCoords left="0.0625" right="0.9375" top="0" bottom="0.625"/>
</Texture>
</Layer>
<Layer level="OVERLAY">
<Texture name="CauldronSearchBoxSearchIcon" file="Interface\Common\UI-Searchbox-Icon">
<Color r="0.7" g="0.7" b="0.7" />
<Size x="14" y="14"/>
<Anchors>
<Anchor point="LEFT" y="-2"/>
</Anchors>
</Texture>
</Layer>
</Layers>
<Scripts>
<OnShow>
self:SetText(SEARCH);
self:SetFontObject("GameFontDisable");
CauldronSearchBoxSearchIcon:SetVertexColor(0.6, 0.6, 0.6);
self:SetTextInsets(16, 0, 0, 0);
</OnShow>
<OnEnterPressed function="EditBox_ClearFocus"/>
<OnEscapePressed function="EditBox_ClearFocus"/>
<OnTextChanged function="CauldronSearch_OnTextChanged"/>
<OnEditFocusLost>
self:HighlightText(0, 0);
if ( self:GetText() == "" ) then
self:SetText(SEARCH);
self:SetFontObject("GameFontDisable");
CauldronSearchBoxSearchIcon:SetVertexColor(0.6, 0.6, 0.6);
end
</OnEditFocusLost>
<OnEditFocusGained>
self:HighlightText();
if ( self:GetText() == SEARCH ) then
--self:SetText("");
self:SetFontObject("ChatFontSmall");
CauldronSearchBoxSearchIcon:SetVertexColor(1.0, 1.0, 1.0);
end
</OnEditFocusGained>
</Scripts>
<FontString inherits="ChatFontSmall"/>
</EditBox>
<!-- Skill list -->
<ScrollFrame name="CauldronSkillListScrollFrame" inherits="UIPanelScrollFrameTemplate">
<Size x="505" y="355" />
<Anchors>
<Anchor point="TOPLEFT" relativeTo="CauldronFrame" relativePoint="TOPLEFT">
<Offset x="10" y="-110"/>
</Anchor>
</Anchors>
<Layers>
<Layer level="BACKGROUND">
<Texture name="CauldronQueueFrameScrollBackgroundTopLeft" file="Interface\PaperDollInfoFrame\UI-Character-ScrollBar">
<Size x="31" y="256"/>
<Anchors>
<Anchor point="TOPLEFT" relativePoint="TOPRIGHT">
<Offset x="-2" y="5"/>
</Anchor>
</Anchors>
<TexCoords left="0" right="0.484375" top="0" bottom="1.0"/>
</Texture>
<Texture name="CauldronQueueFrameScrollBackgroundBottomRight" file="Interface\PaperDollInfoFrame\UI-Character-ScrollBar">
<Size x="31" y="106"/>
<Anchors>
<Anchor point="BOTTOMLEFT" relativePoint="BOTTOMRIGHT">
<Offset x="-2" y="-2"/>
</Anchor>
</Anchors>
<!-- TexCoords left="0.515625" right="1.0" top="0" bottom="0.4140625"/ -->
<TexCoords left="0.515625" right="1.0" top="0" bottom="0.4140625"/>
</Texture>
</Layer>
</Layers>
<ScrollChild>
<Frame name="CauldronSkillListScrollFrameScrollChild">
<Size x="505" y="355" />
<Anchors>
<Anchor point="TOPLEFT">
<Offset x="0" y="0"/>
</Anchor>
</Anchors>
<Frames>
</Frames>
</Frame>
</ScrollChild>
</ScrollFrame>
<!-- Paging info and controls -->
<Frame name="CauldronPagingFrame">
<Size x="535" y="18" />
<Anchors>
<Anchor point="BOTTOMLEFT" relativeTo="CauldronFrame">
<Offset x="10" y="31" />
</Anchor>
</Anchors>
<Layers>
<Layer level="OVERLAY">
<FontString name="CauldronPageInfoText" inherits="GameFontNormal" justifyH="LEFT" text="(page info)">
<Size x="250" y="18" />
<Color r="0.7" g="0.7" b="0.7" />
</FontString>
</Layer>
</Layers>
<Frames>
<Button name="CauldronBrowsePrevPageButton">
<Size x="32" y="32"/>
<Anchors>
<Anchor point="RIGHT">
<Offset x="-100" y="0"/>
</Anchor>
</Anchors>
<Layers>
<Layer level="BACKGROUND">
<FontString inherits="GameFontHighlightSmall" justifyH="LEFT" text="PREV">
<Size x="60" y="10"/>
<Anchors>
<Anchor point="LEFT" relativePoint="RIGHT"/>
</Anchors>
</FontString>
</Layer>
</Layers>
<Scripts>
<OnClick>
PlaySound("igMainMenuOptionCheckBoxOn");
if IsShiftKeyDown() then
Cauldron:FirstPage();
else
Cauldron:PrevPage();
end
Cauldron:UpdateSkillList();
Cauldron:UpdatePageInfo();
</OnClick>
</Scripts>
<NormalTexture urgency="5" file="Interface\Buttons\UI-SpellbookIcon-PrevPage-Up"/>
<PushedTexture urgency="5" file="Interface\Buttons\UI-SpellbookIcon-PrevPage-Down"/>
<DisabledTexture urgency="5" file="Interface\Buttons\UI-SpellbookIcon-PrevPage-Disabled"/>
<HighlightTexture file="Interface\Buttons\UI-Common-MouseHilight" alphaMode="ADD"/>
</Button>
<Button name="CauldronBrowseNextPageButton">
<Size x="32" y="32"/>
<Anchors>
<Anchor point="RIGHT">
<Offset x="-5" y="0"/>
</Anchor>
</Anchors>
<Layers>
<Layer level="BACKGROUND">
<FontString inherits="GameFontHighlightSmall" justifyH="RIGHT" text="NEXT">
<Size x="60" y="10"/>
<Anchors>
<Anchor point="RIGHT" relativePoint="LEFT"/>
</Anchors>
</FontString>
</Layer>
</Layers>
<Scripts>
<OnClick>
PlaySound("igMainMenuOptionCheckBoxOn");
if IsShiftKeyDown() then
Cauldron:LastPage();
else
Cauldron:NextPage();
end
Cauldron:UpdateSkillList();
Cauldron:UpdatePageInfo();
</OnClick>
</Scripts>
<NormalTexture urgency="5" file="Interface\Buttons\UI-SpellbookIcon-NextPage-Up"/>
<PushedTexture urgency="5" file="Interface\Buttons\UI-SpellbookIcon-NextPage-Down"/>
<DisabledTexture urgency="5" file="Interface\Buttons\UI-SpellbookIcon-NextPage-Disabled"/>
<HighlightTexture file="Interface\Buttons\UI-Common-MouseHilight" alphaMode="ADD"/>
</Button>
</Frames>
<Scripts>
</Scripts>
</Frame>
<!-- Queue All button -->
<Button name="CauldronQueueAllButton" inherits="CauldronButtonTemplate" text="Queue All">
<Anchors>
<Anchor point="BOTTOMLEFT">
<Offset x="2" y="5" />
</Anchor>
</Anchors>
<Scripts>
<OnLoad>
-- getglobal(self:GetName()):Disable();
</OnLoad>
<OnEnter>
GameTooltip:SetOwner(self, "ANCHOR_TOPLEFT");
GameTooltip:ClearLines();
GameTooltip:AddLine(Cauldron:LocaleString("Click to queue the listed amount of this item"));
GameTooltip:AddLine(Cauldron:LocaleString("Shift-click to queue the listed potential amount of this item"));
GameTooltip:Show();
CursorUpdate(self);
</OnEnter>
<OnLeave>
GameTooltip:Hide();
ResetCursor();
</OnLeave>
<OnClick>
Cauldron:QueueAllTradeSkillItem();
Cauldron:UpdateButtons();
</OnClick>
</Scripts>
</Button>
<!-- Create all button -->
<Button name="CauldronCreateAllButton" inherits="CauldronButtonTemplate" text="CREATE_ALL">
<Size x="80" y="22"/>
<Anchors>
<Anchor point="LEFT" relativeTo="CauldronQueueAllButton" relativePoint="RIGHT">
<Offset x="3" y="0"/>
</Anchor>
</Anchors>
<Frames>
<Frame name="$parentMask" setAllPoints="true" enableMouse="true" hidden="true">
<Scripts>
<OnEnter>
if (self.tooltip) then
GameTooltip:SetOwner(self, "ANCHOR_LEFT");
GameTooltip:SetText(self.tooltip, nil, nil, nil, nil, 1);
end
</OnEnter>
<OnLeave function="GameTooltip_Hide"/>
</Scripts>
</Frame>
</Frames>
<Scripts>
<OnClick>
if ( (not PartialPlayTime()) and (not NoPlayTime()) ) then
CauldronInputBox:SetNumber(CauldronFrame.numAvailable);
DoTradeSkill(CauldronFrame.selectedSkill, CauldronFrame.numAvailable);
CauldronInputBox:ClearFocus();
end
</OnClick>
</Scripts>
</Button>
<!-- Decrement count button -->
<Button name="CauldronDecrementButton">
<Size x="23" y="22"/>
<Anchors>
<Anchor point="LEFT" relativeTo="CauldronCreateAllButton" relativePoint="RIGHT">
<Offset x="3" y="0"/>
</Anchor>
</Anchors>
<Scripts>
<OnClick>
CauldronFrameDecrement_OnClick();
CauldronInputBox:ClearFocus();
</OnClick>
</Scripts>
<NormalTexture urgency="5" file="Interface\Buttons\UI-SpellbookIcon-PrevPage-Up"/>
<PushedTexture urgency="5" file="Interface\Buttons\UI-SpellbookIcon-PrevPage-Down"/>
<DisabledTexture urgency="5" file="Interface\Buttons\UI-SpellbookIcon-PrevPage-Disabled"/>
<HighlightTexture file="Interface\Buttons\UI-Common-MouseHilight" alphaMode="ADD"/>
</Button>
<!-- Count input box -->
<EditBox name="CauldronInputBox" letters="3" numeric="true" autoFocus="false">
<Size x="31" y="20"/>
<Anchors>
<Anchor point="LEFT" relativeTo="CauldronDecrementButton" relativePoint="RIGHT">
<Offset x="4" y="0"/>
</Anchor>
</Anchors>
<Layers>
<Layer level="BACKGROUND">
<Texture name="$parentLeft" urgency="5" file="Interface\Common\Common-Input-Border">
<Size>
<AbsDimension x="8" y="20"/>
</Size>
<Anchors>
<Anchor point="TOPLEFT">
<Offset>
<AbsDimension x="-5" y="0"/>
</Offset>
</Anchor>
</Anchors>
<TexCoords left="0" right="0.0625" top="0" bottom="0.625"/>
</Texture>
<Texture name="$parentRight" urgency="5" file="Interface\Common\Common-Input-Border">
<Size>
<AbsDimension x="8" y="20"/>
</Size>
<Anchors>
<Anchor point="RIGHT">
<Offset>
<AbsDimension x="0" y="0"/>
</Offset>
</Anchor>
</Anchors>
<TexCoords left="0.9375" right="1.0" top="0" bottom="0.625"/>
</Texture>
<Texture name="$parentMiddle" urgency="5" file="Interface\Common\Common-Input-Border">
<Size>
<AbsDimension x="10" y="20"/>
</Size>
<Anchors>
<Anchor point="LEFT" relativeTo="$parentLeft" relativePoint="RIGHT"/>
<Anchor point="RIGHT" relativeTo="$parentRight" relativePoint="LEFT"/>
</Anchors>
<TexCoords left="0.0625" right="0.9375" top="0" bottom="0.625"/>
</Texture>
</Layer>
</Layers>
<Scripts>
<OnEnterPressed function="EditBox_ClearFocus"/>
<OnEscapePressed function="EditBox_ClearFocus"/>
<OnTextChanged>
if ( self:GetText() == "0" ) then
self:SetText("1");
end
</OnTextChanged>
<OnEditFocusLost function="EditBox_ClearHighlight"/>
<OnEditFocusGained function="EditBox_HighlightText"/>
</Scripts>
<FontString inherits="ChatFontNormal"/>
</EditBox>
<!-- Increment count button -->
<Button name="CauldronIncrementButton">
<Size>
<AbsDimension x="23" y="22"/>
</Size>
<Anchors>
<Anchor point="LEFT" relativeTo="CauldronInputBox" relativePoint="RIGHT">
<Offset>
<AbsDimension x="3" y="0"/>
</Offset>
</Anchor>
</Anchors>
<Scripts>
<OnClick>
CauldronFrameIncrement_OnClick();
CauldronInputBox:ClearFocus();
</OnClick>
</Scripts>
<NormalTexture urgency="5" file="Interface\Buttons\UI-SpellbookIcon-NextPage-Up"/>
<PushedTexture urgency="5" file="Interface\Buttons\UI-SpellbookIcon-NextPage-Down"/>
<DisabledTexture urgency="5" file="Interface\Buttons\UI-SpellbookIcon-NextPage-Disabled"/>
<HighlightTexture file="Interface\Buttons\UI-Common-MouseHilight" alphaMode="ADD"/>
</Button>
<!-- Create button -->
<Button name="CauldronCreateButton" inherits="CauldronButtonTemplate" text="CREATE">
<Size x="80" y="22"/>
<Anchors>
<Anchor point="LEFT" relativeTo="CauldronIncrementButton" relativePoint="RIGHT" />
</Anchors>
<Frames>
<Frame name="$parentMask" setAllPoints="true" enableMouse="true" hidden="true">
<Scripts>
<OnEnter>
if (self.tooltip) then
GameTooltip:SetOwner(self, "ANCHOR_LEFT");
GameTooltip:SetText(self.tooltip, nil, nil, nil, nil, 1);
end
</OnEnter>
<OnLeave function="GameTooltip_Hide"/>
</Scripts>
</Frame>
</Frames>
<Scripts>
<OnClick>
if ( (not PartialPlayTime()) and (not NoPlayTime()) ) then
DoTradeSkill(CauldronFrame.selectedSkill, CauldronInputBox:GetNumber());
CauldronInputBox:ClearFocus();
end
</OnClick>
</Scripts>
</Button>
<!-- Queue button -->
<Button name="CauldronQueueButton" inherits="CauldronButtonTemplate" text="Queue">
<Anchors>
<Anchor point="LEFT" relativeTo="CauldronCreateButton" relativePoint="RIGHT">
<Offset x="0" y="0" />
</Anchor>
</Anchors>
<Scripts>
<OnLoad>
-- getglobal(self:GetName()):Disable();
</OnLoad>
<OnClick>
Cauldron:QueueTradeSkillItem();
Cauldron:UpdateButtons();
</OnClick>
</Scripts>
</Button>
<!-- View guild crafters button -->
<!-- Show queue button -->
<Button name="CauldronShowQueueButton" inherits="CauldronButtonTemplate" text="Show Queue">
<Size x="100" y="22"/>
<Anchors>
<Anchor point="BOTTOMRIGHT">
<Offset x="-4" y="4" />
</Anchor>
</Anchors>
<Frames>
<Frame name="$parentMask" setAllPoints="true" enableMouse="true" hidden="true">
<Scripts>
<OnEnter>
if (self.tooltip) then
GameTooltip:SetOwner(self, "ANCHOR_LEFT");
GameTooltip:SetText(self.tooltip, nil, nil, nil, nil, 1);
end
</OnEnter>
<OnLeave function="GameTooltip_Hide"/>
</Scripts>
</Frame>
</Frames>
<Scripts>
<OnLoad>
-- TODO: update with localized text
</OnLoad>
<OnClick>
ShowUIPanel(CauldronQueueWindowFrame);
Cauldron.vars.showQueue = true;
self:Hide();
</OnClick>
</Scripts>
</Button>
</Frames>
<Scripts>
<OnLoad function="CauldronFrame_OnLoad"/>
<OnEvent function="CauldronFrame_OnEvent"/>
<OnShow function="CauldronFrame_OnShow"/>
<OnHide function="CauldronFrame_OnHide"/>
</Scripts>
</Frame>
</Ui>