【魂灵宝】装备界面增加等级上限

dev_chengFeng
ZhangBiao 2021-08-12 20:01:56 +08:00
parent 9c5850a2a5
commit e678864743
1 changed files with 7 additions and 0 deletions

View File

@ -1,5 +1,6 @@
require("Base/BasePanel")
RewardTalismanSingleShowPopup = Inherit(BasePanel)
local jewelConfig = ConfigManager.GetConfig(ConfigName.JewelConfig)
local type
local dId
local sId
@ -24,10 +25,12 @@ function RewardTalismanSingleShowPopup:InitComponent()
self.refineLv=Util.GetGameObject(self.transform, "Content/bg/armorInfo/refineLv"):GetComponent("Text")
self.curMainProscroll=Util.GetGameObject(self.transform, "Content/mainProScroll")
self.curMainProText=Util.GetGameObject(self.transform, "Content/mainProScroll/Text"):GetComponent("Text")
self.curMainProGrid=Util.GetGameObject(self.transform, "Content/mainProScroll/proGrid")
self.curotherProscroll=Util.GetGameObject(self.transform, "Content/otherProScroll")
self.otherProPre=Util.GetGameObject(self.transform, "Content/proPre")
self.otherProGrid=Util.GetGameObject(self.transform, "Content/otherProScroll/proGrid")
self.otherProText=Util.GetGameObject(self.transform, "Content/otherProScroll/Text"):GetComponent("Text")
self.curCastInfo=Util.GetGameObject(self.transform, "Content/skillObject/skillInfo"):GetComponent("Text")
self.castInfoObject=Util.GetGameObject(self.transform, "Content/skillObject")
self.castInfoObject:SetActive(false)
@ -219,6 +222,10 @@ function RewardTalismanSingleShowPopup:OnShowPanelData()
if self.jumpViewList and #self.jumpViewList then
self.getTuGrid:GetComponent("RectTransform").sizeDelta = Vector2.New(911.56,self.equipProGridCom.spacing*(#self.jumpViewList))
end
local data = jewelConfig[sId]
self.curMainProText.text = string.format("基础属性 [强化等级:%s/%s]",lv,data.Max[1])
self.otherProText.text = string.format("基础属性 [精炼等级:%s/%s]",refineLv,data.Max[2])
end
--道具 和 装备分解 发送请求后 回调
function RewardTalismanSingleShowPopup:SendBackResolveReCallBack(drop)