local baseCell = autoImport("BaseCell")
QuestManualVersionCell = class("QuestManualVersionCell",baseCell)

function QuestManualVersionCell:Init()
	self:initView()
end

function QuestManualVersionCell:initView(  )
	-- body
	self.icon = self:FindGO("icon"):GetComponent(UISprite)
end

local tempColor =LuaColor.white
function QuestManualVersionCell:setIsSelected( isSelected )
	-- body
	if self.isSelected ~= isSelected then
		self.isSelected = isSelected
		if(isSelected)then
			tempColor:Set(65/255,89/255,170/255,1)		
			self.icon.color = tempColor
			-- self:unRegistRedTip()
		else			
			tempColor:Set(1,1,1,1)
			self.icon.color = tempColor
		end
	end
end

local tempVector3 = LuaVector3.zero
function QuestManualVersionCell:SetData(data)
	self.data = data
	IconManager:SetUIIcon(data.staticData.icon,self.icon)
	self.icon:MakePixelPerfect()
	tempVector3:Set(0.7,0.7,0.7)
	self.icon.transform.localScale = tempVector3
	if(data.icon == "")then
		IconManager:SetItemIcon("21",self.icon)
	end
	-- self:RegisterRedTip()
	self:registGuide()
	-- self.name.text = data.Name
	-- self:initData()
end
