Merge branch 'dev' of http://git.juzugame.com/b6-client/b6-lua into dev
This commit is contained in:
commit
523397f39a
@ -206,8 +206,6 @@ local LocalizationGlobalConst =
|
|||||||
BIND_ACCOUNT_FAILED = "BIND_ACCOUNT_FAILED",
|
BIND_ACCOUNT_FAILED = "BIND_ACCOUNT_FAILED",
|
||||||
CHANGE_ACCOUNT_FAILED = "CHANGE_ACCOUNT_FAILED",
|
CHANGE_ACCOUNT_FAILED = "CHANGE_ACCOUNT_FAILED",
|
||||||
SUMMON_SKIP = "SUMMON_SKIP",
|
SUMMON_SKIP = "SUMMON_SKIP",
|
||||||
CHANGE_ACCOUNT_FAILED_2 = "CHANGE_ACCOUNT_FAILED_2",
|
|
||||||
MAIL_COUNTDOWN = "MAIL_COUNTDOWN",
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return LocalizationGlobalConst
|
return LocalizationGlobalConst
|
||||||
@ -206,8 +206,6 @@ local localization_global =
|
|||||||
["BIND_ACCOUNT_FAILED"] = "账号绑定失败,请重试",
|
["BIND_ACCOUNT_FAILED"] = "账号绑定失败,请重试",
|
||||||
["CHANGE_ACCOUNT_FAILED"] = "账号切换失败,请重试",
|
["CHANGE_ACCOUNT_FAILED"] = "账号切换失败,请重试",
|
||||||
["SUMMON_SKIP"] = "跳过",
|
["SUMMON_SKIP"] = "跳过",
|
||||||
["CHANGE_ACCOUNT_FAILED_2"] = "当前账号已是目标账号,无需切换",
|
|
||||||
["MAIL_COUNTDOWN"] = "{0}小时到期",
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return localization_global
|
return localization_global
|
||||||
@ -29,25 +29,25 @@ ShopConst.MAIN_PAGE_TYPE = {
|
|||||||
|
|
||||||
ShopConst.GEM_ICON_NAME = {
|
ShopConst.GEM_ICON_NAME = {
|
||||||
[1] = "shop_diamond_1",
|
[1] = "shop_diamond_1",
|
||||||
[2] = "shop_diamond_1",
|
[2] = "shop_diamond_2",
|
||||||
[3] = "shop_diamond_2",
|
[3] = "shop_diamond_3",
|
||||||
[4] = "shop_diamond_3",
|
[4] = "shop_diamond_4",
|
||||||
[5] = "shop_diamond_4",
|
[5] = "shop_diamond_5",
|
||||||
[6] = "shop_diamond_5",
|
[6] = "shop_diamond_6",
|
||||||
[7] = "shop_diamond_6",
|
[7] = "shop_diamond_7",
|
||||||
[8] = "shop_diamond_7",
|
[8] = "shop_diamond_8",
|
||||||
[9] = "shop_diamond_8",
|
[9] = "shop_diamond_9",
|
||||||
[10] = "shop_diamond_8",
|
[10] = "shop_diamond_9",
|
||||||
[11] = "shop_diamond_8",
|
[11] = "shop_diamond_9",
|
||||||
[12] = "shop_diamond_8",
|
[12] = "shop_diamond_9",
|
||||||
[13] = "shop_diamond_8",
|
[13] = "shop_diamond_9",
|
||||||
[14] = "shop_diamond_8",
|
[14] = "shop_diamond_9",
|
||||||
[15] = "shop_diamond_8",
|
[15] = "shop_diamond_9",
|
||||||
[16] = "shop_diamond_8",
|
[16] = "shop_diamond_9",
|
||||||
[17] = "shop_diamond_8",
|
[17] = "shop_diamond_9",
|
||||||
[18] = "shop_diamond_8",
|
[18] = "shop_diamond_9",
|
||||||
[19] = "shop_diamond_8",
|
[19] = "shop_diamond_9",
|
||||||
[20] = "shop_diamond_8",
|
[20] = "shop_diamond_9",
|
||||||
}
|
}
|
||||||
ShopConst.COIN_ICON_NAME = {
|
ShopConst.COIN_ICON_NAME = {
|
||||||
[1] = "shop_species_1",
|
[1] = "shop_species_1",
|
||||||
|
|||||||
@ -105,6 +105,9 @@ end
|
|||||||
|
|
||||||
function DailyChallengeComp:refreshBoss()
|
function DailyChallengeComp:refreshBoss()
|
||||||
local curBossInfo = DataManager.DailyChallengeData:getFinalBossInfo()
|
local curBossInfo = DataManager.DailyChallengeData:getFinalBossInfo()
|
||||||
|
if not curBossInfo then
|
||||||
|
return
|
||||||
|
end
|
||||||
if self.curModelId == curBossInfo.model_id then
|
if self.curModelId == curBossInfo.model_id then
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|||||||
@ -18,6 +18,7 @@ local REWARD_CELL_WIDTH = 160
|
|||||||
local REWARD_CELL_HEIGHT = 250
|
local REWARD_CELL_HEIGHT = 250
|
||||||
|
|
||||||
local BASE_CONTENT_HEIGHT = 600
|
local BASE_CONTENT_HEIGHT = 600
|
||||||
|
local JUMP_TIME_SCALE = 1000
|
||||||
|
|
||||||
local POSITION_X_DATA = {
|
local POSITION_X_DATA = {
|
||||||
[1] = {0},
|
[1] = {0},
|
||||||
@ -49,6 +50,10 @@ function BoxRewardUI:ctor(params)
|
|||||||
for id, count in pairs(fragmentMap) do
|
for id, count in pairs(fragmentMap) do
|
||||||
table.insert(self.fragmentRewards, {id = id, count = count})
|
table.insert(self.fragmentRewards, {id = id, count = count})
|
||||||
end
|
end
|
||||||
|
|
||||||
|
for i = 1, 10 do
|
||||||
|
table.insert(self.fragmentRewards, {id = 12001, count = 100})
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
function BoxRewardUI:isFullScreen()
|
function BoxRewardUI:isFullScreen()
|
||||||
@ -77,13 +82,13 @@ function BoxRewardUI:onLoadRootComplete()
|
|||||||
end
|
end
|
||||||
|
|
||||||
self.closeTx = self.uiMap["box_reward_ui.close_tx"]
|
self.closeTx = self.uiMap["box_reward_ui.close_tx"]
|
||||||
self.closeTx:setText(I18N:getGlobalText(I18N.GlobalConst.CLICK_CLOSE_DESC))
|
|
||||||
self:refreshCloseText()
|
self:refreshCloseText()
|
||||||
|
|
||||||
self.mask = self.uiMap["box_reward_ui.mask"]
|
self.mask = self.uiMap["box_reward_ui.mask"]
|
||||||
self.mask:addClickListener(function()
|
self.mask:addClickListener(function()
|
||||||
-- 动画期间不可关闭
|
-- 动画期间不可关闭
|
||||||
if self.isPlayAni then
|
if self.isPlayAni then
|
||||||
|
self:jump()
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
self:closeUI()
|
self:closeUI()
|
||||||
@ -174,6 +179,9 @@ function BoxRewardUI:onLoadRootComplete()
|
|||||||
self.maxIdx = math.ceil(rewardCount / CELL_NUM)
|
self.maxIdx = math.ceil(rewardCount / CELL_NUM)
|
||||||
end
|
end
|
||||||
-- 播放表现
|
-- 播放表现
|
||||||
|
if not self.cellSeqs then
|
||||||
|
self.cellSeqs = {}
|
||||||
|
end
|
||||||
for idx = 1, rewardCount do
|
for idx = 1, rewardCount do
|
||||||
local cell = self.rewardCells[idx]
|
local cell = self.rewardCells[idx]
|
||||||
self:playCellAction(cell, idx)
|
self:playCellAction(cell, idx)
|
||||||
@ -197,6 +205,7 @@ function BoxRewardUI:playCellAction(cell, idx)
|
|||||||
canvasGroup.alpha = 0
|
canvasGroup.alpha = 0
|
||||||
|
|
||||||
local seq = cell.baseObject:createBindTweenSequence()
|
local seq = cell.baseObject:createBindTweenSequence()
|
||||||
|
table.insert(self.cellSeqs, seq)
|
||||||
local tween = canvasGroup:DOFade(1, FADE_TIME)
|
local tween = canvasGroup:DOFade(1, FADE_TIME)
|
||||||
seq:AppendInterval(delayTime)
|
seq:AppendInterval(delayTime)
|
||||||
tween:SetEase(CS.DG.Tweening.Ease.InOutSine)
|
tween:SetEase(CS.DG.Tweening.Ease.InOutSine)
|
||||||
@ -218,6 +227,9 @@ end
|
|||||||
function BoxRewardUI:turnToNext(idx)
|
function BoxRewardUI:turnToNext(idx)
|
||||||
if self:isClosed() then
|
if self:isClosed() then
|
||||||
return
|
return
|
||||||
|
end
|
||||||
|
if not self.isPlayAni then
|
||||||
|
return
|
||||||
end
|
end
|
||||||
if not self.showAction or idx ~= self.turnIdx * CELL_NUM then
|
if not self.showAction or idx ~= self.turnIdx * CELL_NUM then
|
||||||
return
|
return
|
||||||
@ -259,8 +271,41 @@ function BoxRewardUI:getCellDelayTime(idx)
|
|||||||
return self.cellDelayTime[idx]
|
return self.cellDelayTime[idx]
|
||||||
end
|
end
|
||||||
|
|
||||||
|
function BoxRewardUI:jump()
|
||||||
|
self.isPlayAni = false
|
||||||
|
|
||||||
|
if self.cellSeqs then
|
||||||
|
for _, cellSeq in ipairs(self.cellSeqs) do
|
||||||
|
cellSeq.timeScale = JUMP_TIME_SCALE
|
||||||
|
end
|
||||||
|
self.cellSeqs = nil
|
||||||
|
end
|
||||||
|
if self.contentSeq then
|
||||||
|
self.contentSeq.timeScale = JUMP_TIME_SCALE
|
||||||
|
end
|
||||||
|
|
||||||
|
-- 强制刷新一次表现
|
||||||
|
local rewardCount = #self.fragmentRewards
|
||||||
|
for idx = 1, rewardCount do
|
||||||
|
local cell = self.rewardCells[idx]
|
||||||
|
local canvasGroup = cell.baseObject:getComponent(GConst.TYPEOF_UNITY_CLASS.CANVAS_GROUP)
|
||||||
|
if not canvasGroup then
|
||||||
|
canvasGroup = cell.baseObject:addComponent(GConst.TYPEOF_UNITY_CLASS.CANVAS_GROUP)
|
||||||
|
end
|
||||||
|
canvasGroup.alpha = 1
|
||||||
|
end
|
||||||
|
self.scrollRectContent:setAnchoredPositionY(self.maxScrollContentHeight - BASE_CONTENT_HEIGHT)
|
||||||
|
self.turnIdx = self.maxIdx
|
||||||
|
self.showAction = false
|
||||||
|
self:refreshCloseText()
|
||||||
|
end
|
||||||
|
|
||||||
function BoxRewardUI:refreshCloseText()
|
function BoxRewardUI:refreshCloseText()
|
||||||
self.closeTx:setVisible(not self.isPlayAni)
|
if self.isPlayAni then
|
||||||
|
self.closeTx:setText(I18N:getGlobalText(I18N.GlobalConst.SUMMON_SKIP))
|
||||||
|
else
|
||||||
|
self.closeTx:setText(I18N:getGlobalText(I18N.GlobalConst.CLICK_CLOSE_DESC))
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
return BoxRewardUI
|
return BoxRewardUI
|
||||||
@ -128,6 +128,9 @@ function DailyChallengeData:getFinalBossInfo()
|
|||||||
return
|
return
|
||||||
end
|
end
|
||||||
local mapCfg = self:getMapConfig()
|
local mapCfg = self:getMapConfig()
|
||||||
|
if not mapCfg then
|
||||||
|
return
|
||||||
|
end
|
||||||
return ConfigManager:getConfig("monster")[mapCfg.monster[#mapCfg.monster]]
|
return ConfigManager:getConfig("monster")[mapCfg.monster[#mapCfg.monster]]
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user