WoWInterface SVN BattleHerald

Compare Revisions

  • This comparison shows the changes necessary to convert path
    /trunk/BattleHerald/WorldFrames
    from Rev 20 to Rev 21
    Reverse comparison

Rev 20 → Rev 21

BattleHerald_WorldFrame.xml
868,11 → 868,21
<Frame name="BattleHerald_WorldStateManager">
<Scripts>
<OnLoad>
self:RegisterEvent("PLAYER_ENTERING_WORLD"); self:RegisterEvent("PLAYER_ENTERING_BATTLEGROUND");
self:RegisterEvent("PLAYER_ENTERING_WORLD");
self:RegisterEvent("PLAYER_ENTERING_BATTLEGROUND");
self:RegisterEvent("VARIABLES_LOADED");
-- Register for scale update
BattleHerald_RegisterOptionHandler("Battleground UI", "WORLD_FRAME_SCALE", BattleHerald_UpdateWorldFrameScale);
</OnLoad>
<OnEvent>
if (event == "VARIABLES_LOADED") then
local scale = BattleHerald_GetUserOption("WORLD_FRAME_SCALE");
if (scale) then
BattleHerald_UpdateWorldFrameScale("WORLD_FRAME_SCALE", scale);
end
return;
end
 
if (BattleHerald_IsCTFActive()) then
BattleHerald_SwitchWorldStateFrame("CTF");
elseif (BattleHerald_IsEOTSActive()) then