修行小圆图标修改提交
parent
e9c2c5ffdc
commit
9300f5a08d
|
@ -495,6 +495,11 @@ end
|
|||
function this.SetPracticeIcon(obj,level)
|
||||
local spLoader = SpriteLoader.New()
|
||||
local BigLevel = XiuXianConfig[level].RealmId
|
||||
if BigLevel%3==0 then
|
||||
BigLevel=BigLevel/3
|
||||
else
|
||||
BigLevel=math.floor(BigLevel/3+1)
|
||||
end
|
||||
local name = "x_xiuxing_xiaobiao_00"..BigLevel
|
||||
obj:GetComponent("Image").sprite = spLoader:LoadSprite(name)
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue