FuBar_PortalFu
NOTICE:
This project has been frozen. Which means, it will be updated for upcoming patches, but it won't get any new features. If you want the same addon with support for items, then check out Broker_Portals. That is lightweight version of this addon, which is supported by much more "display bar" addons than Fubar. If you still want to use Fubar, then please use Broker_Portals together with Broker2Fubar. If you want to know more about the Broker prefix, make sure to checkout this post. Don't be scared and switch over to be one of the cool kids again and let this addon fall into oblivion.
Features:
- All mage portals and hearthstone available from simple dropdown menu
- Hearthstone location and cooldown in tooltip
- Reagent count in tooltip
Localization:
If you'd like to add/update localizations, do so here. Then leave a comment here on CurseForge or on Curse as I'm checking those more often than localization app itself, and I'll repack it.
FAQ:
- I managed to hide my minimap icon, how do I turn it on again?
- Just simply type "/portalfu".
- I managed to disable the addon, how do I turn it on again?
- You have to enable it in FuBars options.
- I'm not using FuBar, is it possible to use this addon without it?
- You can't use exactly this version, but here you can find the same addon, that works as standalone or as a plugin for TitanPanel or any other LDB display addon.
- Will it ever support teleportation items like engineering teleports?
- No.
- Where can I post errors and problems with this addon?
String 208 of PortalFU.lua:
item = L["Hearthstone"],
locales.lua (should be in UTF-8):
local L = AceLibrary("AceLocale-2.2"):new("PortalFu")
L:RegisterTranslations("enUS", function() return {
["Inn: "] = true,
["N/A"] = true,
["Right-Click"] = true,
["to see list of spells"] = true,
["Hearthstone"] = true,
} end)
L:RegisterTranslations("ruRU", function() return {
["Inn: "] = "Таверна: ",
["N/A"] = "N/A", -- There are no short abbreviation fo N/A in Russian? so i decided ti left it. But there are some bug in AceLocale : with argument "true" it doesn't work(
["Right-Click"] = "Правая кнопка",
["to see list of spells"] = "Для открытия списка заклинаний",
["Hearthstone"] = "Камень возвращения",
} end)
[2008/10/20 11:38:22-4-x2]: FuBar_PortalFu-1.4\PortalFu.lua:25: bad argument #2 to 'sort' (function expected, got table)
FuBar_PortalFu-1.4\PortalFu.lua:25: in function <Interface\AddOns\FuBar_PortalFu\PortalFu.lua:20>
FuBar_PortalFu-1.4\PortalFu.lua:111: in function `OnMenuRequest'
FuBarPlugin-2.0-90003 (AutoBar):1130: in function <...Ons\AutoBar\libs\FuBarPlugin-2.0\FuBarPlugin-2.0.lua:1120>
Dewdrop-2.0-90320:1894: in function <...rkInventory\Libs\Dewdrop\Dewdrop-2.0\Dewdrop-2.0.lua:1843>
Dewdrop-2.0-90320:2779: in function <...rkInventory\Libs\Dewdrop\Dewdrop-2.0\Dewdrop-2.0.lua:2738>
Dewdrop-2.0-90320:2995: in function `Open'
FuBarPlugin-2.0-90003 (AutoBar):1175: in function `OpenMenu'
FuBarPlugin-2.0-90003 (AutoBar):987: in function <...Ons\AutoBar\libs\FuBarPlugin-2.0\FuBarPlugin-2.0.lua:985>
FuBar-3.0.90003\FuBar.lua:1212: in function <Interface\AddOns\FuBar\FuBar.lua:1206>
Tablet-2.0-90216 (AutoBar):2556: in function <...erface\AddOns\AutoBar\libs\Tablet-2.0\Tablet-2.0.lua:2554>
---
"\208\162\208\187\208\181\208\191\208\190\209\128\209\130\208\176\209\134\208\184\209\143:
\208\168\209\130\208\190\209\128\208\188\208\179\209\128\208\176\208\180","","Interface\\Icons\\Spell_Arcane_TeleportStormWind",179,false,0,9717,0,0
Hope this helps...
But I did find in the "\AddOns\FuBar_PortalFu\libs\FuBarPlugin-2.0\FuBarPlugin-2.0.lua" the line "position = plugin.minimapPosition or plugin.defaultMinimapPosition or math.random(1, 360)" and changed the 1 to a 10.
This moved the minimap button up (I was thinking it would go down) enough off the Calendar button that I could then drag it to an open spot.
It was late by the time I figured this out, so have not tested/used FuBar_PortalFu, but will tonight.
Henry
Are there any command line switches?
function PortalFu:OnInitialize()
local spells = {
MAGE = {
Alliance = {
3561, --TP:Stormwind
3562, --TP:Ironforge
3565, --TP:Darnassus
32271, --TP:Exodar
49359, --TP:Theramore
33690, --TP:Shattrath
10059, --P:Stormwind
11416, --P:Ironforge
11419, --P:Darnassus
32266, --P:Exodar
49360, --P:Theramore
33691 --P:Shattrath
},
Horde = {
3563, --TP:Undercity
3566, --TP:Thunder Bluff
3567, --TP:Orgrimmar
32272, --TP:Silvermoon
49358, --TP:Stonard
35715, --TP:Shattrath
11418, --P:Undercity
11420, --P:Thunder Bluff
11417, --P:Orgrimmar
32267, --P:Silvermoon
49361, --P:Stonard
35717 --P:Shattrath
}
},
WARLOCK = {
Alliance = {
688, -- Imp
697, -- Voidwalker
712, -- Succubus
691, -- Felhunter
1122, -- Infernal
30146 -- Felguard
},
Horde = {
688, -- Imp
697, -- Voidwalker
712, -- Succubus
691, -- Felhunter
1122, -- Infernal
30146 -- Felguard
}
}
}
local _, class = UnitClass("player")
if class == "MAGE" then
self.portals = spells["MAGE"][UnitFactionGroup("player")]
elseif class == "WARLOCK" then
self.portals = spells["WARLOCK"][UnitFactionGroup("player")]
end
spells = nil
end