/
## Interface: 20400 |
## Title: Battle Bar |
## Version: 0.3 Build wowi:revision Beta |
## Version: 0.3.01 Beta |
## Author: Voorije of Azjol-Nerub |
## Notes: Battleground Scoreboard |
## OptionalDeps: |
-- Initial Variables |
BB.TimeSinceLastUpdate = 0; |
BB.TimeSinceLastCheck = 0; |
BB.UpdateInterval = 1; |
BB.CheckInterval = 5; |
-- Initialize the GUI |
BB:Gui_Init(); |
end |
function BB:OnUpdate(elapsed) |
BB.TimeSinceLastCheck = BB.TimeSinceLastCheck + elapsed; |
-- Periodically Check to see if we're in the BG's |
if (BB.TimeSinceLastCheck > BB.CheckInterval) then |
BB:BattlegroundCheck() |
BB:Gui_Update() |
BB.TimeSinceLastCheck = 0; |
end |
-- Update our info |
if (BB.State.InBattleground) then |
BB.TimeSinceLastUpdate = BB.TimeSinceLastUpdate + elapsed; |
if (BB.TimeSinceLastUpdate > BB.UpdateInterval) then |