【修行】神印界面调整
parent
42b6dd4d7a
commit
d00e5f99a7
|
@ -113,6 +113,7 @@ function PracticeImprint:SetSingleImprint(_go,_imprintId)
|
|||
local maskBtn = Util.GetGameObject(_go, "mask")
|
||||
local heroImg = Util.GetGameObject(_go, "hero"):GetComponent("Image")
|
||||
local icon = Util.GetGameObject(_go, "icon"):GetComponent("Image")
|
||||
local kuang = Util.GetGameObject(_go, "icon")
|
||||
local maskBlack = Util.GetGameObject(_go, "maskblack")
|
||||
local name = Util.GetGameObject(_go, "name/Text"):GetComponent("Text")
|
||||
local selectImg = Util.GetGameObject(_go, "select")
|
||||
|
@ -125,6 +126,8 @@ function PracticeImprint:SetSingleImprint(_go,_imprintId)
|
|||
if not serverData then--未解锁
|
||||
_go:GetComponent("Image").enabled = false
|
||||
maskBlack:SetActive(true)
|
||||
Util.SetGray(icon.gameObject,true)
|
||||
Util.SetGray(kuang,true)
|
||||
else--已解锁
|
||||
maskBlack:SetActive(false)
|
||||
if PlayerPrefs.GetInt(PlayerManager.uid.."Imprint"..configData.Id) == 0 then
|
||||
|
@ -141,6 +144,8 @@ function PracticeImprint:SetSingleImprint(_go,_imprintId)
|
|||
else
|
||||
curhero = ""
|
||||
end
|
||||
Util.SetGray(icon.gameObject,serverData.state == 0)
|
||||
Util.SetGray(kuang,serverData.state == 0)
|
||||
end
|
||||
icon.sprite = self.spLoader:LoadSprite(GetResourcePath(configData.Icon))
|
||||
name.text = configData.Name
|
||||
|
|
|
@ -88,8 +88,8 @@ function Practice:BindEvent()
|
|||
self:OnShow()
|
||||
end)
|
||||
end)
|
||||
RedpotManager.BindObject(RedPointType.Practice_upgrade,self.redPoint)
|
||||
RedpotManager.BindObject(RedPointType.Practice_imprint,self.imprintRedPoint)
|
||||
BindRedPointObject(RedPointType.Practice_upgrade,self.redPoint)
|
||||
BindRedPointObject(RedPointType.Practice_imprint,self.imprintRedPoint)
|
||||
end
|
||||
|
||||
--Check
|
||||
|
@ -270,6 +270,8 @@ function Practice:OnDestroy()
|
|||
SubUIManager.Close(self.playerInfoView)
|
||||
self.playerInfoView = nil
|
||||
end
|
||||
ClearRedPointObject(RedPointType.Practice_upgrade,self.redPoint)
|
||||
ClearRedPointObject(RedPointType.Practice_imprint,self.imprintRedPoint)
|
||||
self.itemList = {}
|
||||
self.pointList = {}
|
||||
self.lineList = {}
|
||||
|
|
Loading…
Reference in New Issue