宝箱红点
This commit is contained in:
parent
40ee7a40ff
commit
4186ffdb94
@ -138,6 +138,11 @@ function MainComp:refreshChapter(force)
|
|||||||
end)
|
end)
|
||||||
objs.box:setSprite(GConst.ATLAS_PATH.COMMON, icon)
|
objs.box:setSprite(GConst.ATLAS_PATH.COMMON, icon)
|
||||||
objs.box:setAnchoredPositionX(x)
|
objs.box:setAnchoredPositionX(x)
|
||||||
|
if needWave <= curMaxWave and not rewardGot then
|
||||||
|
objs.box:addRedPoint(26, 20, 0.5)
|
||||||
|
else
|
||||||
|
objs.box:removeRedPoint()
|
||||||
|
end
|
||||||
objs.desc:setAnchoredPositionX(x)
|
objs.desc:setAnchoredPositionX(x)
|
||||||
objs.desc:setText(num)
|
objs.desc:setText(num)
|
||||||
end
|
end
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user