修行对应颜色名字修改

china/dev_fengTi
wangzhenxing 2023-08-07 14:28:11 +08:00
parent 5b88556d9a
commit a4e6d63433
1 changed files with 11 additions and 3 deletions

View File

@ -323,9 +323,14 @@ function this.SetNameColor(name,level)
level = 1
end
local clr = ""
clr = XiuXianConfig[level].NameFontColor
-- LogYellow("name:"..tostring(name).." clr:"..tostring(clr))
return "<color=#"..clr..">"..name.."</color>"
if XiuXianConfig[level] then
clr = XiuXianConfig[level].NameFontColor
-- LogYellow("name:"..tostring(name).." clr:"..tostring(clr))
return "<color=#"..clr..">"..name.."</color>"
else
return ""
end
end
--获取大境界对应的段位名称
@ -495,6 +500,9 @@ end
function this.SetPracticeIcon(obj,level)
local spLoader = SpriteLoader.New()
if XiuXianConfig[level]==nil then
return
end
local BigLevel = XiuXianConfig[level].RealmId
if BigLevel%3==0 then
BigLevel=BigLevel/3