玲珑宝镜修改提交

dev_chengFeng
jiaoyangna 2021-06-28 18:50:18 +08:00
parent 9973defbd8
commit 6805994f8f
2 changed files with 10 additions and 9 deletions

View File

@ -51,7 +51,7 @@ function RewardPreviewPopup:OnOpen(type)
this.tabBox:SetActive(false)
this.previewRoot:SetActive(true)
this.grid.transform:DOAnchorPosY(0, 0, true)
if type == PRE_REWARD_POOL_TYPE.LUCK_FIND or type == PRE_REWARD_POOL_TYPE.UPPER_LUCK_FIND then
if type == PRE_REWARD_POOL_TYPE.LUCK_FIND or type == PRE_REWARD_POOL_TYPE.UPPER_LUCK_FIND or type == PRE_REWARD_POOL_TYPE.LINGLONG then
typeNum = 1
elseif type == PRE_REWARD_POOL_TYPE.GHOST_FIND then
typeNum = 4

View File

@ -50,10 +50,10 @@ function LingLongBaoJingPanel:InitComponent(gameObject)
self.propImage = Util.GetGameObject(self.luckyTurnPanel, "button/Prop/PropImage"):GetComponent("Image")--道具
self.propText =Util.GetGameObject(self.luckyTurnPanel, "button/Prop/PropText"):GetComponent("Text")
-- -- 奖励预览
-- self.btnPreview = Util.GetGameObject(self.gameObject, "button/previewBtn")
-- self.helpBtn = Util.GetGameObject(self.luckyTurnPanel,"button/helpBtn")
-- self.helpPosition = Util.GetGameObject(self.luckyTurnPanel,"BG/helpPos"):GetComponent("RectTransform").localPosition
-- 奖励预览
self.btnPreview = Util.GetGameObject(self.gameObject, "button/previewBtn")
self.helpBtn = Util.GetGameObject(self.luckyTurnPanel,"button/helpBtn")
self.helpPosition = Util.GetGameObject(self.luckyTurnPanel,"BG/helpPos"):GetComponent("RectTransform").localPosition
-- self.slider = Util.GetGameObject(self.luckyTurnPanel,"Slider")
-- self.luckyValueNum = Util.GetGameObject(self.slider, "LuckyValue/LuckyValueNum"):GetComponent("Text")--幸运值
@ -192,7 +192,7 @@ function LingLongBaoJingPanel:OnShow(_sortingOrder)
self.turnEffect = Timer.New()
self:RefreshTreasureType()
self:DelayMaskWithTime(1.5)
--self:DelayMaskWithTime(1.5)
self:SetPropShow()
--self:CreatBox()
self:SetTime()
@ -205,14 +205,15 @@ function LingLongBaoJingPanel:SetTime()
end
local time = ActivityGiftManager.GetTaskEndTime(ActivityTypeDef.lingLongBaoJing)
local remainTime = time - GetTimeStamp()
self.time.text = TimeToDHMS(remainTime)
self.timer = Time.New(function()
self.time.text = "活动倒计时:"..TimeToDHMS(remainTime)
self.timer = Timer.New(function()
remainTime = remainTime - 1
self.time.text = TimeToDHMS(remainTime)
self.time.text = "活动倒计时:"..TimeToDHMS(remainTime)
if remainTime <= 0 then
self:ClosePanel()
end
end,1,-1,false)
self.timer:Start()
end
--赋值
function LingLongBaoJingPanel:RefreshTreasureType()