修改日常的预制体和相关代码

dev_chengFeng
xiejun 2023-06-25 15:33:59 +08:00
parent 3144a8ae0b
commit 4ef694e42e
2 changed files with 5 additions and 5 deletions

View File

@ -1759,8 +1759,8 @@ RectTransform:
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 1, y: 0.5} m_AnchorMin: {x: 1, y: 0.5}
m_AnchorMax: {x: 1, y: 0.5} m_AnchorMax: {x: 1, y: 0.5}
m_AnchoredPosition: {x: -250, y: -92} m_AnchoredPosition: {x: -93.3, y: -78.42}
m_SizeDelta: {x: 635.1, y: 130.7} m_SizeDelta: {x: 791.8, y: 117.12}
m_Pivot: {x: 1, y: 0} m_Pivot: {x: 1, y: 0}
--- !u!114 &114987565653667408 --- !u!114 &114987565653667408
MonoBehaviour: MonoBehaviour:

View File

@ -15,9 +15,9 @@ local _TabData={ [1] = { default = "r_tongyong_xiaanniu_04", select = "r_tongyon
[2] = { default = "r_tongyong_xiaanniu_04", select = "r_tongyong_xiaanniu_03", name = Language[11316] ,type = ActivityTypeDef.TreasureOfSomeBody }, [2] = { default = "r_tongyong_xiaanniu_04", select = "r_tongyong_xiaanniu_03", name = Language[11316] ,type = ActivityTypeDef.TreasureOfSomeBody },
[3] = { default = "r_tongyong_xiaanniu_04", select = "r_tongyong_xiaanniu_03", name = Language[11317] ,type = ActivityTypeDef.TreasureOfSomeBody }, [3] = { default = "r_tongyong_xiaanniu_04", select = "r_tongyong_xiaanniu_03", name = Language[11317] ,type = ActivityTypeDef.TreasureOfSomeBody },
[4] = { default = "r_tongyong_xiaanniu_04", select = "r_tongyong_xiaanniu_03", name = Language[11318],type = -1 }, } [4] = { default = "r_tongyong_xiaanniu_04", select = "r_tongyong_xiaanniu_03", name = Language[11318],type = -1 }, }
local _TabFontColor = { default = Color.New(233 / 255, 233 / 255, 233 / 255, 112/255), local _TabFontColor = { default = Color.New(153 / 255, 175 / 255, 196/255, 1),
select = Color.New(100 / 255, 72 / 255, 24 / 255, 1), select = Color.New(100 / 255, 72 / 255, 24 / 255, 1),
lock = Color.New(233 / 255, 233 / 255, 233 / 255, 112/255)
} }
--子模块预设 --子模块预设
local contentPrefabs={} local contentPrefabs={}
@ -138,7 +138,7 @@ function this.TabAdapter(tab, index, status)
Util.GetGameObject(tab,"Image"):GetComponent("Image").sprite = this.spLoader:LoadSprite(_TabData[index][status]) Util.GetGameObject(tab,"Image"):GetComponent("Image").sprite = this.spLoader:LoadSprite(_TabData[index][status])
tabLab:GetComponent("Text").text = _TabData[index].name tabLab:GetComponent("Text").text = _TabData[index].name
tabLab:GetComponent("Text").color = _TabFontColor[status] tabLab:GetComponent("Text").color = _TabFontColor[status]
LogError( tabLab:GetComponent("Text").color.a.._TabData[index].name) LogError( tabLab:GetComponent("Text").color.a.._TabData[index].name..status)
if _TabData[index].type ~= -1 then if _TabData[index].type ~= -1 then
if ActivityGiftManager.IsQualifiled( _TabData[index].type) and ActivityGiftManager.GetActivityOpenStatus( _TabData[index].type) then if ActivityGiftManager.IsQualifiled( _TabData[index].type) and ActivityGiftManager.GetActivityOpenStatus( _TabData[index].type) then
tab.gameObject:SetActive(true) tab.gameObject:SetActive(true)