/trunk/Core
function SliceCommander:getShowCDDescription(spell) |
if string.sub(spell, -2) == 'CD' then |
print(spell) |
return string.format(L["Display the %s cooldown bar"], SC_SPELL[spell]) |
else |
return string.format(L["Display the %s timer bar"], SC_SPELL[spell]) |
end |
_G['SC'].initDone = false |
local _, englishClass = UnitClass("player") |
local spec = GetSpecialization() |
if spec == 5 and englishClass == "ROGUE" then --newly created toon |
print(L["You have to choose a spec to use SliceCommander."]) |
SliceCommander:OnDisable() |
return 0 |
end |
if englishClass == "ROGUE" then |
SliceCommander_LoadTukuiApi() |
SliceCommander:LoadPopup() |
function SliceCommander:LoadPopup() |
SC.PopupDialogs = {}; |
SC.StaticPopup_DisplayedFrames = {}; |
SC.PopupDialogs['FAILED_UISCALE'] = { |
text = L["You have changed your UIScale, however you still have the PixelPerfect option enabled in SliceCommander. Press accept if you would like to disable the Auto Scale option."], |
button1 = ACCEPT, |