宝箱红点

This commit is contained in:
chenxi 2023-04-21 12:02:47 +08:00
parent 40ee7a40ff
commit 4186ffdb94

View File

@ -138,6 +138,11 @@ function MainComp:refreshChapter(force)
end)
objs.box:setSprite(GConst.ATLAS_PATH.COMMON, icon)
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:setText(num)
end