UIPvP等级显示

This commit is contained in:
fatiao 2026-02-04 10:14:45 +08:00
parent 009aec5a26
commit e2388feadc
3 changed files with 15 additions and 15 deletions

View File

@ -35,8 +35,8 @@ RectTransform:
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0.5, y: 0}
m_AnchorMax: {x: 0.5, y: 0}
m_AnchoredPosition: {x: 0, y: -25}
m_SizeDelta: {x: 100, y: 40}
m_AnchoredPosition: {x: 2.3, y: -10.8}
m_SizeDelta: {x: 100, y: 35}
m_Pivot: {x: 0.5, y: 0}
--- !u!222 &3891741143720843706
CanvasRenderer:
@ -88,7 +88,7 @@ MonoBehaviour:
m_OnCullStateChanged:
m_PersistentCalls:
m_Calls: []
m_text: 56
m_text: Lv.50
m_isRightToLeft: 0
m_fontAsset: {fileID: 11400000, guid: ff9a33292f9ee2e4bb6b5beaa43eb505, type: 2}
m_sharedMaterial: {fileID: 2100000, guid: 002289864d757214bb9593da63a1ec8a, type: 2}
@ -115,15 +115,15 @@ MonoBehaviour:
m_faceColor:
serializedVersion: 2
rgba: 4294967295
m_fontSize: 36
m_fontSizeBase: 36
m_fontSize: 30
m_fontSizeBase: 30
m_fontWeight: 400
m_enableAutoSizing: 0
m_fontSizeMin: 18
m_fontSizeMax: 72
m_fontStyle: 0
m_fontStyle: 1
m_HorizontalAlignment: 2
m_VerticalAlignment: 1024
m_VerticalAlignment: 512
m_textAlignment: 65535
m_characterSpacing: 0
m_wordSpacing: 0
@ -883,7 +883,7 @@ GameObject:
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 0
m_IsActive: 1
--- !u!224 &3135625391757224365
RectTransform:
m_ObjectHideFlags: 0

View File

@ -7987,7 +7987,7 @@ RectTransform:
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0.5, y: 0}
m_AnchorMax: {x: 0.5, y: 0}
m_AnchoredPosition: {x: 0, y: -25}
m_AnchoredPosition: {x: 1.9000015, y: -11.699997}
m_SizeDelta: {x: 100, y: 40}
m_Pivot: {x: 0.5, y: 0}
--- !u!222 &3188577538349621724
@ -8040,7 +8040,7 @@ MonoBehaviour:
m_OnCullStateChanged:
m_PersistentCalls:
m_Calls: []
m_text: 56
m_text: Lv.56
m_isRightToLeft: 0
m_fontAsset: {fileID: 11400000, guid: ff9a33292f9ee2e4bb6b5beaa43eb505, type: 2}
m_sharedMaterial: {fileID: 2100000, guid: 002289864d757214bb9593da63a1ec8a, type: 2}
@ -8067,13 +8067,13 @@ MonoBehaviour:
m_faceColor:
serializedVersion: 2
rgba: 4294967295
m_fontSize: 36
m_fontSizeBase: 36
m_fontSize: 30
m_fontSizeBase: 30
m_fontWeight: 400
m_enableAutoSizing: 0
m_fontSizeMin: 18
m_fontSizeMax: 72
m_fontStyle: 0
m_fontStyle: 1
m_HorizontalAlignment: 2
m_VerticalAlignment: 1024
m_textAlignment: 65535

View File

@ -436,7 +436,7 @@ function UIPvPView:Update_arena_UIData()
self.selfInfo.text_selfname.text.text = CommonUtil.GetVaildNickName(ManagerContainer.DataMgr.UserData
:GetUserNickname())
--更新玩家等级
self.selfInfo.head.text_level.text.text = tostring(ManagerContainer.DataMgr.UserData:GetRoleLv())
self.selfInfo.head.text_level.text.text = "Lv."..tostring(ManagerContainer.DataMgr.UserData:GetRoleLv())
--更新剩余挑战次数
local maxCnt = 5
@ -507,7 +507,7 @@ function UIPvPView:RefreshGridInfo(gridView, itemIndex, row, column)
end)
--等级
itemlua.head.text_level.text.text = tostring(rankData.playerLevel)
itemlua.head.text_level.text.text = "Lv."..tostring(rankData.playerLevel)
--名称
itemlua.text_name.text.text = CommonUtil.GetVaildNickName(rankData.playerName)
--分数