GridManaBars
Adds manabars to the sides of Grid frames.
Description
GridManaBars consist of two parts: a new bar indicator and a status which provides the power (mana, energy, rage, runepower) of an unit as a status. If you register the mana status with the bar indicator you get a mana bar (which should be set this way per default).
In case of Problems
Please use only the release versions of this addon! While I keep sure that every release version works with the latest Grid release I do not care if the latest alpha or beta versions do. I care even less if the latest alpha or beta of GridManaBars works with the latest alpha or beta of Grid. So if you encounter problems first make sure you are using the release version because if not it might happen I'll just ignore your ticket/question/whatever :-).
Note: GridManaBars has to hack itself somewhat into Grid in a way not supported by Grid. Most times this works well but it can cause trouble (especially after an update of Grid). So if you encounter any Problems with Grid and you have this addon installed try disabling GridManaBars before you create a ticket for Grid itself. If the problem disappears when you disable GridManaBars you can create a ticket for this addon instead for Grid itself. The authors of Grid have enough tickets to handle they don't need to handle tickets caused by this addon too.
Date: 2010-07-10 21:34:34
ID: 1
Error occured in: Global
Count: 1
Message: ..\AddOns\GridManaBars\GridStatusMana.lua line 5:
attempt to index global 'GridStatus' (a nil value)
Debug:
(tail call): ?
[C]: ?
GridManaBars\GridStatusMana.lua:5: in main chunk
AddOns:
Swatter, v5.7.4568 (KillerKoala)
Acheron, v
ACP, v3.3.3
Altoholic, v3.3.002
AraBrokerGuildFriends, vr23
AtlasLoot, vv5.11.03
AtlasLootFu, vv5.11.03
AucAdvanced, v5.7.4568 (KillerKoala)
AucFilterBasic, v5.7.4568 (KillerKoala)
AucFilterOutlier, v5.7.4568.2531
AucMatchUndercut, v5.7.4568.2531
AucStatClassic, v5.7.4568 (KillerKoala)
AucStatHistogram, v5.7.4568 (KillerKoala)
AucStatiLevel, v5.7.4568 (KillerKoala)
AucStatPurchased, v5.7.4568 (KillerKoala)
AucStatSales, v5.7.4568.2842
AucStatSimple, v5.7.4568 (KillerKoala)
AucStatStdDev, v5.7.4568 (KillerKoala)
AucStatWOWEcon, v5.7.4568.2530
AucUtilAHWindowControl, v5.7.4568.3311
AucUtilAppraiser, v5.7.4568.2530
AucUtilAskPrice, v5.7.4568.3175
AucUtilAutoMagic, v5.7.4568.3142
AucUtilCompactUI, v5.7.4568.2530
AucUtilEasyBuyout, v5.7.4568.3583
AucUtilFixAH, v5.7.4568 (KillerKoala)
AucUtilGlypher, v5.7.4568.2545
AucUtilItemSuggest, v5.7.4568.3108
AucUtilPriceLevel, v5.7.4568.2545
AucUtilScanButton, v5.7.4568.2530
AucUtilScanFinish, v5.7.4568.2530
AucUtilScanProgress, v5.7.4568.2530
AucUtilSearchUI, v5.7.4568.3655
AucUtilSimpleAuction, v5.7.4568.4553
AucUtilVendMarkup, v5.7.4568.2530
AVR, v0.9.5beta
AVRE, v1.0
Babylonian, v5.1.DEV.130
Bagnon, v2.13.2b
BagnonForever, v1.1.2
BagnonTooltips, v
Bartender4, v4.4.2
BeanCounter, v5.7.4568 (KillerKoala)
BOLT, v1.581
BonusScanner, v5.3
BrokerCashflow, v
BrokerCPU, v30100.$Revision: 16 $
Carbonite, v3.34
CarboniteTransfer, v1.01
Cellular, v3.3.005
ChocolateBar, vv2.0.2
Clique, v141
Configator, v5.1.DEV.130
DataStore, v3.3.001
DataStoreAchievements, v3.3.001
DataStoreAuctions, v3.3.001
DataStoreCharacters, v3.3.001
DataStoreContainers, v3.3.001
DataStoreCrafts, v3.3.001
DataStoreCurrencies, v3.3.001
DataStoreInventory, v3.3.001
DataStoreMails, v3.3.001
DataStorePets, v3.3.001
DataStoreQuests, v3.3.001
DataStoreReputations, v3.3.001
DataStoreSkills, v3.3.001
DataStoreSpells, v3.3.001
DataStoreStats, v3.3.001
DataStoreTalents, v3.3.001
DBMCore, v
DBMSpellTimers, v
DBMVictorySound, v1.7
DebugLib, v5.1.DEV.130
Decursive, v2.5.0_beta_1
DefileWhisper, v0.01
DrDamage, v1.7.8_beta-1
Enchantrix, v5.7.4568 (KillerKoala)
EnchantrixBarker, v5.7.4568 (KillerKoala)
ForteCasting, v
ForteCooldown, v
ForteCore, v1.959.8
ForteDeathKnight, v
ForteDruid, v
ForteHealthstone, v
ForteHunter, v
ForteMage, v
FortePaladin, v
FortePriest, v
ForteRogue, v
ForteShaman, v
ForteShard, v
ForteSoulstone, v
ForteSummon, v
ForteTalent, v
ForteTimer, v
ForteVehicle, v
ForteWarlock, v
ForteWarrior, v
GatherMate, vv1.23
Grid, v1.30300.1304
GridManaBars, v1.01
SlideBar, v5.7.4568 (KillerKoala)
Stubby, v5.7.4568 (KillerKoala)
BlizRuntimeLib_enUS v3.3.5.30300 <us>
(ck=b2b)
At least for me it was more of a Curse Client issue than a GridManaBars issue. Maybe it's the same for some of the others who've reported problems.
Copy paste this over the code that starts with "function ManaBarGridFrameClass.prototype:SetManaBarColor(col)" and ends with the second "end":
function ManaBarGridFrameClass.prototype:SetManaBarColor(col)
if GridFrame.db.profile.invertBarColor then
--DEFAULT_CHAT_FRAME:AddMessage("using inverted colours")
self.frame.ManaBar:SetStatusBarColor(0,0,0,0.8)
self.frame.BarMBG:SetVertexColor(col.r,col.g,col.b,col.a)
else
--DEFAULT_CHAT_FRAME:AddMessage("using noninverted colours")
self.frame.ManaBar:SetStatusBarColor(col.r,col.g,col.b,col.a)
self.frame.BarMBG:SetVertexColor(0,0,0,0.8)
end
end
What this does is essentially just swap the colors, now the bar will be fully blue when your mana is full, and as you use mana it will fill with black starting from the right side.
Cerunnir :)
Thanks!
Getting errors since the last patch
1. Grids concept is as little information as possible and as much as necessary. Maybe there are people which can handle 25*x different moving bars but most people just get distracted/confused.
2. I'm not sure why one would need more than one bar. I can't imagine that one need to know for every single hot how much duration of it is exactly remaining. If you need to display more than one duration you can work with threshold driven on/off indicators or different priorities on the same indicator.