Files
coa-altoholic/Altoholic/Frames/TabSearch.xml
T
florian.berthold bbe2492a5b chore: flatten Altoholic-Addon/ wrapper + add standard .gitignore/.gitattributes
Each DataStore_* / Altoholic_* addon now lives at the repo root, matching
the Exiles fork-layout convention (one folder per addon, no wrapper dir).
2026-05-25 10:59:24 +02:00

436 lines
13 KiB
XML

<Ui xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.blizzard.com/wow/ui/">
<Script file="TabSearch.lua"></Script>
<Frame name="AltoholicTabSearch" parent="AltoholicFrame" hidden="true">
<Size>
<AbsDimension x="758" y="447"/>
</Size>
<Anchors>
<Anchor point="TOPLEFT"/>
</Anchors>
<Layers>
<Layer level="OVERLAY">
<FontString name="$parentLevelRange" inherits="GameFontNormalSmall" text="LEVEL_RANGE">
<Size x="70" y="20" />
<Anchors>
<Anchor point="LEFT" relativeTo="AltoholicFrameSearchLabel" relativePoint="RIGHT" >
<Offset x="33" y="0" />
</Anchor>
</Anchors>
<Color r="255" g="255" b="255" />
</FontString>
<FontString name="$parentRarity" inherits="GameFontNormalSmall" text="RARITY">
<Size x="90" y="20" />
<Anchors>
<Anchor point="LEFT" relativeTo="$parentLevelRange" relativePoint="RIGHT" >
<Offset x="10" y="0" />
</Anchor>
</Anchors>
<Color r="255" g="255" b="255" />
</FontString>
<FontString name="$parentSlot" inherits="GameFontNormalSmall">
<Size x="100" y="20" />
<Anchors>
<Anchor point="LEFT" relativeTo="$parentRarity" relativePoint="RIGHT" >
<Offset x="40" y="0" />
</Anchor>
</Anchors>
<Color r="255" g="255" b="255" />
</FontString>
<FontString name="$parentLocation" inherits="GameFontNormalSmall">
<Size x="100" y="20" />
<Anchors>
<Anchor point="LEFT" relativeTo="$parentSlot" relativePoint="RIGHT" >
<Offset x="20" y="0" />
</Anchor>
</Anchors>
<Color r="255" g="255" b="255" />
</FontString>
<FontString name="$parentStatus" inherits="GameFontNormal" justifyH="LEFT">
<Size x="320" y="24" />
<Anchors>
<Anchor point="BOTTOMRIGHT">
<Offset x="-250" y="13" />
</Anchor>
</Anchors>
<Color r="255" g="255" b="255" />
</FontString>
</Layer>
</Layers>
<Frames>
<Button name="$parentMenuItem1" inherits="AltoMenuItemTemplate" id="1">
<Anchors>
<Anchor point="TOPLEFT">
<Offset>
<AbsDimension x="23" y="-105"/>
</Offset>
</Anchor>
</Anchors>
</Button>
<Button name="$parentMenuItem2" inherits="AltoMenuItemTemplate" id="2">
<Anchors>
<Anchor point="TOPLEFT" relativeTo="$parentMenuItem1" relativePoint="BOTTOMLEFT">
<Offset>
<AbsDimension x="0" y="0"/>
</Offset>
</Anchor>
</Anchors>
</Button>
<Button name="$parentMenuItem3" inherits="AltoMenuItemTemplate" id="3">
<Anchors>
<Anchor point="TOPLEFT" relativeTo="$parentMenuItem2" relativePoint="BOTTOMLEFT">
<Offset>
<AbsDimension x="0" y="0"/>
</Offset>
</Anchor>
</Anchors>
</Button>
<Button name="$parentMenuItem4" inherits="AltoMenuItemTemplate" id="4">
<Anchors>
<Anchor point="TOPLEFT" relativeTo="$parentMenuItem3" relativePoint="BOTTOMLEFT">
<Offset>
<AbsDimension x="0" y="0"/>
</Offset>
</Anchor>
</Anchors>
</Button>
<Button name="$parentMenuItem5" inherits="AltoMenuItemTemplate" id="5">
<Anchors>
<Anchor point="TOPLEFT" relativeTo="$parentMenuItem4" relativePoint="BOTTOMLEFT">
<Offset>
<AbsDimension x="0" y="0"/>
</Offset>
</Anchor>
</Anchors>
</Button>
<Button name="$parentMenuItem6" inherits="AltoMenuItemTemplate" id="6">
<Anchors>
<Anchor point="TOPLEFT" relativeTo="$parentMenuItem5" relativePoint="BOTTOMLEFT">
<Offset>
<AbsDimension x="0" y="0"/>
</Offset>
</Anchor>
</Anchors>
</Button>
<Button name="$parentMenuItem7" inherits="AltoMenuItemTemplate" id="7">
<Anchors>
<Anchor point="TOPLEFT" relativeTo="$parentMenuItem6" relativePoint="BOTTOMLEFT">
<Offset>
<AbsDimension x="0" y="0"/>
</Offset>
</Anchor>
</Anchors>
</Button>
<Button name="$parentMenuItem8" inherits="AltoMenuItemTemplate" id="8">
<Anchors>
<Anchor point="TOPLEFT" relativeTo="$parentMenuItem7" relativePoint="BOTTOMLEFT">
<Offset>
<AbsDimension x="0" y="0"/>
</Offset>
</Anchor>
</Anchors>
</Button>
<Button name="$parentMenuItem9" inherits="AltoMenuItemTemplate" id="9">
<Anchors>
<Anchor point="TOPLEFT" relativeTo="$parentMenuItem8" relativePoint="BOTTOMLEFT">
<Offset>
<AbsDimension x="0" y="0"/>
</Offset>
</Anchor>
</Anchors>
</Button>
<Button name="$parentMenuItem10" inherits="AltoMenuItemTemplate" id="10">
<Anchors>
<Anchor point="TOPLEFT" relativeTo="$parentMenuItem9" relativePoint="BOTTOMLEFT">
<Offset>
<AbsDimension x="0" y="0"/>
</Offset>
</Anchor>
</Anchors>
</Button>
<Button name="$parentMenuItem11" inherits="AltoMenuItemTemplate" id="11">
<Anchors>
<Anchor point="TOPLEFT" relativeTo="$parentMenuItem10" relativePoint="BOTTOMLEFT">
<Offset>
<AbsDimension x="0" y="0"/>
</Offset>
</Anchor>
</Anchors>
</Button>
<Button name="$parentMenuItem12" inherits="AltoMenuItemTemplate" id="12">
<Anchors>
<Anchor point="TOPLEFT" relativeTo="$parentMenuItem11" relativePoint="BOTTOMLEFT">
<Offset>
<AbsDimension x="0" y="0"/>
</Offset>
</Anchor>
</Anchors>
</Button>
<Button name="$parentMenuItem13" inherits="AltoMenuItemTemplate" id="13">
<Anchors>
<Anchor point="TOPLEFT" relativeTo="$parentMenuItem12" relativePoint="BOTTOMLEFT">
<Offset>
<AbsDimension x="0" y="0"/>
</Offset>
</Anchor>
</Anchors>
</Button>
<Button name="$parentMenuItem14" inherits="AltoMenuItemTemplate" id="14">
<Anchors>
<Anchor point="TOPLEFT" relativeTo="$parentMenuItem13" relativePoint="BOTTOMLEFT">
<Offset>
<AbsDimension x="0" y="0"/>
</Offset>
</Anchor>
</Anchors>
</Button>
<Button name="$parentMenuItem15" inherits="AltoMenuItemTemplate" id="15">
<Anchors>
<Anchor point="TOPLEFT" relativeTo="$parentMenuItem14" relativePoint="BOTTOMLEFT">
<Offset>
<AbsDimension x="0" y="0"/>
</Offset>
</Anchor>
</Anchors>
</Button>
<ScrollFrame name="AltoholicSearchMenuScrollFrame" inherits="FauxScrollFrameTemplate">
<Size>
<AbsDimension x="160" y="305"/>
</Size>
<Anchors>
<Anchor point="TOPRIGHT" relativePoint="TOPLEFT">
<Offset>
<AbsDimension x="158" y="-105"/>
</Offset>
</Anchor>
</Anchors>
<Layers>
<Layer level="ARTWORK">
<Texture file="Interface\PaperDollInfoFrame\UI-Character-ScrollBar">
<Size>
<AbsDimension x="31" y="256"/>
</Size>
<Anchors>
<Anchor point="TOPLEFT" relativePoint="TOPRIGHT">
<Offset>
<AbsDimension x="-2" y="5"/>
</Offset>
</Anchor>
</Anchors>
<TexCoords left="0" right="0.484375" top="0" bottom="1.0"/>
</Texture>
<Texture file="Interface\PaperDollInfoFrame\UI-Character-ScrollBar">
<Size>
<AbsDimension x="31" y="106"/>
</Size>
<Anchors>
<Anchor point="BOTTOMLEFT" relativePoint="BOTTOMRIGHT">
<Offset>
<AbsDimension x="-2" y="-2"/>
</Offset>
</Anchor>
</Anchors>
<TexCoords left="0.515625" right="1.0" top="0" bottom="0.4140625"/>
</Texture>
</Layer>
</Layers>
<Scripts>
<OnVerticalScroll>
FauxScrollFrame_OnVerticalScroll(self, offset, 20, Altoholic.Tabs.Search.Update)
</OnVerticalScroll>
<OnShow>
Altoholic.Tabs.Search:Update()
</OnShow>
</Scripts>
</ScrollFrame>
<EditBox name="$parent_MinLevel" letters="2" numeric="true" autoFocus="false" inherits="InputBoxTemplate">
<Size x="25" y="16" />
<Anchors>
<Anchor point="LEFT" relativeTo="AltoholicFrame_SearchEditBox" relativePoint="RIGHT" >
<Offset x="10" y="0" />
</Anchor>
</Anchors>
<Scripts>
<OnEnterPressed>
self:ClearFocus();
</OnEnterPressed>
</Scripts>
</EditBox>
<EditBox name="$parent_MaxLevel" letters="2" numeric="true" autoFocus="false" inherits="InputBoxTemplate">
<Size x="25" y="16" />
<Anchors>
<Anchor point="LEFT" relativeTo="$parent_MinLevel" relativePoint="RIGHT" >
<Offset x="12" y="0" />
</Anchor>
</Anchors>
<Scripts>
<OnEnterPressed>
self:ClearFocus();
</OnEnterPressed>
</Scripts>
</EditBox>
<Frame name="$parent_SelectRarity" inherits="UIDropDownMenuTemplate">
<Anchors>
<Anchor point="LEFT" relativeTo="$parent_MaxLevel" relativePoint="RIGHT">
<Offset>
<AbsDimension x="0" y="-5"/>
</Offset>
</Anchor>
</Anchors>
<Scripts>
<OnLoad>
UIDropDownMenu_SetWidth(self, 100)
UIDropDownMenu_SetButtonWidth(self, 20)
UIDropDownMenu_Initialize(self, Altoholic.Tabs.Search.DropDownRarity_Initialize)
UIDropDownMenu_SetSelectedValue(self, 0);
UIDropDownMenu_SetText(self, ITEM_QUALITY_COLORS[0].hex .. _G["ITEM_QUALITY0_DESC"])
</OnLoad>
</Scripts>
</Frame>
<Frame name="$parent_SelectSlot" inherits="UIDropDownMenuTemplate">
<Anchors>
<Anchor point="LEFT" relativeTo="$parent_MaxLevel" relativePoint="RIGHT">
<Offset>
<AbsDimension x="130" y="-5"/>
</Offset>
</Anchor>
</Anchors>
<Scripts>
<OnLoad>
local L = LibStub("AceLocale-3.0"):GetLocale("Altoholic")
UIDropDownMenu_SetWidth(self, 80)
UIDropDownMenu_SetButtonWidth(self, 20)
UIDropDownMenu_Initialize(self, Altoholic.Tabs.Search.DropDownSlot_Initialize)
UIDropDownMenu_SetSelectedValue(self, 0);
UIDropDownMenu_SetText(self, L["Any"])
</OnLoad>
</Scripts>
</Frame>
<Frame name="$parent_SelectLocation" inherits="UIDropDownMenuTemplate">
<Anchors>
<Anchor point="LEFT" relativeTo="$parent_MaxLevel" relativePoint="RIGHT">
<Offset>
<AbsDimension x="250" y="-5"/>
</Offset>
</Anchor>
</Anchors>
<Scripts>
<OnLoad>
local L = LibStub("AceLocale-3.0"):GetLocale("Altoholic")
UIDropDownMenu_SetWidth(self, 150)
UIDropDownMenu_SetButtonWidth(self, 20)
UIDropDownMenu_Initialize(self, Altoholic.Tabs.Search.DropDownLocation_Initialize)
UIDropDownMenu_SetSelectedValue(self, 2);
UIDropDownMenu_SetText(self, format("%s %s(%s)", L["This realm"], "|cFF00FF00", L["This faction"]))
</OnLoad>
</Scripts>
</Frame>
<Button name="$parent_Sort1" inherits="AltoSortButtonTemplate" hidden="true" id="1">
<Size>
<AbsDimension x="240" y="19"/>
</Size>
<Anchors>
<Anchor point="TOPLEFT" relativeTo="AltoholicFrame_SearchEditBox" relativePoint="BOTTOMRIGHT">
<Offset>
<AbsDimension x="10" y="-10"/>
</Offset>
</Anchor>
</Anchors>
</Button>
<Button name="$parent_Sort2" inherits="AltoSortButtonTemplate" hidden="true" id="2">
<Size>
<AbsDimension x="160" y="19"/>
</Size>
<Anchors>
<Anchor point="LEFT" relativeTo="$parent_Sort1" relativePoint="RIGHT">
<Offset>
<AbsDimension x="5" y="0"/>
</Offset>
</Anchor>
</Anchors>
</Button>
<Button name="$parent_Sort3" inherits="AltoSortButtonTemplate" hidden="true" id="3">
<Size>
<AbsDimension x="150" y="19"/>
</Size>
<Anchors>
<Anchor point="LEFT" relativeTo="$parent_Sort2" relativePoint="RIGHT">
<Offset>
<AbsDimension x="5" y="0"/>
</Offset>
</Anchor>
</Anchors>
</Button>
<Button name="$parent_Sort4" inherits="AltoSortButtonTemplate" hidden="true" id="4">
<Size>
<AbsDimension x="50" y="19"/>
</Size>
<Anchors>
<Anchor point="LEFT" relativeTo="$parent_Sort3" relativePoint="RIGHT">
<Offset>
<AbsDimension x="0" y="0"/>
</Offset>
</Anchor>
</Anchors>
</Button>
<Button name="$parent_Sort5" inherits="AltoSortButtonTemplate" hidden="true" id="5">
<Size>
<AbsDimension x="50" y="19"/>
</Size>
<Anchors>
<Anchor point="LEFT" relativeTo="$parent_Sort4" relativePoint="RIGHT">
<Offset>
<AbsDimension x="0" y="0"/>
</Offset>
</Anchor>
</Anchors>
</Button>
<Button name="$parent_Sort6" inherits="AltoSortButtonTemplate" hidden="true" id="6">
<Size>
<AbsDimension x="50" y="19"/>
</Size>
<Anchors>
<Anchor point="LEFT" relativeTo="$parent_Sort5" relativePoint="RIGHT">
<Offset>
<AbsDimension x="0" y="0"/>
</Offset>
</Anchor>
</Anchors>
</Button>
<Button name="$parent_Sort7" inherits="AltoSortButtonTemplate" hidden="true" id="7">
<Size>
<AbsDimension x="50" y="19"/>
</Size>
<Anchors>
<Anchor point="LEFT" relativeTo="$parent_Sort6" relativePoint="RIGHT">
<Offset>
<AbsDimension x="0" y="0"/>
</Offset>
</Anchor>
</Anchors>
</Button>
<Button name="$parent_Sort8" inherits="AltoSortButtonTemplate" hidden="true" id="8">
<Size>
<AbsDimension x="50" y="19"/>
</Size>
<Anchors>
<Anchor point="LEFT" relativeTo="$parent_Sort7" relativePoint="RIGHT">
<Offset>
<AbsDimension x="0" y="0"/>
</Offset>
</Anchor>
</Anchors>
</Button>
</Frames>
<Scripts>
<OnShow>
Altoholic.Tabs.Search:Update()
</OnShow>
</Scripts>
</Frame>
</Ui>