WoWInterface SVN BattleBar

Compare Revisions

  • This comparison shows the changes necessary to convert path
    /
    from Rev 2 to Rev 3
    Reverse comparison

Rev 2 → Rev 3

BattleBar.toc
1,6 → 1,6
## Interface: 20400
## Title: Battle Bar
## Version: 0.3.01 Beta
## Version: 0.3 Build wowi:revision Beta
## Author: Voorije of Azjol-Nerub
## Notes: Battleground Scoreboard
## OptionalDeps:
BattleBar.lua
70,7 → 70,10
 
-- Initial Variables
BB.TimeSinceLastUpdate = 0;
BB.TimeSinceLastCheck = 0;
 
BB.UpdateInterval = 1;
BB.CheckInterval = 5;
 
-- Initialize the GUI
BB:Gui_Init();
93,6 → 96,17
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