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:
+64
-40
@@ -1,38 +1,63 @@
|
||||
-- outfit debugging functions
|
||||
FishingBuddy.Commands["outfit"] = {};
|
||||
FishingBuddy.Commands["outfit"].func =
|
||||
function(what)
|
||||
if ( what ) then
|
||||
if ( what == FishingBuddy.RESET ) then
|
||||
FishingBuddy.SetWasWearing(nil);
|
||||
elseif ( what == "dump" ) then
|
||||
FishingBuddy.Debug("Outfit");
|
||||
FishingBuddy.Dump(FishingBuddy.GetOutfit());
|
||||
FishingBuddy.Debug("Was Wearing");
|
||||
FishingBuddy.Dump(FishingBuddy.GetWasWearing());
|
||||
end
|
||||
end
|
||||
return true;
|
||||
end;
|
||||
-- debugging
|
||||
|
||||
-- test the extravaganze school marking functions
|
||||
-- need to expand this for 1.9 if we can tell automatically
|
||||
FishingBuddy.Commands["mark"] = {};
|
||||
FishingBuddy.Commands["mark"].func =
|
||||
function(what)
|
||||
if ( what == "reset" ) then
|
||||
FishingBuddy_Info["Schools"] = nil;
|
||||
elseif ( what == "debug" ) then
|
||||
local hour,_ = GetGameTime();
|
||||
local day = date("%w");
|
||||
FishingBuddy.Extravaganza.Debug(day, hour, GetRealZoneText());
|
||||
elseif ( what == "dump" ) then
|
||||
FishingBuddy.Extravaganza.Dump();
|
||||
FishingBuddy = {};
|
||||
FishingBuddy.API = {};
|
||||
FishingBuddy.Commands = {};
|
||||
|
||||
FishingBuddy.Debugging = true;
|
||||
|
||||
local function printable(foo)
|
||||
if ( foo ) then
|
||||
if ( type(foo) == "table" ) then
|
||||
return "table";
|
||||
elseif ( type(foo) == "boolean" ) then
|
||||
if ( foo ) then
|
||||
return "true";
|
||||
else
|
||||
return "false";
|
||||
end
|
||||
else
|
||||
FishingBuddy.Extravaganza.MarkSchool();
|
||||
return foo;
|
||||
end
|
||||
return true;
|
||||
end;
|
||||
else
|
||||
return "nil";
|
||||
end
|
||||
end
|
||||
FishingBuddy.printable = printable;
|
||||
|
||||
FishingBuddy.Output = function(msg, r, g, b)
|
||||
if ( DEFAULT_CHAT_FRAME ) then
|
||||
if ( not r ) then
|
||||
DEFAULT_CHAT_FRAME:AddMessage(msg);
|
||||
else
|
||||
DEFAULT_CHAT_FRAME:AddMessage(msg, r, g, b);
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
FishingBuddy.Debug = function(msg, fixlinks)
|
||||
if ( FishingBuddy.Debugging ) then
|
||||
if ( fixlinks ) then
|
||||
msg = string.gsub(msg, "|", ";");
|
||||
end
|
||||
local name = FishingBuddy.Name or "Fishing Buddy";
|
||||
FishingBuddy.Output("|c"..FishingBuddy.Colors.RED..name.."|r "..msg);
|
||||
end
|
||||
end
|
||||
|
||||
FishingBuddy.DebugVars = function()
|
||||
FishingBuddy.Debugging = true;
|
||||
end
|
||||
|
||||
FishingBuddy.Dump = function(thing)
|
||||
if ( FishingBuddy.Debugging ) then
|
||||
if ( DevTools_Dump ) then
|
||||
DevTools_Dump(thing);
|
||||
else
|
||||
FishingBuddy.Debug("Tried to dump a '"..FishingBuddy.printable(thing).."'.");
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
-- random debugging code, likely out of date
|
||||
FishingBuddy.Commands["debug"] = {};
|
||||
@@ -40,7 +65,13 @@ FishingBuddy.Commands["debug"].func =
|
||||
function(what)
|
||||
if ( what ) then
|
||||
if ( what == "on" ) then
|
||||
FishingBuddy_Debugging = 1;
|
||||
FishingBuddy.Debugging = true;
|
||||
FishingBuddy.SetSetting("FishDebug", true);
|
||||
FishingBuddy.Debug("Debugging turned on");
|
||||
elseif ( what == "off" ) then
|
||||
FishingBuddy.Debug("Debugging turned off");
|
||||
FishingBuddy.Debugging = nil;
|
||||
FishingBuddy.SetSetting("FishDebug", nil);
|
||||
elseif ( what == "reset" ) then
|
||||
FishingBuddy_Info["Testing"] = nil;
|
||||
elseif ( what == "test" ) then
|
||||
@@ -58,13 +89,6 @@ FishingBuddy.Commands["debug"].func =
|
||||
local dist = math.sqrt((dx*xscale*dx*xscale)+(dy*yscale*dy*yscale));
|
||||
FishingBuddy.Print("PlayerMap: %f, %f - %f", dx, dy, dist);
|
||||
end
|
||||
else
|
||||
local func = getglobal("FishingBuddy_Localize_"..what);
|
||||
if ( func ) then
|
||||
func();
|
||||
else
|
||||
FishingBuddy_Debugging = 0;
|
||||
end
|
||||
end
|
||||
end
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user