Added "Clear Search" Button to BankFrame UI

This commit is contained in:
KameleonUK
2026-03-10 09:18:12 +00:00
committed by GitHub
parent 258850cde9
commit 459fb15b5f
+31 -1
View File
@@ -263,7 +263,7 @@
<Anchors>
<Anchor point="LEFT">
<Offset>
<AbsDimension x="16" y="0"/>
<AbsDimension x="40" y="0"/>
</Offset>
</Anchor>
<Anchor point="RIGHT">
@@ -305,6 +305,36 @@
</OnEscapePressed>
</Scripts>
</EditBox>
<!-- Clear Search Button -->
<Button name="$parent_ClearButton">
<Size>
<AbsDimension x="26" y="26"/>
</Size>
<Anchors>
<Anchor point="LEFT">
<Offset>
<AbsDimension x="5" y="0"/>
</Offset>
</Anchor>
</Anchors>
<NormalTexture file="Interface\Buttons\UI-Panel-MinimizeButton-Up"/>
<PushedTexture file="Interface\Buttons\UI-Panel-MinimizeButton-Down"/>
<HighlightTexture file="Interface\Buttons\UI-Panel-MinimizeButton-Highlight" alphaMode="ADD"/>
<Scripts>
<OnClick>
Guda_BankFrame_ClearSearch()
</OnClick>
<OnEnter>
GameTooltip:SetOwner(this, "ANCHOR_TOP")
GameTooltip:SetText("Clear search bar")
GameTooltip:Show()
</OnEnter>
<OnLeave>
GameTooltip:Hide()
</OnLeave>
</Scripts>
</Button>
</Frames>
</Frame>