神印bug修改
parent
750b243bb9
commit
b5445b2ed6
|
@ -399,9 +399,20 @@ function this.RequestGetDailyReward(func)
|
||||||
PopupTipPanel.ShowTip(string.format(Language[10298],GetLanguageStrById(itemConfig[itemId].Name)))
|
PopupTipPanel.ShowTip(string.format(Language[10298],GetLanguageStrById(itemConfig[itemId].Name)))
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
ShopManager.RequestBuyShopItem(SHOP_TYPE.FUNCTION_SHOP,storeId,1,function()
|
-- ShopManager.RequestBuyShopItem(SHOP_TYPE.FUNCTION_SHOP,storeId,1,function()
|
||||||
PrivilegeManager.RefreshPrivilegeUsedTimes(buyPriId,1)
|
-- PrivilegeManager.RefreshPrivilegeUsedTimes(buyPriId,1)
|
||||||
s()
|
-- 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
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -47,7 +47,8 @@ function GodPrintPanel:InitComponent()
|
||||||
this.showBtn:SetActive(false)
|
this.showBtn:SetActive(false)
|
||||||
this.backBtn = Util.GetGameObject(this.gameObject, "BackBtn/btnBack")
|
this.backBtn = Util.GetGameObject(this.gameObject, "BackBtn/btnBack")
|
||||||
this.empty=Util.GetGameObject(this.gameObject,"Empty")
|
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.loopRoot=Util.GetGameObject(this.gameObject,"LoopRoot")
|
||||||
this.loopPre=Util.GetGameObject(this.loopRoot,"Pre")
|
this.loopPre=Util.GetGameObject(this.loopRoot,"Pre")
|
||||||
|
|
|
@ -23,6 +23,8 @@ function GodPrintPopUpV2:InitComponent()
|
||||||
this.backBtn=Util.GetGameObject(this.panel,"BackBtn")
|
this.backBtn=Util.GetGameObject(this.panel,"BackBtn")
|
||||||
this.title=Util.GetGameObject(this.panel,"Title"):GetComponent("Text")
|
this.title=Util.GetGameObject(this.panel,"Title"):GetComponent("Text")
|
||||||
this.empty=Util.GetGameObject(this.panel,"Empty")
|
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.scrollRoot=Util.GetGameObject(this.gameObject,"ScrollRoot")
|
||||||
this.pre=Util.GetGameObject(this.scrollRoot,"Pre")
|
this.pre=Util.GetGameObject(this.scrollRoot,"Pre")
|
||||||
this.scrollView=SubUIManager.Open(SubUIConfig.ScrollCycleView,this.scrollRoot.transform,this.pre, nil,--
|
this.scrollView=SubUIManager.Open(SubUIConfig.ScrollCycleView,this.scrollRoot.transform,this.pre, nil,--
|
||||||
|
|
|
@ -767,7 +767,7 @@ function this:UpdateHeroInfoData()
|
||||||
if config then
|
if config then
|
||||||
local limits = string.split(config.Value, "#")
|
local limits = string.split(config.Value, "#")
|
||||||
if limits then
|
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])
|
isOpenGod=curHeroData.star >= tonumber(limits[1])
|
||||||
Util.SetGray(this.godPrintBtn, not isOpenGod)
|
Util.SetGray(this.godPrintBtn, not isOpenGod)
|
||||||
Util.GetGameObject(this.godPrintBtn, "lock"):SetActive(not isOpenGod)
|
Util.GetGameObject(this.godPrintBtn, "lock"):SetActive(not isOpenGod)
|
||||||
|
|
Loading…
Reference in New Issue