no message
parent
dc058f99e1
commit
6f05841519
|
@ -1102,7 +1102,7 @@ RectTransform:
|
|||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
m_AnchorMin: {x: 0.5, y: 1}
|
||||
m_AnchorMax: {x: 0.5, y: 1}
|
||||
m_AnchoredPosition: {x: 248.1, y: -38.1}
|
||||
m_AnchoredPosition: {x: 248.1, y: -136.9}
|
||||
m_SizeDelta: {x: 220.99, y: 42.04}
|
||||
m_Pivot: {x: 0.36038244, y: 0.5}
|
||||
--- !u!222 &5939520279966165509
|
||||
|
@ -1257,9 +1257,9 @@ RectTransform:
|
|||
m_Father: {fileID: 3408442198697653928}
|
||||
m_RootOrder: 3
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
m_AnchorMin: {x: 0.5, y: 1}
|
||||
m_AnchorMax: {x: 0.5, y: 1}
|
||||
m_AnchoredPosition: {x: 273.8, y: 21.07}
|
||||
m_AnchorMin: {x: 0.5, y: 0.5}
|
||||
m_AnchorMax: {x: 0.5, y: 0.5}
|
||||
m_AnchoredPosition: {x: 273.8, y: -32.8}
|
||||
m_SizeDelta: {x: 209.89, y: 72.88}
|
||||
m_Pivot: {x: 0.5, y: 0.5}
|
||||
--- !u!222 &5679312751743760484
|
||||
|
@ -2126,6 +2126,21 @@ PrefabInstance:
|
|||
propertyPath: m_Pivot.y
|
||||
value: 1
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 224797861638971062, guid: cc289befb290a5544b9c25eae7cf8973,
|
||||
type: 3}
|
||||
propertyPath: m_LocalScale.x
|
||||
value: 0.78
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 224797861638971062, guid: cc289befb290a5544b9c25eae7cf8973,
|
||||
type: 3}
|
||||
propertyPath: m_LocalScale.y
|
||||
value: 0.78
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 224797861638971062, guid: cc289befb290a5544b9c25eae7cf8973,
|
||||
type: 3}
|
||||
propertyPath: m_LocalScale.z
|
||||
value: 0.78
|
||||
objectReference: {fileID: 0}
|
||||
m_RemovedComponents: []
|
||||
m_SourcePrefab: {fileID: 100100000, guid: cc289befb290a5544b9c25eae7cf8973, type: 3}
|
||||
--- !u!224 &34096667903366304 stripped
|
||||
|
@ -2250,6 +2265,21 @@ PrefabInstance:
|
|||
propertyPath: m_Pivot.y
|
||||
value: 1
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 224797861638971062, guid: cc289befb290a5544b9c25eae7cf8973,
|
||||
type: 3}
|
||||
propertyPath: m_LocalScale.x
|
||||
value: 0.78
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 224797861638971062, guid: cc289befb290a5544b9c25eae7cf8973,
|
||||
type: 3}
|
||||
propertyPath: m_LocalScale.y
|
||||
value: 0.78
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 224797861638971062, guid: cc289befb290a5544b9c25eae7cf8973,
|
||||
type: 3}
|
||||
propertyPath: m_LocalScale.z
|
||||
value: 0.78
|
||||
objectReference: {fileID: 0}
|
||||
m_RemovedComponents: []
|
||||
m_SourcePrefab: {fileID: 100100000, guid: cc289befb290a5544b9c25eae7cf8973, type: 3}
|
||||
--- !u!224 &1767756772196429038 stripped
|
||||
|
@ -2374,6 +2404,21 @@ PrefabInstance:
|
|||
propertyPath: m_Pivot.y
|
||||
value: 1
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 224797861638971062, guid: cc289befb290a5544b9c25eae7cf8973,
|
||||
type: 3}
|
||||
propertyPath: m_LocalScale.x
|
||||
value: 0.78
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 224797861638971062, guid: cc289befb290a5544b9c25eae7cf8973,
|
||||
type: 3}
|
||||
propertyPath: m_LocalScale.y
|
||||
value: 0.78
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 224797861638971062, guid: cc289befb290a5544b9c25eae7cf8973,
|
||||
type: 3}
|
||||
propertyPath: m_LocalScale.z
|
||||
value: 0.78
|
||||
objectReference: {fileID: 0}
|
||||
m_RemovedComponents: []
|
||||
m_SourcePrefab: {fileID: 100100000, guid: cc289befb290a5544b9c25eae7cf8973, type: 3}
|
||||
--- !u!224 &4219484961250095739 stripped
|
||||
|
@ -2498,6 +2543,21 @@ PrefabInstance:
|
|||
propertyPath: m_Pivot.y
|
||||
value: 1
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 224797861638971062, guid: cc289befb290a5544b9c25eae7cf8973,
|
||||
type: 3}
|
||||
propertyPath: m_LocalScale.x
|
||||
value: 0.78
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 224797861638971062, guid: cc289befb290a5544b9c25eae7cf8973,
|
||||
type: 3}
|
||||
propertyPath: m_LocalScale.y
|
||||
value: 0.78
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 224797861638971062, guid: cc289befb290a5544b9c25eae7cf8973,
|
||||
type: 3}
|
||||
propertyPath: m_LocalScale.z
|
||||
value: 0.78
|
||||
objectReference: {fileID: 0}
|
||||
m_RemovedComponents: []
|
||||
m_SourcePrefab: {fileID: 100100000, guid: cc289befb290a5544b9c25eae7cf8973, type: 3}
|
||||
--- !u!224 &6054075901445166563 stripped
|
||||
|
@ -2746,6 +2806,21 @@ PrefabInstance:
|
|||
propertyPath: m_Pivot.y
|
||||
value: 1
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 224797861638971062, guid: cc289befb290a5544b9c25eae7cf8973,
|
||||
type: 3}
|
||||
propertyPath: m_LocalScale.x
|
||||
value: 0.78
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 224797861638971062, guid: cc289befb290a5544b9c25eae7cf8973,
|
||||
type: 3}
|
||||
propertyPath: m_LocalScale.y
|
||||
value: 0.78
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 224797861638971062, guid: cc289befb290a5544b9c25eae7cf8973,
|
||||
type: 3}
|
||||
propertyPath: m_LocalScale.z
|
||||
value: 0.78
|
||||
objectReference: {fileID: 0}
|
||||
m_RemovedComponents: []
|
||||
m_SourcePrefab: {fileID: 100100000, guid: cc289befb290a5544b9c25eae7cf8973, type: 3}
|
||||
--- !u!224 &6083692090863145194 stripped
|
||||
|
@ -2870,6 +2945,21 @@ PrefabInstance:
|
|||
propertyPath: m_Pivot.y
|
||||
value: 1
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 224797861638971062, guid: cc289befb290a5544b9c25eae7cf8973,
|
||||
type: 3}
|
||||
propertyPath: m_LocalScale.x
|
||||
value: 0.78
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 224797861638971062, guid: cc289befb290a5544b9c25eae7cf8973,
|
||||
type: 3}
|
||||
propertyPath: m_LocalScale.y
|
||||
value: 0.78
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 224797861638971062, guid: cc289befb290a5544b9c25eae7cf8973,
|
||||
type: 3}
|
||||
propertyPath: m_LocalScale.z
|
||||
value: 0.78
|
||||
objectReference: {fileID: 0}
|
||||
m_RemovedComponents: []
|
||||
m_SourcePrefab: {fileID: 100100000, guid: cc289befb290a5544b9c25eae7cf8973, type: 3}
|
||||
--- !u!224 &8951759513183077380 stripped
|
||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -45,8 +45,8 @@ local difficult = {
|
|||
function this:InitComponent()
|
||||
this.UpView = SubUIManager.Open(SubUIConfig.UpView, self.gameObject.transform)
|
||||
|
||||
this.remainTimesTip = Util.GetGameObject(self.gameObject,"Panel/remainTimesTip"): GetComponent("Text")
|
||||
this.vipTips = Util.GetGameObject(self.gameObject,"Panel/vipTips") : GetComponent("Text")
|
||||
this.remainTimesTip = Util.GetGameObject(self.gameObject,"Panel/tip/remainTimesTip"): GetComponent("Text")
|
||||
this.vipTips = Util.GetGameObject(self.gameObject,"Panel/tip/vipTips") : GetComponent("Text")
|
||||
this.btnBack = Util.GetGameObject(self.gameObject,"Panel/BackBtn")
|
||||
|
||||
this.levelPre = Util.GetGameObject(self.gameObject,"Panel/Pre")
|
||||
|
@ -226,9 +226,7 @@ function this:SetLevelData(go, data)
|
|||
end
|
||||
|
||||
--界面打开时调用(用于子类重写)
|
||||
function this:OnShow(...)
|
||||
-- this.remainTimesTip.text = XuanYuanMirrorManager.GetTimeTip()
|
||||
-- this.vipTips.text = Language[12257]
|
||||
function this:OnShow(...)
|
||||
local curFormationForce = FormationManager.GetFormationPower(FormationTypeDef.FORMATION_NORMAL)
|
||||
if PlayerManager.maxForce < curFormationForce then
|
||||
PlayerManager.maxForce = curFormationForce
|
||||
|
@ -239,7 +237,8 @@ end
|
|||
|
||||
--界面打开时调用(用于子类重写)
|
||||
function this:RefreshTimes()
|
||||
|
||||
-- this.remainTimesTip.text = XuanYuanMirrorManager.GetTimeTip()
|
||||
-- this.vipTips.text = Language[12257]
|
||||
end
|
||||
|
||||
function this:OnSortingOrderChange()
|
||||
|
|
|
@ -0,0 +1,98 @@
|
|||
----- 公会十绝阵排行弹窗 -----
|
||||
require("Base/BasePanel")
|
||||
local XuanYuanMirrorRankPopup = Inherit(BasePanel)
|
||||
local this = XuanYuanMirrorRankPopup
|
||||
|
||||
function XuanYuanMirrorRankPopup:InitComponent()
|
||||
this.panel=Util.GetGameObject(this.gameObject,"Panel")
|
||||
this.backBtn=Util.GetGameObject(this.panel,"BackBtn")
|
||||
|
||||
this.rankScroll=Util.GetGameObject(this.panel,"Scroll/Root")
|
||||
this.rankPre=Util.GetGameObject(this.panel,"Scroll/Root/Pre")
|
||||
this.scrollView=SubUIManager.Open(SubUIConfig.ScrollCycleView,this.rankScroll.transform,this.rankPre, nil,
|
||||
Vector2.New(this.rankScroll.transform.rect.width,this.rankScroll.transform.rect.height),1,1,Vector2.New(0,10))
|
||||
this.scrollView.gameObject:GetComponent("RectTransform").anchoredPosition= Vector2.New(0,0)
|
||||
this.scrollView.gameObject:GetComponent("RectTransform").anchorMin = Vector2.New(0.5, 0.5)
|
||||
this.scrollView.gameObject:GetComponent("RectTransform").anchorMax = Vector2.New(0.5, 0.5)
|
||||
this.scrollView.gameObject:GetComponent("RectTransform").pivot = Vector2.New(0.5, 0.5)
|
||||
this.scrollView.moveTween.MomentumAmount = 1
|
||||
this.scrollView.moveTween.Strength = 2
|
||||
|
||||
--我的排名
|
||||
this.mRRank=Util.GetGameObject(this.panel,"MyInfo")
|
||||
this.mRName=Util.GetGameObject(this.mRRank,"Grid/Name"):GetComponent("Text")
|
||||
this.mRNum=Util.GetGameObject(this.mRRank,"Grid/Num"):GetComponent("Text")
|
||||
|
||||
this.empty=Util.GetGameObject(this.panel,"Scroll/Empty")
|
||||
end
|
||||
|
||||
function XuanYuanMirrorRankPopup:BindEvent()
|
||||
Util.AddClick(this.backBtn,function()
|
||||
PlaySoundWithoutClick(SoundConfig.Sound_UICancel)
|
||||
self:ClosePanel()
|
||||
end)
|
||||
end
|
||||
function XuanYuanMirrorRankPopup:OnOpen(...)
|
||||
|
||||
end
|
||||
|
||||
function XuanYuanMirrorRankPopup:OnShow()
|
||||
this.RefreshRank()
|
||||
end
|
||||
|
||||
function XuanYuanMirrorRankPopup:OnClose()
|
||||
this.empty:SetActive(false)
|
||||
end
|
||||
|
||||
function XuanYuanMirrorRankPopup:OnDestroy()
|
||||
this.scrollView=nil
|
||||
end
|
||||
|
||||
--刷新排行榜 index当前排行类型索引
|
||||
function this.RefreshRank()
|
||||
NetManager.RequestRankInfo(RANK_TYPE.XUANYUANMIRROR_RANK,function(msg)
|
||||
this.empty:SetActive(#msg.ranks <= 0)
|
||||
this.scrollView:SetData(msg.ranks,function(index,root)
|
||||
this.SetScrollPre(root,msg.ranks[index])
|
||||
end)
|
||||
this.scrollView:SetIndex(1)
|
||||
this.mRRank.gameObject:SetActive((not msg.myRankInfo) or msg.myRankInfo.rank~=-1)
|
||||
if msg.myRankInfo and msg.myRankInfo.rank ~= -1 then
|
||||
this.SetMyRank(msg.myRankInfo)
|
||||
end
|
||||
end)
|
||||
end
|
||||
|
||||
--设置每条数据
|
||||
function this.SetScrollPre(root,data)
|
||||
local name=Util.GetGameObject(root,"Grid/Name"):GetComponent("Text")
|
||||
local num=Util.GetGameObject(root,"Grid/Num"):GetComponent("Text")
|
||||
this.SetRankingNum(root,data.rankInfo.rank,false)
|
||||
name.text=data.userName
|
||||
num.text=data.rankInfo.param1
|
||||
end
|
||||
--设置我的名次
|
||||
function this.SetMyRank(data,curRankType)
|
||||
this.SetRankingNum(this.mRRank,data.rank,true)
|
||||
this.mRName.text = PlayerManager.nickName
|
||||
this.mRNum.text = data.param1
|
||||
end
|
||||
--设置名次 isMy 是否是设置我的名次
|
||||
function this.SetRankingNum(root,rank,isMy)
|
||||
local sortNumTabs={}
|
||||
for i = 1, 4 do
|
||||
sortNumTabs[i]=Util.GetGameObject(root,"SortNum/SortNum ("..i..")")
|
||||
sortNumTabs[i]:SetActive(false)
|
||||
end
|
||||
if rank < 4 then
|
||||
sortNumTabs[rank]:SetActive(true)
|
||||
else
|
||||
sortNumTabs[4]:SetActive(true)
|
||||
if rank > 100 and isMy then
|
||||
rank="100+"
|
||||
end
|
||||
Util.GetGameObject(sortNumTabs[4], "TitleText"):GetComponent("Text").text = rank
|
||||
end
|
||||
end
|
||||
|
||||
return XuanYuanMirrorRankPopup
|
|
@ -1,169 +0,0 @@
|
|||
----- 公会十绝阵排行弹窗 -----
|
||||
require("Base/BasePanel")
|
||||
local XuanYuanMirrorRankPopup = Inherit(BasePanel)
|
||||
local this = XuanYuanMirrorRankPopup
|
||||
|
||||
function XuanYuanMirrorRankPopup:InitComponent()
|
||||
this.panel=Util.GetGameObject(this.gameObject,"Panel")
|
||||
this.backBtn=Util.GetGameObject(this.panel,"BackBtn")
|
||||
this.upName=Util.GetGameObject(this.panel,"Scroll/UpInfo/Grid/Name"):GetComponent("Text")
|
||||
this.upNum=Util.GetGameObject(this.panel,"Scroll/UpInfo/Grid/Num")
|
||||
|
||||
this.tabbox = Util.GetGameObject(this.panel, "TabBox")
|
||||
|
||||
this.rankScroll=Util.GetGameObject(this.panel,"Scroll/Root")
|
||||
this.rankPre=Util.GetGameObject(this.panel,"Scroll/Root/Pre")
|
||||
this.scrollView=SubUIManager.Open(SubUIConfig.ScrollCycleView,this.rankScroll.transform,this.rankPre, nil,
|
||||
Vector2.New(this.rankScroll.transform.rect.width,this.rankScroll.transform.rect.height),1,1,Vector2.New(0,10))
|
||||
this.scrollView.gameObject:GetComponent("RectTransform").anchoredPosition= Vector2.New(0,0)
|
||||
this.scrollView.gameObject:GetComponent("RectTransform").anchorMin = Vector2.New(0.5, 0.5)
|
||||
this.scrollView.gameObject:GetComponent("RectTransform").anchorMax = Vector2.New(0.5, 0.5)
|
||||
this.scrollView.gameObject:GetComponent("RectTransform").pivot = Vector2.New(0.5, 0.5)
|
||||
this.scrollView.moveTween.MomentumAmount = 1
|
||||
this.scrollView.moveTween.Strength = 2
|
||||
|
||||
--我的排名
|
||||
this.mRRank=Util.GetGameObject(this.panel,"Scroll/MyInfo")
|
||||
this.mRSortNum=Util.GetGameObject(this.panel,"Scroll/MyInfo/SortNum")
|
||||
this.mRName=Util.GetGameObject(this.panel,"Scroll/MyInfo/Grid/Name"):GetComponent("Text")
|
||||
this.mRNum=Util.GetGameObject(this.panel,"Scroll/MyInfo/Grid/Num"):GetComponent("Text")
|
||||
this.mRHurt=Util.GetGameObject(this.panel,"Scroll/MyInfo/Hurt"):GetComponent("Text")
|
||||
|
||||
this.empty=Util.GetGameObject(this.panel,"Scroll/Empty")
|
||||
end
|
||||
|
||||
function XuanYuanMirrorRankPopup:BindEvent()
|
||||
Util.AddClick(this.backBtn,function()
|
||||
PlaySoundWithoutClick(SoundConfig.Sound_UICancel)
|
||||
self:ClosePanel()
|
||||
end)
|
||||
end
|
||||
|
||||
function XuanYuanMirrorRankPopup:AddListener()
|
||||
Game.GlobalEvent:AddEvent(GameEvent.Guild.RefreshDeathPosStatus, this.RefreshPanel)
|
||||
end
|
||||
|
||||
function XuanYuanMirrorRankPopup:RemoveListener()
|
||||
Game.GlobalEvent:RemoveEvent(GameEvent.Guild.RefreshDeathPosStatus, this.RefreshPanel)
|
||||
end
|
||||
function XuanYuanMirrorRankPopup:OnOpen(...)
|
||||
|
||||
end
|
||||
|
||||
function XuanYuanMirrorRankPopup:OnShow()
|
||||
this.RefreshPanel()
|
||||
end
|
||||
|
||||
function XuanYuanMirrorRankPopup:OnClose()
|
||||
this.empty:SetActive(false)
|
||||
end
|
||||
|
||||
function XuanYuanMirrorRankPopup:OnDestroy()
|
||||
this.scrollView=nil
|
||||
end
|
||||
|
||||
|
||||
function this.RefreshPanel()
|
||||
if DeathPosManager.status==DeathPosStatus.Close then
|
||||
this:ClosePanel()
|
||||
return
|
||||
end
|
||||
this.TabCtrl = TabBox.New()
|
||||
this.TabCtrl:SetTabAdapter(this.TabAdapter)
|
||||
this.TabCtrl:SetChangeTabCallBack(this.OnTabChange)
|
||||
this.TabCtrl:Init(this.tabbox, _TabData)
|
||||
end
|
||||
|
||||
-- tab按钮自定义显示设置
|
||||
function this.TabAdapter(tab, index, status)
|
||||
local img = Util.GetGameObject(tab, "Image")
|
||||
local txt = Util.GetGameObject(tab, "Text")
|
||||
img:GetComponent("Image").sprite = Util.LoadSprite(_TabImgData[status])
|
||||
txt:GetComponent("Text").text = _TabData[index].txt
|
||||
txt:GetComponent("Text").color = _TabFontColor[status]
|
||||
end
|
||||
|
||||
-- tab改变回调事件
|
||||
function this.OnTabChange(index, lastIndex)
|
||||
this.RefreshRank(index)
|
||||
end
|
||||
|
||||
|
||||
|
||||
--刷新排行榜 index当前排行类型索引
|
||||
function this.RefreshRank(index)
|
||||
this.upName.text=index==1 and Language[11046] or Language[11051]
|
||||
this.upNum:SetActive(index==1)
|
||||
local curRankType=RANK_TYPE.GUILD_DEATHPOS_ALLGUILD --默认公会排行
|
||||
if index==1 then
|
||||
curRankType=RANK_TYPE.GUILD_DEATHPOS_ALLGUILD --公会排行
|
||||
elseif index==2 then
|
||||
curRankType=RANK_TYPE.GUILD_DEATHPOS_ALLPERSON --个人排行
|
||||
end
|
||||
NetManager.RequestRankInfo(curRankType,function(msg)
|
||||
this.empty:SetActive(#msg.ranks<=0)
|
||||
this.scrollView:SetData(msg.ranks,function(index,root)
|
||||
this.SetScrollPre(root,msg.ranks[index],curRankType)
|
||||
end)
|
||||
this.scrollView:SetIndex(1)
|
||||
|
||||
--当我的排名没数据时
|
||||
this.mRSortNum:SetActive(msg.myRankInfo.rank~=-1)
|
||||
this.mRNum.gameObject:SetActive(msg.myRankInfo.rank~=-1)
|
||||
if msg.myRankInfo.rank==-1 then
|
||||
this.mRName.text=Language[10041]
|
||||
this.mRHurt.text=""
|
||||
return
|
||||
end
|
||||
this.SetMyRank(msg.myRankInfo,curRankType)
|
||||
end)
|
||||
end
|
||||
|
||||
--设置每条数据
|
||||
function this.SetScrollPre(root,data,curRankType)
|
||||
local name=Util.GetGameObject(root,"Grid/Name"):GetComponent("Text")
|
||||
local num=Util.GetGameObject(root,"Grid/Num"):GetComponent("Text")
|
||||
local hurt=Util.GetGameObject(root,"Hurt"):GetComponent("Text")
|
||||
|
||||
this.SetRankingNum(root,data.rankInfo.rank,false)
|
||||
num.gameObject:SetActive(curRankType==RANK_TYPE.GUILD_DEATHPOS_ALLGUILD)
|
||||
if curRankType==RANK_TYPE.GUILD_DEATHPOS_ALLGUILD then
|
||||
name.text=string.format(Language[11052],data.guildName,data.rankInfo.param3) --公会名称 人数
|
||||
num.text=data.rankInfo.param2 -- param2 挑战人数
|
||||
elseif curRankType==RANK_TYPE.GUILD_DEATHPOS_ALLPERSON then
|
||||
name.text=data.userName
|
||||
end
|
||||
hurt.text= DeathPosManager.ChangeDamageForm(data.rankInfo.param1)
|
||||
end
|
||||
--设置我的名次
|
||||
function this.SetMyRank(data,curRankType)
|
||||
local guildData = MyGuildManager.GetMyGuildInfo()
|
||||
this.SetRankingNum(this.mRRank,data.rank,true)
|
||||
this.mRNum.gameObject:SetActive(curRankType==RANK_TYPE.GUILD_DEATHPOS_ALLGUILD)
|
||||
if curRankType==RANK_TYPE.GUILD_DEATHPOS_ALLGUILD then
|
||||
this.mRName.text=guildData.name
|
||||
this.mRNum.text= data.param2..Language[11057] --param2 人数
|
||||
elseif curRankType==RANK_TYPE.GUILD_DEATHPOS_ALLPERSON then
|
||||
this.mRName.text=PlayerManager.nickName
|
||||
end
|
||||
this.mRHurt.text= DeathPosManager.ChangeDamageForm(data.param1) --param1 伤害
|
||||
end
|
||||
--设置名次 isMy 是否是设置我的名次
|
||||
function this.SetRankingNum(root,rank,isMy)
|
||||
local sortNumTabs={}
|
||||
for i = 1, 4 do
|
||||
sortNumTabs[i]=Util.GetGameObject(root,"SortNum/SortNum ("..i..")")
|
||||
sortNumTabs[i]:SetActive(false)
|
||||
end
|
||||
if rank < 4 then
|
||||
sortNumTabs[rank]:SetActive(true)
|
||||
else
|
||||
sortNumTabs[4]:SetActive(true)
|
||||
if rank>100 and isMy then
|
||||
rank="100+"
|
||||
end
|
||||
Util.GetGameObject(sortNumTabs[4], "TitleText"):GetComponent("Text").text = rank
|
||||
end
|
||||
end
|
||||
|
||||
return XuanYuanMirrorRankPopup
|
Loading…
Reference in New Issue