ro-table/Asstes/Resources/Script/FrameWork/GUI/cell/Adventure/AdventureCollectionAchShowCell.txt
2025-06-04 05:02:57 +08:00

29 lines
929 B
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

local baseCell = autoImport("BaseCell")
AdventureCollectionAchShowCell = class("AdventureCollectionAchShowCell",baseCell)
function AdventureCollectionAchShowCell:Init()
self:initView()
end
function AdventureCollectionAchShowCell:initView( )
-- body
self.name = self:FindGO("name"):GetComponent(UILabel)
end
function AdventureCollectionAchShowCell:SetData(data)
-- self.level.text = data:GetLevelText()
local tableData = Table_ItemTypeAdventureLog[data.type]
local name = tableData.Name
local progressStr = ""
if(tableData.id == SceneManual_pb.EMANUALTYPE_ACHIEVE)then
local unlock,total = AdventureAchieveProxy.Instance:getTotalAchieveProgress()
progressStr = unlock.."/"..total
elseif tableData.id == SceneManual_pb.EMANUALTYPE_PET then
progressStr = data:GetUnlockNum().."/"..data.totalCount
else
progressStr = data:GetUnlockNum().."/"..data.allCount
end
self.name.text = name..""..progressStr
end