6 - Totals Line
What does the provided patch do?
Displays the totals
Please provide any additional information below.
Insert this at line 400 in FishingWatcher.lua
-- if ( FishingBuddy.GetSettingBool("WatchCaughtTotals") ) then
local WatchCaughtTotals = 1;
if ( WatchCaughtTotals ) then
local text = "Total caught: "..totalCount..", |cff"..Crayon.COLOR_HEX_GREEN.."This session: "..totalCurrent;
local entry = getglobal("FishingWatchLine"..index);
entry:SetText(text);
local tempWidth = entry:GetWidth();
if ( tempWidth > fishingWatchMaxWidth ) then
fishingWatchMaxWidth = tempWidth;
end
entry:Show();
index = index + 1;
end
As you can see I put a place holder in for the option of having the "Display Totals" setting in the UI.
| Name | Size | MD5 |
|---|---|---|
| FishingWatcher.lua | 17.3 KiB | 41b095cacf4a8f1ed6f27a5e65e14747 |