Files
AdvancedTradeSkillWindow2/CustomSorting.xml
T
2026-09-13 10:02:45 +00:00

645 lines
21 KiB
XML

<Ui>
<Button name="ATSWCSRecipeButtonTemplate" hidden="true" virtual="true">
<Size x="293" y="18"/>
<Layers>
<Layer level="BACKGROUND">
<Texture name="$parentTexture">
<Size x="16" y="16"/>
<Anchors>
<Anchor point="LEFT">
<Offset x="3" y="0"/>
</Anchor>
</Anchors>
<TexCoords left="0.08" right="0.92" top="0.08" bottom="0.92"/>
</Texture>
</Layer>
</Layers>
<Scripts>
<OnClick>
ATSWCSRecipeButton_OnClick(this.Name, this.SubName, this.Type, this.Texture)
ATSWCSNewCategoryBox:ClearFocus()
</OnClick>
<OnEnter>
GameTooltip:SetOwner(this, "ANCHOR_BOTTOMRIGHT")
local RecipeIndex = ATSW_GetPositionFromGame(this:GetText())
if ATSW_TradeSkill() then
GameTooltip:SetTradeSkillItem (RecipeIndex)
else
GameTooltip:SetCraftSpell (RecipeIndex)
end
GameTooltip:Show()
CursorUpdate()
</OnEnter>
<OnLeave>
GameTooltip:Hide()
ResetCursor()
</OnLeave>
</Scripts>
<HighlightTexture name="$parentHighlight" file="Interface\Buttons\UI-PlusButton-Hilight" alphaMode="ADD">
<Size x="16" y="16"/>
<Anchors>
<Anchor point="LEFT">
<Offset x="3" y="0"/>
</Anchor>
</Anchors>
<TexCoords left="0.2" right="0.8" top="0.2" bottom="0.8"/>
</HighlightTexture>
<ButtonText name="$parentText" inherits="GameFontNormal" justifyH="LEFT">
<Size x="280" y="0"/>
<Anchors>
<Anchor point="LEFT" relativeTo="$parentHighlight" relativePoint="RIGHT">
<Offset x="2" y="0"/>
</Anchor>
</Anchors>
</ButtonText>
<NormalFont inherits="GameFontNormal" justifyH="LEFT"/>
<HighlightFont inherits="GameFontHighlight" justifyH="LEFT"/>
</Button>
<Button name="ATSWCSCategoryButtonTemplate" hidden="true" virtual="true">
<Size x="240" y="16"/>
<Layers>
<Layer level="BACKGROUND">
<Texture name="$parentTexture">
<Size x="16" y="16"/>
<Anchors>
<Anchor point="LEFT">
<Offset x="3" y="0"/>
</Anchor>
</Anchors>
<TexCoords left="0.08" right="0.92" top="0.08" bottom="0.92"/>
</Texture>
</Layer>
</Layers>
<Scripts>
<OnClick>
ATSWCSCategoryButton_OnClick(this:GetText(), this:GetParent().Type, this:GetParent().Index, this:GetParent().CatIndex)
ATSWCSNewCategoryBox:ClearFocus()
</OnClick>
<OnEnter>
if this:GetParent().Type ~= "header" then
GameTooltip:SetOwner(this, "ANCHOR_BOTTOMRIGHT")
local RecipeIndex = ATSW_GetPositionFromGame(this:GetText())
if ATSW_TradeSkill() then
GameTooltip:SetTradeSkillItem (RecipeIndex)
else
GameTooltip:SetCraftSpell (RecipeIndex)
end
CursorUpdate()
end
</OnEnter>
<OnLeave>
GameTooltip:Hide()
ResetCursor()
</OnLeave>
</Scripts>
<HighlightTexture name="$parentHighlight" file="Interface\Buttons\UI-PlusButton-Hilight" alphaMode="ADD">
<Size x="16" y="16"/>
<Anchors>
<Anchor point="LEFT">
<Offset x="3" y="0"/>
</Anchor>
</Anchors>
</HighlightTexture>
<ButtonText name="$parentText" inherits="GameFontNormal" justifyH="LEFT">
<Anchors>
<Anchor point="LEFT" relativeTo="$parentTexture" relativePoint="RIGHT">
<Offset x="2" y="0"/>
</Anchor>
</Anchors>
</ButtonText>
<NormalFont inherits="GameFontNormal" justifyH="LEFT"/>
<HighlightFont inherits="GameFontHighlight" justifyH="LEFT"/>
<DisabledFont inherits="GameFontDisable" justifyH="LEFT"/>
</Button>
<ScrollFrame name="ATSWCSListScrollFrameBackgroundTemplate" virtual="true">
<Layers>
<Layer level="BACKGROUND">
<Texture file="Interface\ClassTrainerFrame\UI-ClassTrainer-ScrollBar">
<Size x="28" y="117"/>
<Anchors>
<Anchor point="TOPLEFT">
<Offset x="17" y="2"/>
</Anchor>
</Anchors>
<TexCoords left="0" right="0.46175" top="0.0234375" bottom="0.9609375"/>
</Texture>
<Texture file="Interface\ClassTrainerFrame\UI-ClassTrainer-ScrollBar">
<Size x="28" y="183"/>
<Anchors>
<Anchor point="TOPLEFT">
<Offset x="17" y="-113"/>
</Anchor>
</Anchors>
<TexCoords left="0.53125" right="1.0" top="0.03125" bottom="0.7"/>
</Texture>
<Texture file="Interface\ClassTrainerFrame\UI-ClassTrainer-ScrollBar">
<Size x="28" y="126"/>
<Anchors>
<Anchor point="BOTTOMLEFT">
<Offset x="17" y="-2"/>
</Anchor>
</Anchors>
<TexCoords left="0.53125" right="0.99" top="0.03125" bottom="1.0"/>
</Texture>
</Layer>
</Layers>
</ScrollFrame>
<Frame name="ATSWCSCategoryFrame" virtual="true">
<Size x="300" y="20"/>
<Frames>
<Button name="$parentSkillButton" inherits="ATSWCSCategoryButtonTemplate">
<Anchors>
<Anchor point="TOPLEFT"/>
</Anchors>
</Button>
</Frames>
</Frame>
<Frame name="ATSWCSFrame" movable="true" parent="UIParent" enableMouse="true" hidden="true" frameStrata="HIGH">
<HitRectInsets>
<AbsInset left="12" right="35" top="12" bottom="12"/>
</HitRectInsets>
<Size x="768" y="512"/>
<Anchors>
<Anchor point="TOPLEFT">
<Offset x="0" y="-104"/>
</Anchor>
</Anchors>
<Layers>
<Layer level="BACKGROUND">
<Texture name="ATSWCSFramePortrait" file="Interface\Spellbook\Spellbook-Icon">
<Size x="62" y="62"/>
<Anchors>
<Anchor point="TOPLEFT">
<Offset x="7" y="-5"/>
</Anchor>
</Anchors>
</Texture>
<Texture file="Interface\AddOns\AdvancedTradeSkillWindow2\Textures\UI-TaxiFrame-InBetween1">
<Size x="128" y="512"/>
<Anchors>
<Anchor point="TOPLEFT">
<Offset x="256" y="0"/>
</Anchor>
</Anchors>
</Texture>
<Texture file="Interface\AddOns\AdvancedTradeSkillWindow2\Textures\UI-TaxiFrame-BotLeftReplacement">
<Size x="256" y="256"/>
<Anchors>
<Anchor point="TOPLEFT">
<Offset x="0" y="-256"/>
</Anchor>
</Anchors>
</Texture>
<Texture file="Interface\TaxiFrame\UI-TaxiFrame-TopRight">
<Size x="128" y="256"/>
<Anchors>
<Anchor point="TOPLEFT">
<Offset x="640" y="0"/>
</Anchor>
</Anchors>
</Texture>
<Texture file="Interface\AddOns\AdvancedTradeSkillWindow2\Textures\UI-TaxiFrame-BotRightReplacement">
<Size x="128" y="256"/>
<Anchors>
<Anchor point="TOPLEFT">
<Offset x="640" y="-256"/>
</Anchor>
</Anchors>
</Texture>
</Layer>
<Layer level="BORDER">
<Texture file="Interface\AddOns\AdvancedTradeSkillWindow2\Textures\UI-TaxiFrame-InBetween2">
<Size x="514" y="512"/>
<Anchors>
<Anchor point="TOPLEFT">
<Offset x="255" y="0"/>
</Anchor>
</Anchors>
</Texture>
<Texture file="Interface\TaxiFrame\UI-TaxiFrame-TopLeft">
<Size x="256" y="256"/>
<Anchors>
<Anchor point="TOPLEFT"/>
</Anchors>
</Texture>
<FontString name="ATSWCSFrameTitleText" inherits="GameFontNormal" text="ATSWCS_TITLE">
<Size x="600" y="14"/>
<Anchors>
<Anchor point="TOP" relativeTo="ATSWCSFrame" relativePoint="TOP">
<Offset x="0" y="-17"/>
</Anchor>
</Anchors>
</FontString>
</Layer>
<Layer level="ARTWORK">
<Texture name="ATSWCSHorizontalBar2Left" file="Interface\ClassTrainerFrame\UI-ClassTrainer-HorizontalBar">
<Size x="292.5" y="16"/>
<Anchors>
<Anchor point="TOPLEFT">
<Offset x="346.85" y="-458"/>
</Anchor>
</Anchors>
<TexCoords left="0.02" right="1.0" top="0" bottom="0.25"/>
</Texture>
<Texture name="ATSWCSHorizontalBar2LeftAddon" file="Interface\ClassTrainerFrame\UI-ClassTrainer-HorizontalBar">
<Size x="90" y="16"/>
<Anchors>
<Anchor point="LEFT" relativeTo="ATSWCSHorizontalBar2Left" relativePoint="RIGHT"/>
</Anchors>
<TexCoords left="0" right="0.29296875" top="0.25" bottom="0.5"/>
</Texture>
</Layer>
<Layer level="OVERLAY">
<FontString name="ATSWRecipes" inherits="GameFontNormal" text="ATSWCS_TRADESKILLLISTTITLE" justifyH="left">
<Anchors>
<Anchor point="CENTER" relativeTo="ATSWCSFrame" relativePoint="CENTER">
<Offset x="-200" y="200"/>
</Anchor>
</Anchors>
<Color r="1" g="1" b="1"/>
</FontString>
<FontString name="ATSWCategories" inherits="GameFontNormal" text="ATSWCS_CATEGORYLISTTITLE" justifyH="right">
<Anchors>
<Anchor point="CENTER" relativeTo="ATSWCSFrame" relativePoint="CENTER">
<Offset x="150" y="213"/>
</Anchor>
</Anchors>
<Color r="1" g="1" b="1"/>
</FontString>
</Layer>
</Layers>
<Frames>
<Button name="ATSWCSFrameCloseButton" inherits="UIPanelCloseButton">
<Size x="20" y="20"/>
<Anchors>
<Anchor point="TOPRIGHT" relativeTo="ATSWCSFrame" relativePoint="TOPRIGHT">
<Offset x="-36" y="-14"/>
</Anchor>
</Anchors>
<Scripts>
<OnClick>
ATSW_SwitchToFrame(ATSWFrame)
</OnClick>
</Scripts>
</Button>
<ScrollFrame name="ATSWCSRecipesListScrollFrameBackground" inherits="ATSWCSListScrollFrameBackgroundTemplate">
<Size x="19" y="418"/>
<Anchors>
<Anchor point="TOPLEFT" relativeTo="ATSWCSFrame" relativePoint="TOPLEFT">
<Offset x="302" y="-75"/>
</Anchor>
</Anchors>
</ScrollFrame>
<ScrollFrame name="ATSWCSRecipesListScrollFrame" inherits="FauxScrollFrameTemplate" hidden="true">
<Size x="300" y="418"/>
<Anchors>
<Anchor point="TOPRIGHT" relativeTo="ATSWCSRecipesListScrollFrameBackground" relativePoint="TOPRIGHT">
<Offset x="-0.4" y="0.5"/>
</Anchor>
<Anchor point="BOTTOM" relativeTo="ATSWCSRecipesListScrollFrameBackground" relativePoint="BOTTOM">
<Offset x="0" y="0.5"/>
</Anchor>
</Anchors>
<Scripts>
<OnVerticalScroll>
FauxScrollFrame_OnVerticalScroll(ATSW_TRADESKILL_HEIGHT, ATSWCS_UpdateRecipes)
</OnVerticalScroll>
</Scripts>
</ScrollFrame>
<ScrollFrame name="ATSWCSCategoriesListScrollFrameBackground" inherits="ATSWCSListScrollFrameBackgroundTemplate">
<Size x="19" y="400"/>
<Anchors>
<Anchor point="TOPRIGHT" relativeTo="ATSWCSFrame" relativePoint="TOPRIGHT">
<Offset x="-66" y="-75"/>
</Anchor>
<Anchor point="BOTTOM" relativeTo="ATSWCSFrame" relativePoint="BOTTOM">
<Offset x="0" y="50"/>
</Anchor>
</Anchors>
</ScrollFrame>
<ScrollFrame name="ATSWCSCategoriesListScrollFrame" inherits="FauxScrollFrameTemplate" hidden="true">
<Anchors>
<Anchor point="TOPRIGHT" relativeTo="ATSWCSCategoriesListScrollFrameBackground" relativePoint="TOPRIGHT"/>
<Anchor point="BOTTOMLEFT" relativeTo="ATSWCSCategoriesListScrollFrameBackground" relativePoint="BOTTOMLEFT">
<Offset x="-334" y="0"/>
</Anchor>
</Anchors>
<Scripts>
<OnVerticalScroll>
FauxScrollFrame_OnVerticalScroll(ATSW_TRADESKILL_HEIGHT, ATSWCS_UpdateCategories)
</OnVerticalScroll>
</Scripts>
</ScrollFrame>
<Frame name="ATSWCSHighlight" hidden="true">
<Size x="0" y="18"/>
<Anchors>
<Anchor point="LEFT" relativeTo="ATSWCSCategoriesListScrollFrame" relativePoint="LEFT">
<Offset x="-2" y="0"/>
</Anchor>
<Anchor point="RIGHT" relativeTo="ATSWCSCategoriesListScrollFrame" relativePoint="RIGHT">
<Offset x="1" y="0"/>
</Anchor>
</Anchors>
<Layers>
<Layer level="ARTWORK">
<Texture name="$parentTexture" file="Interface\Buttons\UI-Listbox-Highlight2"/>
</Layer>
</Layers>
</Frame>
<Button name="ATSWCSRenameButton" inherits="UIPanelButtonTemplate" text="ATSWCS_RENAME" enabled="false">
<Size x="89" y="22"/>
<Anchors>
<Anchor point="CENTER" relativeTo="ATSWCSFrame" relativePoint="CENTER">
<Offset x="302" y="195"/>
</Anchor>
</Anchors>
<Scripts>
<OnClick>
ATSWCSRenameButton_OnClick()
ATSWCSNewCategoryBox:ClearFocus()
</OnClick>
</Scripts>
<HighlightFont>
<Color r="1" g="0.82" b="0"/>
</HighlightFont>
</Button>
<Button name="ATSWCSAddButton" inherits="UIPanelButtonTemplate" text="ATSWCS_ADD" enabled="false">
<Size x="70" y="22"/>
<Anchors>
<Anchor point="RIGHT" relativeTo="ATSWCSRenameButton" relativePoint="LEFT">
<Offset x="0" y="0"/>
</Anchor>
</Anchors>
<Scripts>
<OnLoad>
this:SetWidth(this:GetTextWidth() + 30)
</OnLoad>
<OnClick>
ATSWCSAddButton_OnClick()
ATSWCSNewCategoryBox:SetText("")
ATSWCSNewCategoryBox:ClearFocus()
</OnClick>
</Scripts>
<HighlightFont>
<Color r="1" g="0.82" b="0"/>
</HighlightFont>
</Button>
<EditBox name="ATSWCSNewCategoryBox" historyLines="0" numeric="false" autoFocus="false">
<Size x="210" y="20"/>
<Anchors>
<Anchor point="RIGHT" relativeTo="ATSWCSAddButton" relativePoint="LEFT"/>
</Anchors>
<Layers>
<Layer level="ARTWORK">
<Texture name="$parentLeft" 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="$parentRight" file="Interface\Common\Common-Input-Border">
<Size>
<AbsDimension x="8" y="20"/>
</Size>
<Anchors>
<Anchor point="RIGHT"/>
</Anchors>
<TexCoords left="0.9375" right="1.0" top="0" bottom="0.625"/>
</Texture>
<Texture name="$parentMiddle" file="Interface\Common\Common-Input-Border">
<Size x="10" y="20"/>
<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>
<FontString name="ATSWCatName" inherits="GameFontNormal" text="ATSWCS_CATEGORYNAMETITLE" justifyH="right">
<Anchors>
<Anchor point="RIGHT" relativeTo="ATSWCSNewCategoryBox" relativePoint="LEFT">
<Offset x="-8" y="0"/>
</Anchor>
</Anchors>
<Color r="1" g="1" b="1"/>
</FontString>
</Layer>
</Layers>
<Scripts>
<OnEnterPressed>
text = ATSWCSNewCategoryBox:GetText()
if text ~= ATSW_UNCATEGORIZED then
ATSWCSAddButton_OnClick()
this:SetText("")
this:ClearFocus()
end
</OnEnterPressed>
<OnEscapePressed>
this:ClearFocus()
</OnEscapePressed>
<OnTextChanged>
ATSWCSNewCategoryBox_OnTextChanged()
</OnTextChanged>
<OnEditFocusLost>
local text = this:GetText()
this:HighlightText(0, 0)
if text ~= "" then
ATSWCSAddCategoryLabel:Hide()
ATSWCSAddCategoryIcon:Hide()
else
ATSWCSAddCategoryLabel:Show()
ATSWCSAddCategoryIcon:Show()
end
</OnEditFocusLost>
<OnEditFocusGained>
this:HighlightText()
ATSWCSAddCategoryLabel:Hide()
ATSWCSAddCategoryIcon:Hide()
</OnEditFocusGained>
</Scripts>
<FontString inherits="ChatFontNormal"/>
</EditBox>
<Frame name="ATSWCSAddCategoryLabelFrame">
<Layers>
<Layer level="BACKGROUND">
<Texture name="ATSWCSAddCategoryIcon" file="Interface\AddOns\AdvancedTradeSkillWindow2\Textures\Category">
<Size x="12" y="12"/>
<Anchors>
<Anchor point="TOPLEFT" relativeTo="ATSWCSNewCategoryBox" relativePoint="TOPLEFT">
<Offset x="0" y="-4"/>
</Anchor>
</Anchors>
</Texture>
<FontString name="ATSWCSAddCategoryLabel" inherits="GameFontNormalSmall" text="ATSWCS_ADDCATEGORYLABEL" justifyH="left">
<Anchors>
<Anchor point="LEFT" relativeTo="ATSWCSAddCategoryIcon" relativePoint="RIGHT">
<Offset x="3" y="-0.5"/>
</Anchor>
</Anchors>
<Color r="1" g="1" b="1" a="1"/>
</FontString>
</Layer>
</Layers>
</Frame>
<Button name="$parentDelete" inherits="UIPanelCloseButton">
<Size x="18" y="18"/>
<Anchors>
<Anchor point="BOTTOMRIGHT" relativePoint="BOTTOMRIGHT">
<Offset x="-100" y="21"/>
</Anchor>
</Anchors>
<Scripts>
<OnLoad>
this:GetDisabledTexture():SetTexCoord(0.20, 0.8, 0.2, 0.8)
</OnLoad>
<OnMouseUp>
if MouseIsOver(this) and this:IsEnabled() == 1 then
ATSWCSFrameDelete_OnClick()
ATSWCSNewCategoryBox:ClearFocus()
local Enabled = this:IsEnabled() == 1
this:SetButtonState("NORMAL", false)
if not Enabled then
this:Disable()
end
end
</OnMouseUp>
</Scripts>
<DisabledTexture file="Interface\Buttons\UI-Panel-MinimizeButton-Disabled"/>
<Layers>
<Layer>
<FontString name="$parentLabel" inherits="NumberFontNormalYellow" text="ATSWCS_DELETE" justifyH="LEFT">
<Anchors>
<Anchor point="LEFT" relativeTo="ATSWCSFrameDelete" relativePoint="RIGHT">
<Offset x="0" y="1"/>
</Anchor>
</Anchors>
<Color r="1" g="1" b="1" a="1"/>
</FontString>
</Layer>
</Layers>
</Button>
<Button name="$parentMoveDown" inherits="UIPanelScrollDownButtonTemplate">
<Anchors>
<Anchor point="RIGHT" relativeTo="$parentDelete" relativePoint="LEFT">
<Offset x="-80" y="0"/>
</Anchor>
</Anchors>
<Scripts>
<OnClick>
ATSWCSFrameMoveDown_OnClick()
</OnClick>
</Scripts>
<Layers>
<Layer>
<FontString name="$parentLabel" inherits="NumberFontNormalYellow" text="ATSWCS_MOVEDOWN" justifyH="LEFT">
<Anchors>
<Anchor point="LEFT" relativeTo="ATSWCSFrameMoveDown" relativePoint="RIGHT">
<Offset x="1" y="1"/>
</Anchor>
</Anchors>
<Color r="1" g="1" b="1" a="1"/>
</FontString>
</Layer>
</Layers>
</Button>
<Button name="$parentMoveUp" inherits="UIPanelScrollUpButtonTemplate">
<Anchors>
<Anchor point="RIGHT" relativeTo="$parentMoveDown" relativePoint="LEFT">
<Offset x="-80" y="0"/>
</Anchor>
</Anchors>
<Scripts>
<OnClick>
ATSWCSFrameMoveUp_OnClick()
</OnClick>
</Scripts>
<Layers>
<Layer>
<FontString name="$parentLabel" inherits="NumberFontNormalYellow" text="ATSWCS_MOVEUP" justifyH="LEFT">
<Anchors>
<Anchor point="LEFT" relativeTo="ATSWCSFrameMoveUp" relativePoint="RIGHT">
<Offset x="1" y="1"/>
</Anchor>
</Anchors>
<Color r="1" g="1" b="1" a="1"/>
</FontString>
</Layer>
</Layers>
</Button>
<Button name="$parentRename" inherits="UIPanelButtonTemplate" text="...">
<Size x="18" y="18"/>
<Anchors>
<Anchor point="RIGHT" relativeTo="ATSWCSFrameMoveUp" relativePoint="LEFT">
<Offset x="-80" y="0"/>
</Anchor>
</Anchors>
<Scripts>
<OnClick>
ATSWCSFrameRename_OnClick()
</OnClick>
</Scripts>
<Layers>
<Layer>
<FontString name="$parentLabel" inherits="NumberFontNormalYellow" text="ATSWCS_RENAME" justifyH="LEFT">
<Anchors>
<Anchor point="LEFT" relativeTo="ATSWCSFrameRename" relativePoint="RIGHT">
<Offset x="1" y="1"/>
</Anchor>
</Anchors>
<Color r="1" g="1" b="1" a="1"/>
</FontString>
</Layer>
</Layers>
</Button>
</Frames>
<Scripts>
<OnLoad>
ATSWCS_OnLoad()
</OnLoad>
<OnShow>
ATSWCS_OnShow()
</OnShow>
<OnHide>
ATSWUpdaterFrame:Hide()
ATSW_SwitchingToMain = true
ATSW_SwitchToFrame(ATSWFrame)
</OnHide>
</Scripts>
<HighlightFont>
<Color r="1" g="0.82" b="0"/>
</HighlightFont>
</Frame>
</Ui>