修改角色界面ui

onepiece_demo_arena
xiejun 2023-12-05 18:16:33 +08:00
parent 9d7def32b3
commit 99ac349d8c
4 changed files with 1844 additions and 979 deletions

View File

@ -89,9 +89,9 @@ function RoleInfoPanel:InitComponent()
this.pos = Util.GetGameObject(this.roleInfoRoot,"Pos")
this.posQuality = Util.GetGameObject(this.roleInfoRoot,"quality"):GetComponent("Image")
this.RecallBtn=Util.GetGameObject(this.roleInfoRoot,"RecallBtn")--角色归元按钮
this.RecallBtn:GetComponent("Image").sprite = this.spLoader:LoadSprite("r_fabao_guiyuan_zh")
-- this.RecallBtn:GetComponent("Image").sprite = this.spLoader:LoadSprite("r_fabao_guiyuan_zh")
this.reStarBtn=Util.GetGameObject(this.roleInfoRoot,"reStarBtn")--角色归元按钮
this.reStarBtn:GetComponent("Image").sprite = this.spLoader:LoadSprite("r_hero_huitui")
--this.reStarBtn:GetComponent("Image").sprite = this.spLoader:LoadSprite("r_hero_huitui")
this.powerBtn = Util.GetGameObject(this.roleInfoRoot, "powerBtn")
this.force = Util.GetGameObject(this.powerBtn, "value"):GetComponent("Text")
this.upLvEffect = Util.GetGameObject(this.powerBtn,"effect")

View File

@ -743,7 +743,8 @@ function ItemView:NoGetRewardShow(_reward, effectLayer, isShowAddImage)
--TalismanManager.AllTalismanStartStar[itemSId]
SetHeroStars(self.spLoader, self.starGrid, 0,1,Vector2.New(32.5,32.5),-15)
Util.AddOnceClick(self.frameBtn, function()
LogError("?????????????????????????????????????????????")
--UIManager.OpenPanel(UIName.RewardRideShowPopup, _,nil)
UIManager.OpenPanel(UIName.RewardItemSingleShowPopup, itemSId,nil,self.isRewardItemPop,true)
end)
elseif itemDataConFig.ItemType == ItemType.talismanSoulChip then
self.num:SetActive(true)

View File

@ -48,7 +48,7 @@ function JumpViewNew:OnOpen(jumpId,heroConfig,parent)
self.heroId = heroConfig.Id
self.needChipId = heroConfig.PiecesId
self.needChipNum = ItemConfig[self.needChipId].UsePerCount
self.btnSureIma.sprite = self.parent.spLoader:LoadSprite("r_hero_button_002")
--self.btnSureIma.sprite = self.parent.spLoader:LoadSprite("r_hero_button_002")
local color = "EBCC97"
if self.jumpSData then
self.info.text=GetLanguageStrById(self.jumpSData.Title)
@ -119,7 +119,7 @@ function JumpViewNew:OnOpen(jumpId,heroConfig,parent)
end
if itemcount >= needCostNum then
color = "12C10B"
self.btnSureIma.sprite = self.parent.spLoader:LoadSprite("r_hero_button_001")
-- self.btnSureIma.sprite = self.parent.spLoader:LoadSprite("r_hero_button_001")
end
elseif self.jumpSData.Type == JumpType.XingChenShangDian then
@ -146,7 +146,7 @@ function JumpViewNew:OnOpen(jumpId,heroConfig,parent)
self.itemView:OnOpen(false, {costItemId,0}, 0.4, false, false, false, self.parent.sortingOrder)
if itemcount >= needCostNum then
color = "12C10B"
self.btnSureIma.sprite = self.parent.spLoader:LoadSprite("r_hero_button_001")
--self.btnSureIma.sprite = self.parent.spLoader:LoadSprite("r_hero_button_001")
end
self.desc.text = string.format("<color=#%s>%s:%s/%s</color>",color, ItemConfig[costItemId].Name,itemcount,needCostNum)
elseif self.jumpSData.Type == 30003 then
@ -155,7 +155,7 @@ function JumpViewNew:OnOpen(jumpId,heroConfig,parent)
local itemcount = BagManager.GetItemCountById(self.needChipId)
if itemcount >= self.needChipNum then
color = "12C10B"
self.btnSureIma.sprite = self.parent.spLoader:LoadSprite("r_hero_button_001")
--self.btnSureIma.sprite = self.parent.spLoader:LoadSprite("r_hero_button_001")
end
self.desc.text = string.format("<color=#%s>%s:%s/%s</color>",color,ItemConfig[self.needChipId].Name,itemcount,self.needChipNum)
elseif self.jumpSData.Type == JumpType.recharge then