【玉虚论道】其他人信息界面提价
parent
c0ea5e1b7f
commit
dc943be130
|
|
@ -36,6 +36,8 @@ function WorldArenaOtherTeamPanel:InitComponent()
|
|||
self.imprintGrid = Util.GetGameObject(self.imprintInfo, "Imprints")
|
||||
self.imprintPre = Util.GetGameObject(self.gameObject, "imprintPre")
|
||||
self.imprintItemList = {}
|
||||
--挑战
|
||||
self.btnChallenge = Util.GetGameObject(self.content, "Button")
|
||||
end
|
||||
|
||||
|
||||
|
|
@ -47,6 +49,10 @@ function WorldArenaOtherTeamPanel:BindEvent()
|
|||
Util.AddClick(self.btnBack, function()
|
||||
self:ClosePanel()
|
||||
end)
|
||||
Util.AddClick(self.btnChallenge, function()
|
||||
PopupTipPanel.ShowTip("去挑战了")
|
||||
self:ClosePanel()
|
||||
end)
|
||||
end
|
||||
--添加事件监听(用于子类重写)
|
||||
function WorldArenaOtherTeamPanel:AddListener()
|
||||
|
|
@ -105,18 +111,15 @@ function WorldArenaOtherTeamPanel:SetPlayerInfo(go,playerData)
|
|||
end
|
||||
|
||||
--编队信息
|
||||
function WorldArenaOtherTeamPanel:SetTeamInfo(go,teamData)
|
||||
function WorldArenaOtherTeamPanel:SetTeamInfo(_go,teamData)
|
||||
for index = 1, 3 do
|
||||
local go = Util.GetGameObject(_go,"Team ("..index..")")
|
||||
local data = teamData[index]
|
||||
local title = Util.GetGameObject(go,"Title"):GetComponent("Text")
|
||||
local warPower = Util.GetGameObject(go,"WarPower/Text"):GetComponent("Text")
|
||||
local btnChange = Util.GetGameObject(go,"ChangeTeam")
|
||||
local teamList = Util.GetGameObject(go,"TeamList")
|
||||
title.text = string.format( "第%s队",NumToChinese[index])
|
||||
warPower.text = data.totalForce
|
||||
Util.AddOnceClick(btnChange,function ()
|
||||
PopupTipPanel.ShowTip(string.format( "进入第%s个编队",index))
|
||||
end)
|
||||
|
||||
for i, demon in ipairs(self.teamList[index].heroList) do
|
||||
Util.GetGameObject(demon, "frame"):GetComponent("Image").sprite = self.spLoader:LoadSprite(GetQuantityImageByquality(1))
|
||||
|
|
|
|||
Loading…
Reference in New Issue