dev_chengFeng
parent
827c8d9165
commit
ce1d7014f3
|
@ -76029,7 +76029,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: -42.2, y: 0}
|
||||
m_AnchoredPosition: {x: -53, y: 0}
|
||||
m_SizeDelta: {x: 100, y: 30}
|
||||
m_Pivot: {x: 0.5, y: 0.5}
|
||||
--- !u!222 &2941437553828317552
|
||||
|
@ -76067,13 +76067,13 @@ MonoBehaviour:
|
|||
m_BestFit: 0
|
||||
m_MinSize: 3
|
||||
m_MaxSize: 40
|
||||
m_Alignment: 5
|
||||
m_Alignment: 3
|
||||
m_AlignByGeometry: 0
|
||||
m_RichText: 1
|
||||
m_HorizontalOverflow: 1
|
||||
m_VerticalOverflow: 1
|
||||
m_LineSpacing: 1
|
||||
m_Text: 12:59:59
|
||||
m_Text: 23:59:59
|
||||
LanguageIndex: 0
|
||||
--- !u!1 &8143265360364927268
|
||||
GameObject:
|
||||
|
|
|
@ -505,7 +505,7 @@ SHOP_TYPE = {
|
|||
TOP_MATCH_SHOP = 21, -- 巅峰赛商店
|
||||
FINDFAIRY_GIFT=22, --寻仙限时礼包
|
||||
BUYCOIN_SHOP=57, --点金商店
|
||||
SOULBOX_SHOP=58, --宝囊限时商店
|
||||
QIANKUNBOX_SHOP=58, --宝囊限时商店
|
||||
}
|
||||
|
||||
PropertyTypeIconDef = {
|
||||
|
|
|
@ -101,8 +101,20 @@ function QianKunBox:OnShow()
|
|||
if not self.shopView then
|
||||
self.shopView = SubUIManager.Open(SubUIConfig.ShopView, self.content.transform)
|
||||
end
|
||||
self.shopView:ShowShop(SHOP_TYPE.SOULBOX_SHOP,orginLayer)
|
||||
self.shopView:ShowShop(SHOP_TYPE.QIANKUNBOX_SHOP,orginLayer)
|
||||
self.live = poolManager:LoadLive("live2d_ui_h_52_xx_pf1", self.live.transform, Vector3.New(0.25,0.25,0.25), Vector3.New(123,214,0))
|
||||
|
||||
--时间
|
||||
local timeDown=CalculateSecondsNowTo_N_OClock(5)--领取按钮的倒计时
|
||||
self.btnTime.text = TimeToHMS(timeDown)
|
||||
self.shopData = ShopManager.GetShopDataByType(SHOP_TYPE.QIANKUNBOX_SHOP)--获取活动信息
|
||||
self.leftUpTime.text = TimeToDHMS(self.shopData.endTime - GetTimeStamp())--活动结束的倒计时
|
||||
self.timer = Timer.New(function()
|
||||
self.leftUpTime.text = TimeToDHMS(self.shopData.endTime - GetTimeStamp())
|
||||
self.btnTime.text = TimeToHMS(timeDown)
|
||||
timeDown = timeDown -1
|
||||
end, 1, -1, true)
|
||||
self.timer:Start()
|
||||
end
|
||||
|
||||
function QianKunBox:OnSortingOrderChange(_sortingOrder)
|
||||
|
@ -112,6 +124,10 @@ end
|
|||
function QianKunBox:OnHide()
|
||||
self.gameObject:SetActive(false)
|
||||
self.detail.gameObject:SetActive(false)
|
||||
if self.timer then
|
||||
self.timer:Stop()
|
||||
self.timer = nil
|
||||
end
|
||||
end
|
||||
|
||||
function QianKunBox:OnDestroy()
|
||||
|
|
Loading…
Reference in New Issue