This commit is contained in:
puxuan 2025-10-27 18:35:17 +08:00
parent 897bd97fe4
commit 69dc46402f
23 changed files with 71 additions and 30 deletions

View File

@ -255,6 +255,10 @@ BIReport.ADS_CLICK_TYPE = {
AD_ACT_SEVEN_DAY_GIFT = "AdActSevenDayGift", AD_ACT_SEVEN_DAY_GIFT = "AdActSevenDayGift",
AD_ACT_SPRINT = "AdActSprint", -- 冲刺活动 AD_ACT_SPRINT = "AdActSprint", -- 冲刺活动
AD_SHOP_GOLD = "AdShopGold",
AD_DAILY_SHOP = "AdDailyShop",
AD_DAILY_SHOP_REFRESH = "AdDailyShopRefresh",
} }
BIReport.FIGHT_OPT_TYPE = { BIReport.FIGHT_OPT_TYPE = {

View File

@ -157,7 +157,7 @@ function DataManager:initWithServerData(data)
self.ShopData:init() self.ShopData:init()
self.ShopData:refreshDailyShop(data.mall_daily_store) self.ShopData:refreshDailyShop(data.mall_daily_store)
self.PrivilegeCardData:init(data.card) self.PrivilegeCardData:init(data.card)
-- self.ShopData:refreshGoldShop(data.mall_gold) self.ShopData:refreshGoldShop(data.mall_gold)
-- self.ShopData:refreshEmblemShop(data.mall_mythic_store) -- self.ShopData:refreshEmblemShop(data.mall_mythic_store)
-- self.ShopData:initVit(data.energy_limit) -- self.ShopData:initVit(data.energy_limit)
-- self.ShopData:initThirdPayOrder(data.third_pay) -- self.ShopData:initThirdPayOrder(data.third_pay)

View File

@ -131,6 +131,7 @@ ModuleManager.MODULE_KEY = {
-- 七天乐 -- 七天乐
ACT_SEVENDAY = "act_sevenday", ACT_SEVENDAY = "act_sevenday",
ACT_SEVENDAY_2 = "act_sevenday_2", ACT_SEVENDAY_2 = "act_sevenday_2",
ACT_GOGOGO = "act_gogogo",
-- 免广告卡 -- 免广告卡
CARD_AD = "card_ad", CARD_AD = "card_ad",
DUNGEON_GOLD = "dungeon_gold", -- 金币副本 DUNGEON_GOLD = "dungeon_gold", -- 金币副本

View File

@ -960,6 +960,7 @@ local LocalizationGlobalConst =
FUND_CHAPTER_TAG_DESC_20 = "FUND_CHAPTER_TAG_DESC_20", FUND_CHAPTER_TAG_DESC_20 = "FUND_CHAPTER_TAG_DESC_20",
FUND_CHAPTER_TAG_DESC_21 = "FUND_CHAPTER_TAG_DESC_21", FUND_CHAPTER_TAG_DESC_21 = "FUND_CHAPTER_TAG_DESC_21",
FUND_CHAPTER_TAG_DESC_22 = "FUND_CHAPTER_TAG_DESC_22", FUND_CHAPTER_TAG_DESC_22 = "FUND_CHAPTER_TAG_DESC_22",
TALENT_HELP = "TALENT_HELP",
} }
return LocalizationGlobalConst return LocalizationGlobalConst

View File

@ -960,6 +960,7 @@ local localization_global =
["FUND_CHAPTER_TAG_DESC_20"] = "关卡基金20", ["FUND_CHAPTER_TAG_DESC_20"] = "关卡基金20",
["FUND_CHAPTER_TAG_DESC_21"] = "关卡基金21", ["FUND_CHAPTER_TAG_DESC_21"] = "关卡基金21",
["FUND_CHAPTER_TAG_DESC_22"] = "关卡基金22", ["FUND_CHAPTER_TAG_DESC_22"] = "关卡基金22",
["TALENT_HELP"] = "天赋帮助",
} }
return localization_global return localization_global

View File

