优化
This commit is contained in:
parent
434272d8aa
commit
e4647b17dc
@ -31,6 +31,12 @@ function DungeonArmorManager:reqFight(chapterId)
|
||||
return
|
||||
end
|
||||
|
||||
-- 判断次数
|
||||
if armorData:getRemianFarmCount(chapterId) <= 0 then
|
||||
GFunc.showToast(I18N:getGlobalText(I18N.GlobalConst.DAILY_CHALLENGE_DESC_1))
|
||||
return
|
||||
end
|
||||
|
||||
-- 判断体力
|
||||
if not DataManager.DungeonData:isEnoughHp(ModuleManager.MODULE_KEY.DUNGEON_ARMOR) then
|
||||
GFunc.showItemNotEnough(GConst.ItemConst.ITEM_ID_VIT)
|
||||
|
||||
@ -91,7 +91,11 @@ 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)))
|
||||
local str = GConst.EMPTY_STRING
|
||||
if self.armorData:getStarNum(self.chapterId) > 0 then
|
||||
str = I18N:getGlobalText(I18N.GlobalConst.DUNGEON_ARMOR_DESC_17, self.armorData:getRemianFarmCount(self.chapterId))
|
||||
end
|
||||
uiMap["dungeon_armor_fight_ui.bg.bg.desc_2"]:setText(str)
|
||||
end
|
||||
|
||||
return DungeonArmorFightUI
|
||||
Loading…
x
Reference in New Issue
Block a user