调整一下逻辑
This commit is contained in:
parent
0e2bb42a25
commit
c6d10d8825
@ -1,5 +1,6 @@
|
||||
local LocalizationGlobalConst =
|
||||
{
|
||||
DUNGEON_ARMOR_DESC_17 = "DUNGEON_ARMOR_DESC_17",
|
||||
MAIN_BTN_1 = "MAIN_BTN_1",
|
||||
QLT_DESC_1 = "QLT_DESC_1",
|
||||
QLT_DESC_2 = "QLT_DESC_2",
|
||||
|
||||
@ -420,6 +420,7 @@ local localization_global =
|
||||
["DUNGEON_ARMOR_DESC_15"] = "请先购买本基金",
|
||||
["DUNGEON_ARMOR_DESC_16"] = "超值",
|
||||
["MOP_UP_DESC_3"] = "足够",
|
||||
["DUNGEON_ARMOR_DESC_17"] = "今日剩余挑战次数{0}"
|
||||
}
|
||||
|
||||
return localization_global
|
||||
@ -54,6 +54,7 @@ function DungeonArmorManager:rsqFight(result)
|
||||
local armorData = DataManager.DungeonData:getDungeonDataByType(ModuleManager.MODULE_KEY.DUNGEON_ARMOR)
|
||||
if result.reqData then
|
||||
armorData:setCurFightChapterId(result.reqData.chapter_armor_id)
|
||||
armorData:refreshFarmCount(result.reqData.chapter_armor_id, result.farm_count)
|
||||
end
|
||||
local params = {
|
||||
atkFormation = {}
|
||||
|
||||
@ -84,7 +84,7 @@ function DungeonArmorFarmUI:refreshBottom()
|
||||
GFunc.centerImgAndTx(vitIcon, costVit, 10)
|
||||
|
||||
uiMap["dungeon_armor_farm_ui.bg.bg.btn.desc"]:setText(I18N:getGlobalText(I18N.GlobalConst.SMASH))
|
||||
uiMap["dungeon_armor_farm_ui.bg.bg.desc_2"]:setText(I18N:getGlobalText(I18N.GlobalConst.DUNGEON_WEAPON_DESC_5, self.armorData:getRemianFarmCount(self.chapterId)))
|
||||
uiMap["dungeon_armor_farm_ui.bg.bg.desc_2"]:setText(I18N:getGlobalText(I18N.GlobalConst.DUNGEON_ARMOR_DESC_17, self.armorData:getRemianFarmCount(self.chapterId)))
|
||||
end
|
||||
|
||||
return DungeonArmorFarmUI
|
||||
@ -91,6 +91,7 @@ function DungeonArmorFightUI:refreshBottom()
|
||||
GFunc.centerImgAndTx(vitIcon, costVit, 10)
|
||||
|
||||
uiMap["dungeon_armor_fight_ui.bg.bg.btn.desc"]:setText(I18N:getGlobalText(I18N.GlobalConst.TASK_CHALLENGE))
|
||||
uiMap["dungeon_armor_fight_ui.bg.bg.desc_2"]:setText(I18N:getGlobalText(I18N.GlobalConst.DUNGEON_ARMOR_DESC_17, self.armorData:getRemianFarmCount(self.chapterId)))
|
||||
end
|
||||
|
||||
return DungeonArmorFightUI
|
||||
@ -43,6 +43,14 @@ function DungeonArmorEntity:refreshInfoOnFarm(chapterId, result)
|
||||
self:setDirty()
|
||||
end
|
||||
|
||||
function DungeonArmorEntity:refreshFarmCount(chapterId, count)
|
||||
if not count then
|
||||
return
|
||||
end
|
||||
self.farmCount[chapterId] = count
|
||||
self:setDirty()
|
||||
end
|
||||
|
||||
-- 更新礼包状态
|
||||
function DungeonArmorEntity:updateGift(giftInfo)
|
||||
DataManager.ShopData:initGift(PayManager.PURCHARSE_ACT_TYPE.ARMOR_GIFT, giftInfo)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user