Files
FishingBuddy/FishingWatcher.xml
Roman Kharitonov 4671cbd714 Merge ilithyia-addons fork (v0.8.8e)
- Russian localization (by Maus)
- FishingSchools: track fishing pools, Gatherer integration
- FishingOutfitter: Outfitter addon integration
- Interface 11200 (patch 1.12 support)
- Improved options system with dependencies
- Better watcher frame positioning
- Various bugfixes

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-01 23:45:01 +10:00

259 lines
8.8 KiB
XML
Executable File

<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">
<Script file="FishingWatcher.lua"/>
<FontString name="FishingWatchFontTemplate" inherits="GameFontNormal" virtual="true" justifyH="LEFT">
<Size>
<AbsDimension x="0" y="13"/>
</Size>
</FontString>
<Button name="FishingWatchDrag" toplevel="true" enableMouse="true" movable="true" parent="UIParent" hidden="true">
<Layers>
<Layer level="BACKGROUND">
<Texture name="$parentBackground" file="Interface\ChatFrame\ChatFrameBackground">
<Anchors>
<Anchor point="TOPLEFT"/>
<Anchor point="TOPRIGHT"/>
<Anchor point="BOTTOMLEFT"/>
<Anchor point="BOTTOMRIGHT"/>
</Anchors>
</Texture>
</Layer>
</Layers>
<Scripts>
<OnLoad>
this:RegisterForClicks("RightButtonUp");
</OnLoad>
<OnClick>
FishingBuddy.WatchFrame.OnClick();
</OnClick>
<OnMouseDown>
FishingBuddy.WatchFrame.OnMouseDown();
</OnMouseDown>
<OnMouseUp>
FishingBuddy.WatchFrame.OnMouseUp();
</OnMouseUp>
</Scripts>
</Button>
<Button name="FishingWatchTab" toplevel="true" enableMouse="false" parent="UIParent" hidden="true">
<Size>
<AbsDimension x="64" y="32"/>
</Size>
<Anchors>
<Anchor point="BOTTOMLEFT" relativeTo="FishingWatchDrag" relativePoint="TOPLEFT">
<AbsDimension x="0" y="2"/>
</Anchor>
</Anchors>
<Layers>
<Layer level="BACKGROUND">
<Texture name="$parentLeft" file="Interface\ChatFrame\ChatFrameTab">
<Size>
<AbsDimension x="16" y="32"/>
</Size>
<Anchors>
<Anchor point="TOPLEFT"/>
</Anchors>
<TexCoords left="0.0" right="0.25" top="0.0" bottom="1.0"/>
</Texture>
<Texture name="$parentMiddle" file="Interface\ChatFrame\ChatFrameTab">
<Size>
<AbsDimension x="44" y="32"/>
</Size>
<Anchors>
<Anchor point="LEFT" relativeTo="$parentLeft" relativePoint="RIGHT"/>
</Anchors>
<TexCoords left="0.25" right="0.75" top="0.0" bottom="1.0"/>
</Texture>
<Texture name="$parentRight" file="Interface\ChatFrame\ChatFrameTab">
<Size>
<AbsDimension x="16" y="32"/>
</Size>
<Anchors>
<Anchor point="LEFT" relativeTo="$parentMiddle" relativePoint="RIGHT"/>
</Anchors>
<TexCoords left="0.75" right="1.0" top="0.0" bottom="1.0"/>
</Texture>
</Layer>
</Layers>
<NormalText name="$parentText" inherits="GameFontNormalSmall">
<Size>
<AbsDimension x="50" y="8"/>
</Size>
<Anchors>
<Anchor point="LEFT" relativeTo="$parentLeft" relativePoint="RIGHT">
<Offset>
<AbsDimension x="0" y="-5"/>
</Offset>
</Anchor>
</Anchors>
</NormalText>
<HighlightTexture file="Interface\PaperDollInfoFrame\UI-Character-Tab-Highlight" alphaMode="ADD">
<Anchors>
<Anchor point="LEFT" relativeTo="$parentLeft">
<Offset>
<AbsDimension x="0" y="-7"/>
</Offset>
</Anchor>
<Anchor point="RIGHT" relativeTo="$parentRight">
<Offset>
<AbsDimension x="0" y="-7"/>
</Offset>
</Anchor>
</Anchors>
</HighlightTexture>
<Scripts>
<OnLoad>
this:RegisterForClicks("RightButtonUp");
</OnLoad>
<OnClick>
FishingBuddy.WatchFrame.OnClick();
</OnClick>
<OnMouseDown>
FishingBuddy.WatchFrame.OnMouseDown();
</OnMouseDown>
<OnMouseUp>
FishingBuddy.WatchFrame.OnMouseUp();
</OnMouseUp>
</Scripts>
</Button>
<Frame name="FishingWatchFrame" toplevel="true" enableMouse="false" movable="true" parent="UIParent" hidden="true">
<Size>
<AbsDimension x="280" y="20"/>
</Size>
<Anchors>
<Anchor point="TOPLEFT" relativeTo="FishingWatchDrag" relativePoint="TOPLEFT">
<Offset>
<AbsDimension x="0" y="0"/>
</Offset>
</Anchor>
</Anchors>
<Layers>
<Layer level="BACKGROUND">
<FontString name="FishingWatchLine1" inherits="FishingWatchFontTemplate" hidden="true">
<Size>
<AbsDimension x="0" y="13"/>
</Size>
<Anchors>
<Anchor point="TOPLEFT"/>
</Anchors>
</FontString>
<FontString name="FishingWatchLine2" inherits="FishingWatchFontTemplate" hidden="true">
<Anchors>
<Anchor point="TOPLEFT" relativeTo="FishingWatchLine1" relativePoint="BOTTOMLEFT"/>
</Anchors>
</FontString>
<FontString name="FishingWatchLine3" inherits="FishingWatchFontTemplate" hidden="true">
<Anchors>
<Anchor point="TOPLEFT" relativeTo="FishingWatchLine2" relativePoint="BOTTOMLEFT"/>
</Anchors>
</FontString>
<FontString name="FishingWatchLine4" inherits="FishingWatchFontTemplate" hidden="true">
<Anchors>
<Anchor point="TOPLEFT" relativeTo="FishingWatchLine3" relativePoint="BOTTOMLEFT"/>
</Anchors>
</FontString>
<FontString name="FishingWatchLine5" inherits="FishingWatchFontTemplate" hidden="true">
<Anchors>
<Anchor point="TOPLEFT" relativeTo="FishingWatchLine4" relativePoint="BOTTOMLEFT"/>
</Anchors>
</FontString>
<FontString name="FishingWatchLine6" inherits="FishingWatchFontTemplate" hidden="true">
<Anchors>
<Anchor point="TOPLEFT" relativeTo="FishingWatchLine5" relativePoint="BOTTOMLEFT"/>
</Anchors>
</FontString>
<FontString name="FishingWatchLine7" inherits="FishingWatchFontTemplate" hidden="true">
<Anchors>
<Anchor point="TOPLEFT" relativeTo="FishingWatchLine6" relativePoint="BOTTOMLEFT"/>
</Anchors>
</FontString>
<FontString name="FishingWatchLine8" inherits="FishingWatchFontTemplate" hidden="true">
<Anchors>
<Anchor point="TOPLEFT" relativeTo="FishingWatchLine7" relativePoint="BOTTOMLEFT"/>
</Anchors>
</FontString>
<FontString name="FishingWatchLine9" inherits="FishingWatchFontTemplate" hidden="true">
<Anchors>
<Anchor point="TOPLEFT" relativeTo="FishingWatchLine8" relativePoint="BOTTOMLEFT"/>
</Anchors>
</FontString>
<FontString name="FishingWatchLine10" inherits="FishingWatchFontTemplate" hidden="true">
<Anchors>
<Anchor point="TOPLEFT" relativeTo="FishingWatchLine9" relativePoint="BOTTOMLEFT"/>
</Anchors>
</FontString>
<FontString name="FishingWatchLine11" inherits="FishingWatchFontTemplate" hidden="true">
<Anchors>
<Anchor point="TOPLEFT" relativeTo="FishingWatchLine10" relativePoint="BOTTOMLEFT"/>
</Anchors>
</FontString>
<FontString name="FishingWatchLine12" inherits="FishingWatchFontTemplate" hidden="true">
<Anchors>
<Anchor point="TOPLEFT" relativeTo="FishingWatchLine11" relativePoint="BOTTOMLEFT"/>
</Anchors>
</FontString>
<FontString name="FishingWatchLine13" inherits="FishingWatchFontTemplate" hidden="true">
<Anchors>
<Anchor point="TOPLEFT" relativeTo="FishingWatchLine12" relativePoint="BOTTOMLEFT"/>
</Anchors>
</FontString>
<FontString name="FishingWatchLine14" inherits="FishingWatchFontTemplate" hidden="true">
<Anchors>
<Anchor point="TOPLEFT" relativeTo="FishingWatchLine13" relativePoint="BOTTOMLEFT"/>
</Anchors>
</FontString>
<FontString name="FishingWatchLine15" inherits="FishingWatchFontTemplate" hidden="true">
<Anchors>
<Anchor point="TOPLEFT" relativeTo="FishingWatchLine14" relativePoint="BOTTOMLEFT"/>
</Anchors>
</FontString>
<FontString name="FishingWatchLine16" inherits="FishingWatchFontTemplate" hidden="true">
<Anchors>
<Anchor point="TOPLEFT" relativeTo="FishingWatchLine15" relativePoint="BOTTOMLEFT"/>
</Anchors>
</FontString>
<FontString name="FishingWatchLine17" inherits="FishingWatchFontTemplate" hidden="true">
<Anchors>
<Anchor point="TOPLEFT" relativeTo="FishingWatchLine16" relativePoint="BOTTOMLEFT"/>
</Anchors>
</FontString>
<FontString name="FishingWatchLine18" inherits="FishingWatchFontTemplate" hidden="true">
<Anchors>
<Anchor point="TOPLEFT" relativeTo="FishingWatchLine17" relativePoint="BOTTOMLEFT"/>
</Anchors>
</FontString>
<FontString name="FishingWatchLine19" inherits="FishingWatchFontTemplate" hidden="true">
<Anchors>
<Anchor point="TOPLEFT" relativeTo="FishingWatchLine18" relativePoint="BOTTOMLEFT"/>
</Anchors>
</FontString>
<FontString name="FishingWatchLine20" inherits="FishingWatchFontTemplate" hidden="true">
<Anchors>
<Anchor point="TOPLEFT" relativeTo="FishingWatchLine19" relativePoint="BOTTOMLEFT"/>
</Anchors>
</FontString>
</Layer>
</Layers>
<Frames>
<Frame name="FishingBuddyWatcherMenu" inherits="UIDropDownMenuTemplate">
<Scripts>
<OnLoad>
this:SetFrameLevel(0);
UIDropDownMenu_SetWidth(180);
</OnLoad>
</Scripts>
</Frame>
</Frames>
<Scripts>
<OnLoad>
FishingBuddy.WatchFrame.OnLoad();
</OnLoad>
<OnUpdate>
FishingBuddy.WatchFrame.OnUpdate(arg1);
</OnUpdate>
</Scripts>
</Frame>
</Ui>