多对塔秘宝入口修改

PC-202302260912\Administrator 2024-04-11 14:11:27 +08:00
parent e0ec629024
commit a2e1218fb9
3 changed files with 799 additions and 84 deletions

View File

@ -56,7 +56,9 @@ function GodsWayTowerPanel:InitComponent()
this.addBtn = Util.GetGameObject(self.gameObject, "InfoRoot/bottomLayout/addBtn")
this.btnRank = Util.GetGameObject(self.gameObject, "InfoRoot/btnRank")
this.btnFormation = Util.GetGameObject(self.gameObject, "InfoRoot/btnFormation")
this.btnHelpFight = Util.GetGameObject(self.gameObject, "InfoRoot/btnHelpFight")
this.btnHelpFightObj= Util.GetGameObject(self.gameObject, "InfoRoot/btnHelpFightBg")
this.btnHelpFight = Util.GetGameObject(self.gameObject, "InfoRoot/btnHelpFightBg/btnHelpFight")
Util.GetGameObject(self.gameObject, "InfoRoot/btnHelpFightBg/btnHelpFightText"):GetComponent("Text").text="秘宝"
this.btnHelpFightRed = Util.GetGameObject(this.btnHelpFight, "redPoint")
this.btnHelpFight:GetComponent("Image").sprite = this.spLoader:LoadSprite("godsWayTower_treasure_zh")
this.rewardItemPre= Util.GetGameObject(self.gameObject, "InfoRoot/rewardContent/item")
@ -221,7 +223,7 @@ function GodsWayTowerPanel:OnShow()
else
curId=ActivityGiftManager.GetActivityIdByType(ActivityTypeDef.godsWayTowerTreasure_three)
end
this.btnHelpFight:SetActive(curId~=0)
this.btnHelpFightObj:SetActive(curId~=0)
this.moppingUpBtn:SetActive(curFloor~=0)
storeDataId,itemId,costNum = GodsWayTowerManager.GetCost(curType)
if curType==1 then

View File

@ -136,7 +136,7 @@ function TaSuiLingXiao:ShowSkillList()
ForceRebuildLayout(self.scrollItem.transform)
local curSkillData = {}
curSkillData.skillConfig = skillData
local pos = Vector2.New(0,self.itemList[i].gameObject:GetComponent("RectTransform").localPosition.y + self.scrollItem:GetComponent("RectTransform").localPosition.y)
local pos = Vector2.New(0,self.itemList[i].gameObject:GetComponent("RectTransform").localPosition.y + self.scrollItem:GetComponent("RectTransform").localPosition.y-300)
Util.AddOnceClick(self.itemList[i], function()
local maxLv= HeroManager.GetHeroSkillMaxLevel(self.configData.HeroId,skillData.Type)
UIManager.OpenPanel(UIName.SkillInfoPopup,curSkillData,1,10,maxLv,i,pos)