【装备对比】装备穿戴界面显示修改

dev_chengFeng
gaoxin 2021-09-28 19:45:21 +08:00
parent b978377005
commit e56affc4b4
2 changed files with 516 additions and 597 deletions

View File

@ -181,14 +181,14 @@ function RoleEquipChangePopup:OnShow()
this.ShowCurEquipData(1) this.ShowCurEquipData(1)
elseif type==3 then elseif type==3 then
this.equipPanel[2].bg:SetActive(true) this.equipPanel[2].bg:SetActive(true)
this.equipPanel[1].bg:SetActive(true) this.equipPanel[1].bg:SetActive(false)
this.equipPanel[1].curEquipText:SetActive(true) this.equipPanel[1].curEquipText:SetActive(true)
this.equipPanel[2].curEquipText:SetActive(false) this.equipPanel[2].curEquipText:SetActive(false)
this.equipPanel[1].curEquipBtnDown:SetActive(false) this.equipPanel[1].curEquipBtnDown:SetActive(false)
this.equipPanel[2].curEquipBtnDown:SetActive(true) this.equipPanel[2].curEquipBtnDown:SetActive(true)
this.equipPanel[2].curEquipBtnDownText.text = Language[12261] this.equipPanel[2].curEquipBtnDownText.text = Language[12261]
--"替 换" --"替 换"
this.ShowCurEquipData(2) -- this.ShowCurEquipData(2)
this.NextCurEquipData() this.NextCurEquipData()
elseif type==4 then elseif type==4 then
this.equipPanel[2].bg:SetActive(false) this.equipPanel[2].bg:SetActive(false)
@ -385,7 +385,7 @@ function this.SetBaijinProShow(CurOrNext, equipData, equipCfg, itemCfg)
end end
if endProList and #endProList > 0 then if endProList and #endProList > 0 then
equipPanel.baijinScroll:SetActive(true) equipPanel.baijinScroll:SetActive(true)
this.SetScrollActive(CurOrNext, type == 3) -- this.SetScrollActive(CurOrNext, type == 3)
for i = 1, math.max(#endProList, #proGoList) do for i = 1, math.max(#endProList, #proGoList) do
if not proGoList[i] then if not proGoList[i] then
proGoList[i] = newObjToParent(this.baijinProPre,equipPanel.baijinProGrid) proGoList[i] = newObjToParent(this.baijinProPre,equipPanel.baijinProGrid)
@ -400,17 +400,18 @@ function this.SetBaijinProShow(CurOrNext, equipData, equipCfg, itemCfg)
local suitNum = endProList[i][2][1] local suitNum = endProList[i][2][1]
local passiveId = endProList[i][2][2] local passiveId = endProList[i][2][2]
Util.GetGameObject(go.transform, "title"):GetComponent("Text").text = "不朽天赋" ..i.. ""
if isGreen then--激活的要变颜色 if isGreen then--激活的要变颜色
go:GetComponent("Text").text = "<color=#66FF00>" .. GetLanguageStrById(passiveSkillConfig[passiveId].Desc) .. "" .. GetEquipSuitStr(Star,suitNum) .. "</color>" go:GetComponent("Text").text = "<color=#66FF00>" .. GetLanguageStrById(passiveSkillConfig[passiveId].Desc) .. "</color>"
Util.GetGameObject(go.transform, "vale"):GetComponent("Text").text = ""--"<color=#66FF00>(" .. GetEquipSuitStr(Star,suitNum) .. ")</color>" Util.GetGameObject(go.transform, "title/vale"):GetComponent("Text").text = "<color=#66FF00>(" .. GetEquipSuitStr(Star,suitNum) .. ")</color>"
else else
go:GetComponent("Text").text = "<color=#B9AC97>" .. GetLanguageStrById(passiveSkillConfig[passiveId].Desc) .. "" .. GetEquipSuitStr(Star,suitNum) .. "</color>" go:GetComponent("Text").text = "<color=#B9AC97>" .. GetLanguageStrById(passiveSkillConfig[passiveId].Desc) .. "</color>"
Util.GetGameObject(go.transform, "vale"):GetComponent("Text").text = ""--"<color=#B9AC97>(" .. GetEquipSuitStr(Star,suitNum) .. ")</color>" Util.GetGameObject(go.transform, "title/vale"):GetComponent("Text").text = "<color=#B9AC97>(" .. GetEquipSuitStr(Star,suitNum) .. ")</color>"
end end
end end
else else
equipPanel.baijinScroll:SetActive(false) equipPanel.baijinScroll:SetActive(false)
this.SetScrollActive(CurOrNext, false) -- this.SetScrollActive(CurOrNext, false)
end end
end end