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>
This commit is contained in:
+51
-35
@@ -1,28 +1,28 @@
|
||||
local SUBFRAMES = {
|
||||
["FishingLocationsFrame"] = {
|
||||
["name"] = FishingBuddy.LOCATIONS_TAB,
|
||||
["tooltip"] = FishingBuddy.LOCATIONS_INFO,
|
||||
["toggle"] = "_LOC",
|
||||
["id"] = "1",
|
||||
},
|
||||
["FishingOutfitFrame"] = {
|
||||
["name"] = FishingBuddy.OUTFITS_TAB,
|
||||
["tooltip"] = FishingBuddy.OUTFITS_INFO,
|
||||
["toggle"] = "_OUT",
|
||||
["id"] = "2",
|
||||
},
|
||||
["FishingTrackingFrame"] = {
|
||||
["name"] = FishingBuddy.TRACKING_TAB,
|
||||
["tooltip"] = FishingBuddy.TRACKING_INFO,
|
||||
["toggle"] = "_TRK",
|
||||
["id"] = "3",
|
||||
},
|
||||
["FishingOptionsFrame"] = {
|
||||
["name"] = FishingBuddy.OPTIONS_TAB,
|
||||
["tooltip"] = FishingBuddy.OPTIONS_INFO,
|
||||
["toggle"] = "_OPT",
|
||||
["id"] = "4",
|
||||
}
|
||||
["FishingLocationsFrame"] = {
|
||||
["name"] = FishingBuddy.LOCATIONS_TAB,
|
||||
["tooltip"] = FishingBuddy.LOCATIONS_INFO,
|
||||
["toggle"] = "_LOC",
|
||||
["id"] = "1",
|
||||
},
|
||||
["FishingOutfitFrame"] = {
|
||||
["name"] = FishingBuddy.OUTFITS_TAB,
|
||||
["tooltip"] = FishingBuddy.OUTFITS_INFO,
|
||||
["toggle"] = "_OUT",
|
||||
["id"] = "2",
|
||||
},
|
||||
["FishingTrackingFrame"] = {
|
||||
["name"] = FishingBuddy.TRACKING_TAB,
|
||||
["tooltip"] = FishingBuddy.TRACKING_INFO,
|
||||
["toggle"] = "_TRK",
|
||||
["id"] = "3",
|
||||
},
|
||||
["FishingOptionsFrame"] = {
|
||||
["name"] = FishingBuddy.OPTIONS_TAB,
|
||||
["tooltip"] = FishingBuddy.OPTIONS_INFO,
|
||||
["toggle"] = "_OPT",
|
||||
["id"] = "4",
|
||||
}
|
||||
};
|
||||
|
||||
local function DisableSubFrame(frameName)
|
||||
@@ -33,17 +33,34 @@ local function DisableSubFrame(frameName)
|
||||
local f = getglobal(hideframe);
|
||||
if ( f ) then
|
||||
f:Hide();
|
||||
end
|
||||
id = id + 1;
|
||||
f = getglobal("FishingBuddyFrameTab"..id);
|
||||
if ( f ) then
|
||||
f:SetPoint("LEFT", hideframe, "LEFT", 0, 0)
|
||||
f = getglobal(string.format("FishingBuddyFrameTab%d", id+1));
|
||||
if ( f ) then
|
||||
f:SetPoint("LEFT", hideframe, "LEFT", 0, 0)
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
FishingBuddy.DisableSubFrame = DisableSubFrame;
|
||||
|
||||
local function EnableSubFrame(frameName)
|
||||
for value,info in SUBFRAMES do
|
||||
if ( value == frameName ) then
|
||||
local id = info.id;
|
||||
local hideframe = string.format("FishingBuddyFrameTab%d", id);
|
||||
local f = getglobal(hideframe);
|
||||
if ( f ) then
|
||||
f:Show();
|
||||
f = getglobal(string.format("FishingBuddyFrameTab%d", id+1));
|
||||
if ( f ) then
|
||||
f:SetPoint("LEFT", hideframe, "RIGHT", -18, 0)
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
FishingBuddy.EnableSubFrame = EnableSubFrame;
|
||||
|
||||
local function ShowSubFrame(frameName)
|
||||
for value,_ in SUBFRAMES do
|
||||
local frame = getglobal(value);
|
||||
@@ -115,17 +132,16 @@ function FishingBuddyFrame_OnEvent(event)
|
||||
DisableSubFrame(frame);
|
||||
end
|
||||
end
|
||||
ToggleFishingBuddyFrame("FishingLocationsFrame");
|
||||
ToggleFishingBuddyFrame("FishingLocationsFrame");
|
||||
ShowSubFrame("FishingLocationsFrame");
|
||||
end
|
||||
end
|
||||
|
||||
function FishingBuddyFrame_OnShow()
|
||||
FishingBuddyFramePortrait:SetTexture("Interface\\LootFrame\\FishingLoot-Icon");
|
||||
FishingBuddyNameText:SetText(FishingBuddy.WINDOW_TITLE);
|
||||
UpdateMicroButtons();
|
||||
FishingBuddyFramePortrait:SetTexture("Interface\\LootFrame\\FishingLoot-Icon");
|
||||
FishingBuddyNameText:SetText(FishingBuddy.WINDOW_TITLE);
|
||||
UpdateMicroButtons();
|
||||
end
|
||||
|
||||
function FishingBuddyFrame_OnHide()
|
||||
UpdateMicroButtons();
|
||||
UpdateMicroButtons();
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user