@ -141,7 +141,7 @@ local talent = {
["qlt"]=3, ["qlt"]=3,
["attr"]={ ["attr"]={
{ {
["type"]="attr_atkp_all", ["type"]="attr_hpp_all",
["num"]=500 ["num"]=500
} }
}, },

View File

@ -509,15 +509,6 @@ GConst.HERO_FRAME_BG_QLT = {
[7] = "hero_frame_bg_7", [7] = "hero_frame_bg_7",
} }
GConst.QLT_COLOR = {
[1] = "#aef1ff",
[2] = "#9aff9c",
[3] = "#aef1ff",
[4] = "#f6aeff",
[5] = "#f6aeff",
[6] = "#f6aeff",
}
-- 没描边的文本颜色 -- 没描边的文本颜色
GConst.QLT_COLOR_NO_OUTLINE = { GConst.QLT_COLOR_NO_OUTLINE = {
[0] = "#FFFFFF", [0] = "#FFFFFF",

View File

@ -1937,7 +1937,7 @@ end
-- 通用 -- 通用
function GFunc.getQltColor(qlt) function GFunc.getQltColor(qlt)
qlt = qlt or GConst.QLT_TYPE.NORMAL qlt = qlt or GConst.QLT_TYPE.NORMAL
return GConst.QLT_COLOR[qlt] return GConst.QUALITY_TYPE[qlt]
end end
-- 无描边用 -- 无描边用

View File

@ -201,6 +201,12 @@ function BattleManager:onSelectSkill(skillId, value, pos)
self.battleController:onSelectSkill(skillId, value, pos) self.battleController:onSelectSkill(skillId, value, pos)
end end
function BattleManager:clearSnap()
if self.battleController then
self.battleController:clearSnap()
end
end
function BattleManager:endBattleAndExit(proactivelyExit) function BattleManager:endBattleAndExit(proactivelyExit)
if self.battleController then if self.battleController then
if proactivelyExit then if proactivelyExit then

View File

@ -1530,6 +1530,8 @@ function BattleBaseController:calculateCurElimination(onlyCheck)
lineCount = lineCount + 1 lineCount = lineCount + 1
linkElementType = elementType linkElementType = elementType
end end
elseif info.isUniversal then
self.elementTypeMap[0] = (self.elementTypeMap[0] or 0) + 1
end end
end end
if entity:getEffectType() and info.isIdle then if entity:getEffectType() and info.isIdle then
@ -2356,6 +2358,7 @@ function BattleBaseController:getRandomGridInfo()
if self.atkTeam:checkUniversal() and not self.battleData:hadUniversalGrid() then if self.atkTeam:checkUniversal() and not self.battleData:hadUniversalGrid() then
isUniversal = true isUniversal = true
end end
isUniversal = true
end end
return {gridType = gridType, elementType = elementType, isUniversal = isUniversal} return {gridType = gridType, elementType = elementType, isUniversal = isUniversal}
@ -3371,6 +3374,10 @@ function BattleBaseController:clear()
end end
end end
function BattleBaseController:clearSnap()
BATTLE_SNAPSHOT_HELPER:clearSnap(self)
end
function BattleBaseController:endBattleAndExit() function BattleBaseController:endBattleAndExit()
BATTLE_SNAPSHOT_HELPER:clearSnap(self) BATTLE_SNAPSHOT_HELPER:clearSnap(self)
ModuleManager.BattleManager:exitBattle() ModuleManager.BattleManager:exitBattle()

View File

@ -26,8 +26,7 @@ function BattleControllerDailyChallenge:getChapterConfig()
end end
function BattleControllerDailyChallenge:getChapterId() function BattleControllerDailyChallenge:getChapterId()
-- return DataManager.DailyChallengeData:getChapterDailyId() return DataManager.DailyChallengeData:getChapterDailyId()
return DataManager.DailyChallengeData:getDiffLv()
end end
function BattleControllerDailyChallenge:getBuffs() function BattleControllerDailyChallenge:getBuffs()

View File

@ -265,6 +265,8 @@ function BattleBoardTouchHelper:clearSequenceByPosId(posId)
end end
end end
end end
else
currElementType = gridEntity:getElementType(skillEntity, true)
end end
local _, skillPosId = self.battleData:getSequenceHadSkill() local _, skillPosId = self.battleData:getSequenceHadSkill()

View File

@ -127,6 +127,7 @@ function ChapterManager:endFightFinish(result)
end end
end end
ModuleManager.BattleManager:clearSnap()
ModuleManager.BattleManager:showBattleResultUI(GConst.BattleConst.BATTLE_TYPE.STAGE, newRewards, reqData.combatReport, mysteryBoxIdx, nil, true) ModuleManager.BattleManager:showBattleResultUI(GConst.BattleConst.BATTLE_TYPE.STAGE, newRewards, reqData.combatReport, mysteryBoxIdx, nil, true)
DataManager.ChapterData:fightChapter(reqData.chapter_id, result.max_chapter_id, result.max_wave, reqData.mystery_box_idx) DataManager.ChapterData:fightChapter(reqData.chapter_id, result.max_chapter_id, result.max_wave, reqData.mystery_box_idx)
DataManager.ChapterData:clearChapterBoxState() DataManager.ChapterData:clearChapterBoxState()

View File

@ -72,7 +72,7 @@ function ArenaUI:onLoadRootComplete()
self.btnHelp:addClickListener(function() self.btnHelp:addClickListener(function()
local params = { local params = {
type = GConst.TipsConst.HELP_TIPS_TYPE.ARENA, type = GConst.TipsConst.HELP_TIPS_TYPE.NORMAL,
title = I18N:getGlobalText(I18N.GlobalConst.ARENA_DESC_4), title = I18N:getGlobalText(I18N.GlobalConst.ARENA_DESC_4),
desc = I18N:getGlobalText(I18N.GlobalConst.ARENA_DESC_HELP), desc = I18N:getGlobalText(I18N.GlobalConst.ARENA_DESC_HELP),
} }

View File

@ -381,7 +381,7 @@ function BattleResultUI:refreshRewards()
cell:showRightUpIcon(index <= self.mysteryBoxIdx, GConst.ATLAS_PATH.COMMON, "common_chest_1") cell:showRightUpIcon(index <= self.mysteryBoxIdx, GConst.ATLAS_PATH.COMMON, "common_chest_1")
cell:showFirstPass(index <= self.firstPassIdx) cell:showFirstPass(index <= self.firstPassIdx)
if self.isDouble then if self.isDouble then
cell:setNumTx(self.rewards[index].num * 2) cell:setNumTxDouble()
end end
end) end)
if self:hasArenaBoxNode() then if self:hasArenaBoxNode() then

View File

@ -99,11 +99,12 @@ function BattleSkillSelectComp:refreshBtns()
getAllAdCount = GFunc.getConstIntValue("daily_challenge_ads_getall_rogue_limit") getAllAdCount = GFunc.getConstIntValue("daily_challenge_ads_getall_rogue_limit")
end end
local allCount = battleController.battleData:getAllSkillCount() local allCount = battleController.battleData:getAllSkillCount()
local showAll = false
local showAd = false
if getAllAdCount > allCount then if getAllAdCount > allCount then
adBtn:setAnchoredPositionX(-102)
allBtn:setActive(true) allBtn:setActive(true)
showAll = true
else else
adBtn:setAnchoredPositionX(0)
allBtn:setActive(false) allBtn:setActive(false)
end end
@ -118,9 +119,18 @@ function BattleSkillSelectComp:refreshBtns()
local adCount = battleController.battleData:getADRefreshSkillCount() local adCount = battleController.battleData:getADRefreshSkillCount()
if cfgAdCount > adCount then if cfgAdCount > adCount then
adBtn:setActive(true) adBtn:setActive(true)
showAd = true
else else
adBtn:setActive(false) adBtn:setActive(false)
end end
if showAll and showAd then
allBtn:setAnchoredPositionX(102)
adBtn:setAnchoredPositionX(-102)
elseif showAll then
allBtn:setAnchoredPositionX(0)
elseif showAd then
adBtn:setAnchoredPositionX(0)
end
end end
function BattleSkillSelectComp:getNewRandomSkill(parmas) function BattleSkillSelectComp:getNewRandomSkill(parmas)

View File

@ -111,6 +111,7 @@ function RewardCell:_refreshItem(info, count)
else else
self.numTx:setText(GFunc.intToString(count)) self.numTx:setText(GFunc.intToString(count))
end end
self.count = count
else else
self.numTx:setText(GConst.EMPTY_STRING) self.numTx:setText(GConst.EMPTY_STRING)
end end
@ -175,6 +176,17 @@ function RewardCell:setIconSprite(atlas, res)
self.icon:setSprite(atlas, res) self.icon:setSprite(atlas, res)
end end
function RewardCell:setNumTxDouble()
if self.count then
local count = self.count * 2
if count > 100 then
self.numTx:setText(GFunc.num2Str(count))
else
self.numTx:setText(GFunc.intToString(count))
end
end
end
function RewardCell:setNumTx(str) function RewardCell:setNumTx(str)
self.numTx:setText(str) self.numTx:setText(str)
end end

View File

@ -95,7 +95,7 @@ function HeroSkinUI:refreshSelectSkin(selectId)
local qlt = DataManager.SkinData:getSkinCfg(self.selectSkinId).qlt local qlt = DataManager.SkinData:getSkinCfg(self.selectSkinId).qlt
self.bgQlt:setSprite(GConst.ATLAS_PATH.HERO, "hero_skin_bg_" .. qlt) self.bgQlt:setSprite(GConst.ATLAS_PATH.HERO, "hero_skin_bg_" .. qlt)
self.iconQlt:setSprite(GConst.ATLAS_PATH.HERO, "hero_skin_" .. qlt) self.iconQlt:setSprite(GConst.ATLAS_PATH.HERO, "hero_skin_" .. qlt)
self.txQlt:setText("<color=" .. GConst.QLT_COLOR[qlt] .. ">" .. I18N:getGlobalText("QLT_DESC_" .. qlt) .. "</color>") self.txQlt:setText("<color=" .. GConst.QUALITY_TYPE[qlt] .. ">" .. I18N:getGlobalText("QLT_DESC_" .. qlt) .. "</color>")
self.txName:setText(DataManager.SkinData:getName(self.selectSkinId)) self.txName:setText(DataManager.SkinData:getName(self.selectSkinId))
-- 属性 -- 属性

View File

@ -1,6 +1,6 @@
local SideBarActSprintCell = class("SideBarActSprintCell", SideBarBaseCell) local SideBarActSprintCell = class("SideBarActSprintCell", SideBarBaseCell)
function SideBarActSprintCell:getModuleKey() function SideBarActSprintCell:getModuleKey()
return ModuleManager.MODULE_KEY.ACTIVITY return ModuleManager.MODULE_KEY.ACT_GOGOGO
end end
function SideBarActSprintCell:getIsOpen() function SideBarActSprintCell:getIsOpen()

View File

@ -58,6 +58,7 @@ function TalentMainUI:onLoadRootComplete()
uiMap["talent_ui.title_tx"]:setText(I18N:getGlobalText(I18N.GlobalConst.TALENT_DESC_1)) uiMap["talent_ui.title_tx"]:setText(I18N:getGlobalText(I18N.GlobalConst.TALENT_DESC_1))
uiMap["talent_ui.get_btn.text"]:setText(I18N:getGlobalText(I18N.GlobalConst.TALENT_DESC_2)) uiMap["talent_ui.get_btn.text"]:setText(I18N:getGlobalText(I18N.GlobalConst.TALENT_DESC_2))
uiMap["talent_ui.up_node.continue"]:setText(I18N:getGlobalText(I18N.GlobalConst.CLICK_CLOSE_DESC))
self.scrollRect = uiMap["talent_ui.bottom_bg.scrollrect"]:addLuaComponent(GConst.TYPEOF_LUA_CLASS.SCROLL_RECT_BASE) self.scrollRect = uiMap["talent_ui.bottom_bg.scrollrect"]:addLuaComponent(GConst.TYPEOF_LUA_CLASS.SCROLL_RECT_BASE)
self.scrollRect:addInitCallback(function() self.scrollRect:addInitCallback(function()
return TALENT_CELL return TALENT_CELL
@ -67,6 +68,16 @@ function TalentMainUI:onLoadRootComplete()
end) end)
self.scrollRect:clearCells() self.scrollRect:clearCells()
local helpBtn = uiMap["talent_ui.top_bg.help_btn"]
helpBtn:addClickListener(function()
ModuleManager.TipsManager:showDescTips(I18N:getGlobalText(I18N.GlobalConst.TALENT_HELP), helpBtn)
local params = {
type = GConst.TipsConst.HELP_TIPS_TYPE.NORMAL,
desc = I18N:getGlobalText(I18N.GlobalConst.TALENT_HELP),
}
ModuleManager.TipsManager:showHelpTips(params)
end)
self.getBtn:addClickListener(function() self.getBtn:addClickListener(function()
if not GFunc.checkCost(self.cfg.cost.id, self.cfg.cost.num, true) then if not GFunc.checkCost(self.cfg.cost.id, self.cfg.cost.num, true) then
return return

View File

@ -68,7 +68,7 @@ function ActSprintData:getSprintDetailData(actId)
end end
function ActSprintData:getIsOpen() function ActSprintData:getIsOpen()
if not ModuleManager:getIsOpen(ModuleManager.MODULE_KEY.ACTIVITY, true) then if not ModuleManager:getIsOpen(ModuleManager.MODULE_KEY.ACT_GOGOGO, true) then
return false return false
end end

View File

@ -251,7 +251,7 @@ function ActSprintSummonData:syncedData()
end end
function ActSprintSummonData:getIsOpen() function ActSprintSummonData:getIsOpen()
if not ModuleManager:getIsOpen(ModuleManager.MODULE_KEY.ACTIVITY, true) then if not ModuleManager:getIsOpen(ModuleManager.MODULE_KEY.ACT_GOGOGO, true) then
return false return false
end end

View File

@ -140,14 +140,9 @@ function TalentData:_updateAllAttr()
-- 处理全局属性 -- 处理全局属性
local attr = {} local attr = {}
attr[GConst.ATTR_ALL.ATTR_ATK_ALL] = self.allAttr[GConst.ATTR_ALL.ATTR_ATK_ALL] for _, v in pairs(GConst.ATTR_ALL) do
attr[GConst.ATTR_ALL.ATTR_HP_ALL] = self.allAttr[GConst.ATTR_ALL.ATTR_HP_ALL] attr[v] = self.allAttr[v]
attr[GConst.ATTR_ALL.ATTR_DMGDEC_ALL] = self.allAttr[GConst.ATTR_ALL.ATTR_DMGDEC_ALL] end
attr[GConst.ATTR_ALL.ATTR_CRIT_ALL] = self.allAttr[GConst.ATTR_ALL.ATTR_CRIT_ALL]
attr[GConst.ATTR_ALL.ATTR_CRIT_TIME_ALL] = self.allAttr[GConst.ATTR_ALL.ATTR_CRIT_TIME_ALL]
attr[GConst.ATTR_ALL.ATTR_NORMAL_HURTP_ALL] = self.allAttr[GConst.ATTR_ALL.ATTR_NORMAL_HURTP_ALL]
attr[GConst.ATTR_ALL.ATTR_SKILL_HURTP_ALL] = self.allAttr[GConst.ATTR_ALL.ATTR_SKILL_HURTP_ALL]
attr[GConst.ATTR_ALL.ATTR_ATKP_ALL] = self.allAttr[GConst.ATTR_ALL.ATTR_ATKP_ALL]
DataManager.HeroData:setTalentAttr(attr) DataManager.HeroData:setTalentAttr(attr)