神印bug修改

dev_chengFeng
wangzhenxing 2022-04-26 15:03:06 +08:00
parent 750b243bb9
commit b5445b2ed6
4 changed files with 19 additions and 5 deletions

View File

@ -399,9 +399,20 @@ function this.RequestGetDailyReward(func)
PopupTipPanel.ShowTip(string.format(Language[10298],GetLanguageStrById(itemConfig[itemId].Name)))
return
end
ShopManager.RequestBuyShopItem(SHOP_TYPE.FUNCTION_SHOP,storeId,1,function()
PrivilegeManager.RefreshPrivilegeUsedTimes(buyPriId,1)
s()
-- ShopManager.RequestBuyShopItem(SHOP_TYPE.FUNCTION_SHOP,storeId,1,function()
-- PrivilegeManager.RefreshPrivilegeUsedTimes(buyPriId,1)
-- s()
-- end)
NetManager.GetHardStageDailyReward(function(msg)
PrivilegeManager.RefreshPrivilegeUsedTimes(buyPriId,1)--记录抽卡次数
--PrivilegeManager.RefreshPrivilegeUsedTimes(buyPriId,1)
-- 刷新红点状态
CheckRedPointStatus(RedPointType.FightLevelDailyReward)
-- 触发状态改变
Game.GlobalEvent:DispatchEvent(GameEvent.FightLevel.DailyRewardStateChange)
-- 显示掉落
UIManager.OpenPanel(UIName.RewardItemPopup, msg.drop, 1)
end)
end
end

View File

@ -47,7 +47,8 @@ function GodPrintPanel:InitComponent()
this.showBtn:SetActive(false)
this.backBtn = Util.GetGameObject(this.gameObject, "BackBtn/btnBack")
this.empty=Util.GetGameObject(this.gameObject,"Empty")
this.emptyTxt=Util.GetGameObject(this.gameObject,"Empty/talkImage/Text"):GetComponent("Text")
this.emptyTxt.text="无符合条件的神印!"
--循环布局根节点
this.loopRoot=Util.GetGameObject(this.gameObject,"LoopRoot")
this.loopPre=Util.GetGameObject(this.loopRoot,"Pre")

View File

@ -23,6 +23,8 @@ function GodPrintPopUpV2:InitComponent()
this.backBtn=Util.GetGameObject(this.panel,"BackBtn")
this.title=Util.GetGameObject(this.panel,"Title"):GetComponent("Text")
this.empty=Util.GetGameObject(this.panel,"Empty")
this.emptyTxt=Util.GetGameObject(this.panel,"Empty/talkImage/Text"):GetComponent("Text")
this.emptyTxt.text="未佩戴神印!"
this.scrollRoot=Util.GetGameObject(this.gameObject,"ScrollRoot")
this.pre=Util.GetGameObject(this.scrollRoot,"Pre")
this.scrollView=SubUIManager.Open(SubUIConfig.ScrollCycleView,this.scrollRoot.transform,this.pre, nil,--

View File

@ -767,7 +767,7 @@ function this:UpdateHeroInfoData()
if config then
local limits = string.split(config.Value, "#")
if limits then
this.godPrintBtn:SetActive(ActTimeCtrlManager.IsQualifiled(126))
this.godPrintBtn:SetActive(ActTimeCtrlManager.IsQualifiled(126)and curHeroData.heroConfig.MaxRank >= 6)
isOpenGod=curHeroData.star >= tonumber(limits[1])
Util.SetGray(this.godPrintBtn, not isOpenGod)
Util.GetGameObject(this.godPrintBtn, "lock"):SetActive(not isOpenGod)