Fishing Buddy

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
User When Change
JTF195 Mon, 30 Mar 2009 21:15:43

Added attachment FishingWatcher.lua

_Goose Mon, 02 Mar 2009 16:44:20 Create

You must login to post a comment. Don't have an account? Register to get one!

Facts

Last updated on
02 Mar 2009
Reported on
02 Mar 2009
Status
New - Issue has not had initial review yet.
Type
Patch - Source code patch for review
Priority
Medium - Normal priority.

Reported by

Possible assignees