【未获得装备属性展示】

dev_chengFeng
zhangqiang 2021-04-09 20:22:25 +08:00
parent 7aace673ab
commit ccbc758738
2 changed files with 4663 additions and 3782 deletions

View File

@ -4,6 +4,7 @@ local skillGos = {}
local curSuitProGo = {}
local propertyConfig = ConfigManager.GetConfig(ConfigName.PropertyConfig)
local equipSuiteConfig = ConfigManager.GetConfig(ConfigName.EquipSuiteConfig)
local mainProGoList = {}
--初始化组件(用于子类重写)
function HandBookEquipInfoPanel:InitComponent()
@ -18,9 +19,12 @@ function HandBookEquipInfoPanel:InitComponent()
self.equipQuaText=Util.GetGameObject(self.transform, "Content/bg/equipInfo/GameObject/qualityText"):GetComponent("Text")
self.equipInfoText=Util.GetGameObject(self.transform, "Content/bg/equipInfo/GameObject/equipInfoText"):GetComponent("Text")
--装备属性
self.mainPro=Util.GetGameObject(self.transform, "Content/bg/mainPro")
self.mainProName=Util.GetGameObject(self.transform, "Content/bg/mainPro/GameObject/curProName"):GetComponent("Text")
self.mainProVale=Util.GetGameObject(self.transform, "Content/bg/mainPro/GameObject/curProVale"):GetComponent("Text")
-- self.mainPro=Util.GetGameObject(self.transform, "Content/bg/mainPro")
-- self.mainProName=Util.GetGameObject(self.transform, "Content/bg/mainPro/GameObject/curProName"):GetComponent("Text")
-- self.mainProVale=Util.GetGameObject(self.transform, "Content/bg/mainPro/GameObject/curProVale"):GetComponent("Text")
for i = 1, 4 do
mainProGoList[i] = Util.GetGameObject(self.transform, "Content/bg/mainPro/GameObject ("..i..")")
end
self.equipOtherProPre=Util.GetGameObject(self.transform, "Content/bg/proPre")
self.equipProGrid = Util.GetGameObject(self.transform, "Content/bg/proRect/GameObject/proGrid")
@ -32,7 +36,7 @@ function HandBookEquipInfoPanel:InitComponent()
skillGos[i] = Util.GetGameObject(self.transform, "Content/bg/skillGrid/skillGrid1 ("..i..")")
end
self.text1 = Util.GetGameObject(self.transform, "Content/bg/mainPro/GameObject/Text"):GetComponent("Text")
self.text1 = Util.GetGameObject(self.transform, "Content/bg/GameObject/Text"):GetComponent("Text")
self.text2 = Util.GetGameObject(self.transform, "Content/bg/proRect/GameObject/Text"):GetComponent("Text")
self.text3 = Util.GetGameObject(self.transform, "Content/bg/skillObject/GameObject/Text"):GetComponent("Text")
@ -77,9 +81,19 @@ function HandBookEquipInfoPanel:OnOpen(equipSId)
self.equipPos.text=string.format(Language[11090],GetJobStrByJobNum(equipConfigData.ProfessionLimit))
EquipManager.SetEquipStarShow(Util.GetGameObject(self.transform, "Content/bg/equipInfo/GameObject/star"),itemConfigData.Id)
--装备属性
self.mainProName.text=GetLanguageStrById(ConfigManager.GetConfigData(ConfigName.PropertyConfig, equipConfigData.PropertyMin[1]).Info)
self.mainProVale.text=equipConfigData.Property[1][2]--"【"..equipConfigData.PropertyMin[2].."-"..equipConfigData.PropertyMax[2].."】"
-- self.mainProName.text=GetLanguageStrById(ConfigManager.GetConfigData(ConfigName.PropertyConfig, equipConfigData.PropertyMin[1]).Info)
-- self.mainProVale.text=equipConfigData.Property[1][2]--"【"..equipConfigData.PropertyMin[2].."-"..equipConfigData.PropertyMax[2].."】"
for i = 1, #mainProGoList do
mainProGoList[i]:SetActive(false)
if equipConfigData.Property[i] then
mainProGoList[i]:SetActive(true)
local PropertyConfig = ConfigManager.GetConfigData(ConfigName.PropertyConfig, equipConfigData.Property[i][1])
Util.GetGameObject(mainProGoList[i], "equipInfo/curProName"):GetComponent("Text").text=GetLanguageStrById(PropertyConfig.Info)
Util.GetGameObject(mainProGoList[i], "equipInfo/curProVale"):GetComponent("Text").text= GetEquipPropertyFormatStr(PropertyConfig.Style,equipConfigData.Property[i][2])
end
end
--套装属性
if equipSuiteConfig[equipConfigData.Star] then--SuiteID
Util.GetGameObject(self.transform, "Content/bg/proRect"):SetActive(true)