挂机奖励修改,不显示小兵失败界面

tcx_xiyou_bt_ios
wangzhenxing 2024-06-21 15:57:59 +08:00
parent 873a9f3d8f
commit bacb821742
2 changed files with 6 additions and 5 deletions

View File

@ -6,6 +6,7 @@ local _ProductList = {}
local _ItemList = {}
local _RewardList = {}
local _ExtraRewardList = {}
--初始化组件(用于子类重写)
function FightAreaRewardPopup:InitComponent()
this.spLoader = SpriteLoader.New()
@ -133,14 +134,14 @@ function FightAreaRewardPopup:OnShow()
local config =ConfigManager.GetConfigData(ConfigName.SoldierStageConfig,FightPointPassManager.soldierLayerId)
local mainLvConfig=ConfigManager.GetConfigData(ConfigName.MainLevelConfig, curFightId)
if config then
if mainLvConfig then
--LogError("config.id============================"..config.Id)
if not config.RewardShowMin or #config.RewardShowMin < 1 then
if not mainLvConfig.RewardShowMin or #mainLvConfig.RewardShowMin < 1 then
this.itemRoot.gameObject:SetActive(false)
else
this.itemRoot.gameObject:SetActive(true)
-- 固定奖励
for index, item in ipairs(config.RewardShowMin) do
for index, item in ipairs(mainLvConfig.RewardShowMin) do
if not _ProductList[index] then
_ProductList[index] = newObjToParent(this.item, this.itemGrid.transform)
end

View File

@ -925,7 +925,7 @@ function this.BattleLogic()
this.battleTimer:Start()
if PlayerPrefs.GetInt("SmallSoldierFailed"..PlayerManager.uid)~=FightPointPassManager.soldierLayerId then
if not GuideManager.IsInMainGuide() then
UIManager.OpenPanel(UIName.SmallSoldierFailPop)
--UIManager.OpenPanel(UIName.SmallSoldierFailPop)
end
PlayerPrefs.SetInt("SmallSoldierFailed"..PlayerManager.uid,FightPointPassManager.soldierLayerId)
end
@ -968,7 +968,7 @@ function this.BattleLogic()
--PopupTipPanel.ShowTip("服务器战斗验证失败")
if PlayerPrefs.GetInt("SmallSoldierFailed"..PlayerManager.uid)~=FightPointPassManager.soldierLayerId then
if not GuideManager.IsInMainGuide() then
UIManager.OpenPanel(UIName.SmallSoldierFailPop)
--UIManager.OpenPanel(UIName.SmallSoldierFailPop)
end
PlayerPrefs.SetInt("SmallSoldierFailed"..PlayerManager.uid,FightPointPassManager.soldierLayerId)
end