Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local locale = GetLocale()
- local classTextFormat =
- locale == "deDE" and "Stufe %s %s%s %s" or
- locale == "ruRU" and "%2$s%4$s (%3$s)|r %1$s-го уровня" or
- locale == "frFR" and "%2$s%4$s %3$s|r de niveau %1$s" or
- locale == "koKR" and "%s 레벨 %s%s %s|r" or
- locale == "zhCN" and "等级%s %s%s %s|r" or
- locale == "zhTW" and "等級%s%s%s%s|r" or
- locale == "esES" and "%2$s%4$s %3$s|r de nivel %1$s" or
- locale == "ptBR" and "%2$s%4$s (%3$s)|r Nível %1$s" or
- "Level %s %s%s %s|r"
- function mod:PaperDollFrame_SetLevel()
- local talentTree = E:GetTalentSpecInfo()
- local classDisplayName, class = UnitClass("player")
- local classColor = RAID_CLASS_COLORS[class]
- local classColorString = format("|cFF%02x%02x%02x", classColor.r*255, classColor.g*255, classColor.b*255)
- local specName
- if talentTree then
- specName = GetTalentTabInfo(talentTree)
- end
- if specName and specName ~= "" then
- CharacterLevelText:SetFormattedText(classTextFormat, UnitLevel("player"), classColorString, specName, classDisplayName)
- else
- CharacterLevelText:SetFormattedText(PLAYER_LEVEL, UnitLevel("player"), classColorString, classDisplayName)
- end
- --[[if (CharacterLevelText:GetWidth() > 210) then
- if (CharacterFrameInsetRight:IsVisible()) then
- CharacterLevelText:SetPoint("TOP", -10, -36)
- else
- CharacterLevelText:SetPoint("TOP", 10, -36)
- end
- else
- CharacterLevelText:SetPoint("TOP", 0, -36)
- end]]
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement