- fixed rotation of inverted bars to draw the bar correctly

- better method of turning the player and pet casting frames back when enabling the "show default cast bar" option in the player cast bar
This commit is contained in:
Parnic
2010-10-11 05:50:10 +00:00
parent 4e1c8ecf12
commit 3a68ef1a61
2 changed files with 16 additions and 16 deletions

View File

@ -330,20 +330,8 @@ end
function CastBar.prototype:ToggleBlizzCast(on)
if on then
-- restore blizz cast bar
CastingBarFrame:RegisterEvent("UNIT_SPELLCAST_SENT");
CastingBarFrame:RegisterEvent("UNIT_SPELLCAST_START");
CastingBarFrame:RegisterEvent("UNIT_SPELLCAST_STOP");
CastingBarFrame:RegisterEvent("UNIT_SPELLCAST_FAILED");
CastingBarFrame:RegisterEvent("UNIT_SPELLCAST_INTERRUPTED");
CastingBarFrame:RegisterEvent("UNIT_SPELLCAST_DELAYED");
CastingBarFrame:RegisterEvent("UNIT_SPELLCAST_SUCCEEDED");
CastingBarFrame:RegisterEvent("UNIT_SPELLCAST_CHANNEL_START");
CastingBarFrame:RegisterEvent("UNIT_SPELLCAST_CHANNEL_UPDATE");
CastingBarFrame:RegisterEvent("UNIT_SPELLCAST_CHANNEL_STOP");
PetCastingBarFrame:RegisterEvent("UNIT_PET");
CastingBarFrame:GetScript("OnLoad")(CastingBarFrame)
PetCastingBarFrame:GetScript("OnLoad")(PetCastingBarFrame)
else
-- remove blizz cast bar
CastingBarFrame:UnregisterAllEvents()