公会成员详情界面修改

onepiece_demo_arena
wangzhenxing 2024-01-30 15:08:38 +08:00
parent dbfa637e98
commit d870e86f74
3 changed files with 201552 additions and 182749 deletions

View File

@ -476,7 +476,7 @@ function this.MemItemAdapter(item, data)
-- 添加点击事件 -- 添加点击事件
Util.AddOnceClick(bg, function() Util.AddOnceClick(bg, function()
--UIManager.OpenPanel(UIName.GuildMemberInfoPopup, GUILD_MEM_POPUP_TYPE.INFORMATION, data.roleUid) UIManager.OpenPanel(UIName.GuildMemberInfoPopup, GUILD_MEM_POPUP_TYPE.INFORMATION, data.roleUid)
end) end)
end end

View File

@ -67,7 +67,7 @@ function GuildMemberInfoPopup:InitComponent()
this.star = Util.GetGameObject(self.transform, "tipImage/panel/info/starBox/star") this.star = Util.GetGameObject(self.transform, "tipImage/panel/info/starBox/star")
this.titlePar = Util.GetGameObject(self.transform, "tipImage/panel/info/titlePar") this.titlePar = Util.GetGameObject(self.transform, "tipImage/panel/info/titlePar")
this.memPower = Util.GetGameObject(self.transform, "tipImage/panel/defendbox/power"):GetComponent("Text") this.memPower = Util.GetGameObject(self.transform, "tipImage/panel/defendbox/power"):GetComponent("Text")
this.formationTip = Util.GetGameObject(self.transform, "tipImage/panel/defendbox/tip"):GetComponent("Text") this.formationTip = Util.GetGameObject(self.transform, "tipImage/panel/defendbox/Image/tip"):GetComponent("Text")
this.attackCount = Util.GetGameObject(self.transform, "tipImage/attackCount"):GetComponent("Text") this.attackCount = Util.GetGameObject(self.transform, "tipImage/attackCount"):GetComponent("Text")
this.demonsHeroList=Util.GetGameObject(self.gameObject, "tipImage/panel/defendbox/demons") this.demonsHeroList=Util.GetGameObject(self.gameObject, "tipImage/panel/defendbox/demons")
@ -92,7 +92,7 @@ function GuildMemberInfoPopup:InitComponent()
table.insert(this.Demons, Util.GetGameObject(self.gameObject, "tipImage/panel/Pokemons/Demons/heroPro (" .. i .. ")")) table.insert(this.Demons, Util.GetGameObject(self.gameObject, "tipImage/panel/Pokemons/Demons/heroPro (" .. i .. ")"))
end end
Util.GetGameObject(self.transform, "tipImage/panel/pokemonInfo/tip"):GetComponent("Text").text=Language[11501] Util.GetGameObject(self.transform, "tipImage/panel/pokemonInfo/Image/tip"):GetComponent("Text").text=Language[11501]
this.Pokemons = {} this.Pokemons = {}
for i = 1, 6 do for i = 1, 6 do
table.insert(this.Pokemons, Util.GetGameObject(self.gameObject, "tipImage/panel/pokemonInfo/Demons/heroPro (" .. i .. ")")) table.insert(this.Pokemons, Util.GetGameObject(self.gameObject, "tipImage/panel/pokemonInfo/Demons/heroPro (" .. i .. ")"))
@ -453,7 +453,7 @@ function this.RefreshBtnShow()
-- 判断该界面类型是否有按钮显示 -- 判断该界面类型是否有按钮显示
local posToType = _GuildPosBtnType[this._ViewType] local posToType = _GuildPosBtnType[this._ViewType]
if not posToType then if not posToType then
this.boxLine:SetActive(false) --this.boxLine:SetActive(false)
this.btnBox:SetActive(false) this.btnBox:SetActive(false)
return return
end end
@ -464,12 +464,12 @@ function this.RefreshBtnShow()
btnType = btnType[this._MemData.position] btnType = btnType[this._MemData.position]
end end
if not btnType then if not btnType then
this.boxLine:SetActive(false) --this.boxLine:SetActive(false)
this.btnBox:SetActive(false) this.btnBox:SetActive(false)
return return
end end
-- 有按钮显示 -- 有按钮显示
this.boxLine:SetActive(true) --this.boxLine:SetActive(true)
this.btnBox:SetActive(true) this.btnBox:SetActive(true)
for index, btn in ipairs(this.btnList) do for index, btn in ipairs(this.btnList) do
btn:SetActive(btnType[index] ~= nil) btn:SetActive(btnType[index] ~= nil)