活动界面显示修改

wangzhenxing 2023-11-08 16:57:26 +08:00
parent ba00dc1132
commit d9722c0f9f
4 changed files with 1893 additions and 1770 deletions

View File

@ -24665,7 +24665,7 @@ MonoBehaviour:
m_Name:
m_EditorClassIdentifier:
m_Material: {fileID: 0}
m_Color: {r: 0, g: 0, b: 0, a: 0}
m_Color: {r: 0, g: 0, b: 0, a: 0.627451}
m_RaycastTarget: 1
m_OnCullStateChanged:
m_PersistentCalls:

View File

@ -219,7 +219,7 @@ function this.PageTabAdapter(tab, index, status)
actConfig = ConfigManager.TryGetConfigDataByThreeKey(ConfigName.ActivityGroups,"ActId",id,"PageType",this.activityType,"ActiveType",tabs[index].ActiveType)
end
if actConfig then
sprite = (status == "select" and actConfig.Icon[2] or actConfig.Icon[1])
sprite = actConfig.Icon[1]--(status == "select" and actConfig.Icon[2] or actConfig.Icon[1])
text.text=actConfig.Sesc
end
end
@ -227,7 +227,16 @@ function this.PageTabAdapter(tab, index, status)
-- if not sprite then
-- sprite = (status == "select" and tabs[index].Icon[2] or tabs[index].Icon[1])
-- end
-- img.sprite = this.spLoader:LoadSprite(sprite)
if sprite==nil or sprite=="" then
local num=1
if index %4==0 then
num=1
else
num=index%4
end
sprite="UI_hz_gonghui_3"..num
end
img.sprite = this.spLoader:LoadSprite(sprite)
-- img:SetNativeSize()
select:SetActive(status == "select")

View File

@ -72,6 +72,8 @@ function this:InitComponent(gameObject)
this.btnList = {}
for i = 1, 6 do
this.btnList[i] = Util.GetGameObject(this.selectBar,"Btn"..i)
local name=Util.GetGameObject(this.btnList[i],"Text"):GetComponent("Text")
name.text=PropertyType[i-1]
end
for index, config in ConfigPairs(hotRankConfig) do
if config.Open==1 then