限时礼包的文案描述

onepiece_demo_arena
xiejun 2024-01-16 15:19:41 +08:00
parent e9461ad1cc
commit 84d6b267fe
2 changed files with 6 additions and 2 deletions

View File

@ -9844,7 +9844,7 @@ GameObject:
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
m_IsActive: 0
--- !u!224 &6176893569939801487
RectTransform:
m_ObjectHideFlags: 0
@ -39021,7 +39021,7 @@ RectTransform:
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0.5, y: 0.5}
m_AnchorMax: {x: 0.5, y: 0.5}
m_AnchoredPosition: {x: 0, y: -19.3}
m_AnchoredPosition: {x: -147, y: -80}
m_SizeDelta: {x: 1080, y: 191.6}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!222 &1344780566390581011

View File

@ -41,6 +41,8 @@ function this:InitComponent()
this.UI_effect_DailyRechargePanel_particle = Util.GetGameObject(self.gameObject, "bg1/UI_effect_DailyRechargePanel_particle")
this.times = Util.GetGameObject(self.gameObject,"show/timesLeft"):GetComponent("Text")
this.tip = Util.GetGameObject(self.gameObject,"show/tip"):GetComponent("Text")
this.desImage = Util.GetGameObject(self.gameObject,"Image")
end
--绑定事件(用于子类重写)
@ -196,8 +198,10 @@ function this:Refresh()
curGiftId = rechargeData.goodsId
if curType == 1 then
this.tip.text = string.format(activityType[curType].Text,RechargeConfig[curGiftId].Desc)
this.desImage:SetActive(false)
else
this.tip.text = string.format(activityType[curType].Text)
this.desImage:SetActive(true)
end
this.arrowsLeft:SetActive(num > 1)