Jeehoon Recommendation - Condenses the code plus it shows the spec if it has one (ex: new toon doesnt have a spec yet)
Repooc [10-08-14 - 23:45]
Jeehoon Recommendation - Condenses the code plus it shows the spec if it has one (ex: new toon doesnt have a spec yet)
Signed-off-by: Repooc <repooc82@gmail.com>
diff --git a/ElvUI_SLE/modules/characterframe/characterframe.lua b/ElvUI_SLE/modules/characterframe/characterframe.lua
index 702c7dc..5637424 100644
--- a/ElvUI_SLE/modules/characterframe/characterframe.lua
+++ b/ElvUI_SLE/modules/characterframe/characterframe.lua
@@ -1,4 +1,4 @@
-local E, L, V, P, G = unpack(ElvUI);
+local E, L, V, P, G = unpack(ElvUI);
local CFO = E:GetModule('CharacterFrameOptions');
local LSM = LibStub("LibSharedMedia-3.0")
@@ -627,7 +627,7 @@ function CFO:Initialize()
end)
hooksecurefunc('PaperDollFrame_SetLevel', function()
- local primaryTalentTree = GetSpecialization()
+ --[[local primaryTalentTree = GetSpecialization()
local classDisplayName, class = UnitClass("player")
local classColorString = RAID_CLASS_COLORS[class].colorStr
local PLAYER_LEVEL = "|c%s%s %s %s %s|r"
@@ -640,7 +640,9 @@ function CFO:Initialize()
CharacterLevelText:SetFormattedText(PLAYER_LEVEL, classColorString, LEVEL, UnitLevel("player"), specName, classDisplayName);
else
CharacterLevelText:SetFormattedText(PLAYER_LEVEL_NO_SPEC, classColorString, LEVEL, UnitLevel("player"), classDisplayName);
- end
+ end]]
+
+ CharacterLevelText:SetText('|c'..RAID_CLASS_COLORS[E.myclass].colorStr..CharacterLevelText:GetText())
--Maybe Adjust Name, Level, Avg iLvL if bliz skinning is off?
CharacterFrameTitleText:ClearAllPoints()