排行榜备战界面修改

wangzhenxing 2023-11-11 18:05:39 +08:00
parent 469db60439
commit 45afafba01
4 changed files with 571 additions and 599 deletions

View File

@ -44959,7 +44959,7 @@ RectTransform:
m_AnchorMin: {x: 1, y: 1}
m_AnchorMax: {x: 1, y: 1}
m_AnchoredPosition: {x: -975, y: -187}
m_SizeDelta: {x: 126, y: 126}
m_SizeDelta: {x: 153, y: 154}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!222 &5508371999346996025
CanvasRenderer:
@ -44989,7 +44989,7 @@ MonoBehaviour:
m_Calls: []
m_TypeName: UnityEngine.UI.MaskableGraphic+CullStateChangedEvent, UnityEngine.UI,
Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
m_Sprite: {fileID: 21300000, guid: 6fe1d80ff9e2c794abed8b923bc7d9c4, type: 3}
m_Sprite: {fileID: 21300000, guid: d413e387932e7e24dbf684b374b0ffc2, type: 3}
m_Type: 0
m_PreserveAspect: 0
m_FillCenter: 1

View File

@ -50732,7 +50732,7 @@ MonoBehaviour:
m_Top: 18
m_Bottom: 0
m_ChildAlignment: 3
m_Spacing: 253.89
m_Spacing: 220
m_ChildForceExpandWidth: 0
m_ChildForceExpandHeight: 0
m_ChildControlWidth: 0
@ -55614,7 +55614,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: -737.8001, y: 82}
m_AnchoredPosition: {x: -737.80005, y: 82}
m_SizeDelta: {x: 0, y: 164}
m_Pivot: {x: 0, y: 0.5}
--- !u!114 &2024492445122746112
@ -63898,7 +63898,7 @@ RectTransform:
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 1, y: 0}
m_AnchorMax: {x: 1, y: 0}
m_AnchoredPosition: {x: -88.5, y: 90}
m_AnchoredPosition: {x: -72.467, y: 78}
m_SizeDelta: {x: 150, y: 150}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!222 &407204281992633676

View File

@ -12,8 +12,8 @@ local npc
local TabBox = require("Modules/Common/TabBox")
local _TabData={ [1] = { [1] = {default = "r_hero_xuanze_002", select = "r_hero_xuanze_001", name = "进度",RankingSData = rankKingList[15]},
[2] = { default = "r_hero_xuanze_002", select = "r_hero_xuanze_001", name = "星级",RankingSData = rankKingList[16] },
local _TabData={ [1] = { [1] = {default = "UI_hz_gonghui_19", select = "UI_hz_gonghui_18", name = "进度",RankingSData = rankKingList[15]},
[2] = { default = "UI_hz_gonghui_19", select = "UI_hz_gonghui_18", name = "星级",RankingSData = rankKingList[16] },
}
}
local _TabFontColor = { default = Color.New(130 / 255, 128 / 255, 120 / 255, 1),
@ -118,7 +118,9 @@ end
-- tab节点显示自定义
function this.TabAdapter(tab, index, status)
local tabLab = Util.GetGameObject(tab, "Text")
Util.GetGameObject(tab,"Image"):GetComponent("Image").sprite = this.spLoader:LoadSprite(_TabData[TabDataIndex][index][status])
local img=Util.GetGameObject(tab,"Image"):GetComponent("Image")
img.sprite = this.spLoader:LoadSprite(_TabData[TabDataIndex][index][status])
img:SetNativeSize()
tabLab:GetComponent("Text").text = _TabData[TabDataIndex][index].name
tabLab:GetComponent("Text").color = _TabFontColor[status]
end