I've brought it back from the dead. Much like TransporterFu, TrackerFu now uses Dewdrop to support secure actions. That means you have to actually right click to get a menu then click to switch tracker spells. c'est la vie
I had plans on looking into this but you beat me to it. Thank you!
My original plan was expand its capabilities. What I wanted to do was make it so the user could select where the menu appears. Either at the FuBar, by right-clicking the mini map itself or by right-clicking the tracking icon.
I had plans on looking into this but you beat me to it. Thank you!
My original plan was expand its capabilities. What I wanted to do was make it so the user could select where the menu appears. Either at the FuBar, by right-clicking the mini map itself or by right-clicking the tracking icon.
Is this something you think you could implement?
Well you can attach TrackerFu to the minimap to essentially replace the tracking icon and right clicking it will give you the TrackerFu menu. As for right clicking the minimap itself...It might be possible to hook into SimpleMinimap somehow but I'm not sure it would be worth the effort.
Well you can attach TrackerFu to the minimap to essentially replace the tracking icon and right clicking it will give you the TrackerFu menu. As for right clicking the minimap itself...It might be possible to hook into SimpleMinimap somehow but I'm not sure it would be worth the effort.
Well, the reason I mentioned it is that some of us prefer to keep them mini map as clean as possible and maximize our screen space (small monitors suck) by eliminating as much as possible. I personally hide virtually all of fubar's plugins except one or two that I keep on a small, detached bar.
As far as replacing the tracking icon, I guess that works for that. Though I still think it would be nice to be able to simply right-click the mini map itself. Thanks for the input, though. :)
I repaired it, and i did some improvements.
The problem thats the npc-tracking's category is 'other', not 'npc'. If you rep?ir it, it will be good.
Improvements:
1.)
If you choose nothint to track, the tracking name will be the same. Repair:
In OnTextUpdate insert this line before FOR:
local have_active = 0;
And insert these lines after you close FOR:
if (have_active == 0) then
self:SetText(L["TRACKER_NO_TRACKING"]);
end
And insert a line to Locals file too:
TRACKER_NO_TRACKING = "Not tracking",
2.)
If there is no tracking in a category, do not display it.
Insert this before FOr in OnToolTipUpdate:
local is_spell=0;
local is_trade=0;
local is_npc=0;
And add this to every IF in FOR: (Of course change 'trades' to 'enemy' or 'npc', the same with 'is_trade' and the correct header-string, and delete the original category inserts.)
if (is_trade == 0) then
cat['trades'] = tablet:AddCategory(
'columns', 1
)
cat['trades']:AddLine(
'justify', 'LEFT',
'text', L["TRACKER_TRADESKILL_HEADER"]
);
is_trade = 1;
end
Good luck for develeping! :)
(I'm trying to write a working Fubar_Aspect addon. :))
This is my TrackerFu, it is based on the post above me. Additional change: Show icon instead of checkmark, highlight the text yellow for the active tracking.
local dewdrop = AceLibrary("Dewdrop-2.0")
local tablet = AceLibrary("Tablet-2.0")
local L = AceLibrary("AceLocale-2.2"):new("FuBar_TrackerFu")
local optionsTable = {
type = 'group',
args = {
showMinimap = {
order = 10,
type = 'toggle',
name = L["TRACKER_SHOW_MINIMAP"],
desc = L["TRACKER_SHOW_MINIMAP"],
set = "ToggleShowMiniMap",
get = "IsShowingMiniMap",
},
}
}
TrackerFu = AceLibrary("AceAddon-2.0"):new("FuBarPlugin-2.0", "AceEvent-2.0", "AceConsole-2.0", "AceDB-2.0")
TrackerFu.hasIcon = true
TrackerFu.clickableTooltip = true
TrackerFu.cannotDetachTooltip = true
TrackerFu.OnMenuRequest = optionsTable
TrackerFu:RegisterDB("TrackerFuDB")
TrackerFu:RegisterDefaults('profile', {
showMiniMap = false
})
-- Methods
function TrackerFu:IsShowingMiniMap()
return self.db.profile.showMiniMap
end
function TrackerFu:ToggleShowMiniMap()
self.db.profile.showMiniMap = not self.db.profile.showMiniMap
if ( self.db.profile.showMiniMap ) then
MiniMapTracking:Show()
else
MiniMapTracking:Hide()
end
return self.db.profile.showMiniMap
end
function TrackerFu:OnEnable()
self:RegisterEvent("MINIMAP_UPDATE_TRACKING")
end
function TrackerFu:MINIMAP_UPDATE_TRACKING()
self:Update()
end
function TrackerFu:OnTextUpdate()
self:SetIcon(GetTrackingTexture())
local name, texture, active, category;
local anyActive, checked;
local count = GetNumTrackingTypes();
local have_active = 0;
for id=1, count do
name, texture, active, category = GetTrackingInfo(id);
if ( active ) then
self:SetText(name);
have_active=1;
end
end
if (have_active == 0) then
self:SetText(L["TRACKER_NOTTRACKING"]);
end
if ( self.db.profile.showMiniMap ) then
MiniMapTracking:Show()
else
MiniMapTracking:Hide()
end
end
function TrackerFu:OnTooltipUpdate()
local cat = {};
cat['other'] = tablet:AddCategory(
'columns', 1
)
local name, texture, active, category;
local anyActive, checked;
local count = GetNumTrackingTypes();
local is_spell=0;
local is_trade=0;
local is_npc=0;
for id=1, count do
name, texture, active, category = GetTrackingInfo(id);
local line = {};
line['justify'] = "LEFT";
line['text'] = name;
line['func'] = SetTracking;
line['arg1'] = id;
line['hasCheck'] = true;
line['checked'] = true;
line['checkIcon'] = texture;
line['textR'] = active and 1 or 1;
line['textG'] = active and 0.82 or 1;
line['textB'] = active and 0 or 1;
if ( name == L["TRACKER_SPELL_FIND_FISH"] or name == L["TRACKER_SPELL_FIND_HERBS"] or name == L["TRACKER_SPELL_FIND_MINERALS"] or name == L["TRACKER_SPELL_FIND_TREASURE"] ) then
if (is_trade == 0) then
cat['trades'] = tablet:AddCategory(
'columns', 1
)
cat['trades']:AddLine(
'justify', 'LEFT',
'text', L["TRACKER_TRADESKILL_HEADER"]
);
is_trade = 1;
end
cat['trades']:AddLine(line);
elseif ( category == 'spell' ) then
if (is_spell == 0) then
cat['spell'] = tablet:AddCategory(
'columns', 1
)
cat['spell']:AddLine(
'justify', 'LEFT',
'text', L["TRACKER_ENEMY_HEADER"]
);
is_spell = 1;
end
cat['spell']:AddLine(line);
elseif ( category == 'other' ) then
if (is_npc == 0) then
cat['npc'] = tablet:AddCategory(
'columns', 1
)
cat['npc']:AddLine(
'justify', 'LEFT',
'text', L["TRACKER_NPC_HEADER"]
);
is_npc = 1;
end
cat['npc']:AddLine(line);
end
if ( active ) then
anyActive = active;
end
end
line = {};
line['justify'] = "LEFT";
line['text'] = NONE;
line['func'] = SetTracking;
line['arg1'] = nil;
line['hasCheck'] = true;
line['textR'] = anyActive and 1 or 1;
line['textG'] = anyActive and 1 or 0.82;
line['textB'] = anyActive and 1 or 0;
cat['other'] = tablet:AddCategory(
'columns', 1,
'hideBlankLine', true
)
cat['other']:AddLine('justify', 'LEFT', 'text', " ");
cat['other']:AddLine(line)
end
will be nice to see this when working though, one less bar full of buttons for my huntard to have on his screen :D
Maybe the plugin just isn't visible in FuBar? Look under "Interface Enhancements".
I had plans on looking into this but you beat me to it. Thank you!
My original plan was expand its capabilities. What I wanted to do was make it so the user could select where the menu appears. Either at the FuBar, by right-clicking the mini map itself or by right-clicking the tracking icon.
Is this something you think you could implement?
Well you can attach TrackerFu to the minimap to essentially replace the tracking icon and right clicking it will give you the TrackerFu menu. As for right clicking the minimap itself...It might be possible to hook into SimpleMinimap somehow but I'm not sure it would be worth the effort.
Well, the reason I mentioned it is that some of us prefer to keep them mini map as clean as possible and maximize our screen space (small monitors suck) by eliminating as much as possible. I personally hide virtually all of fubar's plugins except one or two that I keep on a small, detached bar.
As far as replacing the tracking icon, I guess that works for that. Though I still think it would be nice to be able to simply right-click the mini map itself. Thanks for the input, though. :)
Go to http://files.wowace.com
Click on F to go to the addons that start with F ...
Click on Next 4 times to go through the addons that start with F until you get to the page with Fubar_TrackerFu
Click on the link for Fubar_TrackerFu
Thank you very much. :)
The problem thats the npc-tracking's category is 'other', not 'npc'. If you rep?ir it, it will be good.
Improvements:
1.)
If you choose nothint to track, the tracking name will be the same. Repair:
In OnTextUpdate insert this line before FOR:
And insert these lines after you close FOR:
And insert a line to Locals file too:
2.)
If there is no tracking in a category, do not display it.
Insert this before FOr in OnToolTipUpdate:
And add this to every IF in FOR: (Of course change 'trades' to 'enemy' or 'npc', the same with 'is_trade' and the correct header-string, and delete the original category inserts.)
Good luck for develeping! :)
(I'm trying to write a working Fubar_Aspect addon. :))
localization: