/
local profile = NeedToKnow.CharSettings.Specs[spec] |
if not profile then |
trace("NeedToKnow: Switching to spec",spec,"for the first time") |
profile = NeedToKnow.CreateProfile(CopyTable(NEEDTOKNOW.PROFILE_DEFAULTS), spec) |
end |
print("NeedToKnow: Migrating settings from", NeedToKnow_Settings["Version"]); |
local oldSettings = NeedToKnow_Settings |
NeedToKnow.ResetCharacter(false) |
if ( not oldSettings["Spec"] ) then |
NeedToKnow_Settings = nil |
return |
end |
-- Blink was controlled purely by the alpha of MissingBlink for awhile, |
-- But then I introduced an explicit blink_enabled variable. Fill that in |
if NeedToKnow_Settings then -- prior to 3.3 |
NeedToKnowLoader.MigrateCharacterSettings() |
end |
if not NeedToKnow.CharSettings then |
if not NeedToKnow_CharSettings then |
-- we'll call talent update right after this, so we pass false now |
NeedToKnow.ResetCharacter(false) |
end |
NeedToKnow.CharSettings = NeedToKnow_CharSettings |
-- 3.3 settings sanity check |
if not NeedToKnow_Globals or |
-- calculate & set new scale |
local newYScale = group.oldScale * (cursorY/uiScale - group.oldY*group.oldScale) / (self.oldCursorY/uiScale - group.oldY*group.oldScale) ; |
local newScale = max(0.6, newYScale); |
local newScale = max(0.25, newYScale); |
-- clamp the scale so the group is a whole number of pixels tall |
local bar1 = _G[group:GetName().."Bar1"] |