【限时升星】添加锁定提示

dev_chengFeng
gaoxin 2022-01-10 14:30:45 +08:00
parent ee60ae6c9a
commit f6463e72c8
2 changed files with 17 additions and 4 deletions

View File

@ -111,7 +111,18 @@ function UpStarGift:BindEvent()
PopupTipPanel.ShowTip("当前已处于锁定状态")
return
end
NetManager.UpStarActivitySelectRequest(self.actId, choose)
local con = ConfigManager.TryGetConfigData(ConfigName.HeroConfig, choose)
if not con then
LogError("未找到神将:"..tostring(choose))
return
end
local msg = string.format("%s\n将锁定为本次活动的指定神将\n\n锁定后无法修改", con.ReadingName)
MsgPanel.ShowTwo(msg, nil, function()
NetManager.UpStarActivitySelectRequest(self.actId, choose, function()
PopupTipPanel.ShowTip("锁定成功")
end)
end, nil, "锁 定")
end)
end

View File

@ -32,7 +32,7 @@ end
function UpStarPre:BindEvent()
Util.AddOnceClick(self.btnBuy.gameObject, function()
if self.isTemp then
PopupTipPanel.ShowTip("请先选择一个神将")
PopupTipPanel.ShowTip("请先选择并锁定一个神将")
return
end
if self.data.state == 0 then
@ -47,7 +47,7 @@ function UpStarPre:BindEvent()
Util.AddOnceClick(self.GetBtn, function()
if self.isTemp then
PopupTipPanel.ShowTip("请先选择一个神将")
PopupTipPanel.ShowTip("请先选择并锁定一个神将")
return
end
NetManager.GetActivityRewardRequest(self.data.missionId,self.actData.activityId,function(msg)
@ -116,7 +116,9 @@ function UpStarPre:SetShows(key,shows,parent)
if self.parent.GetCurChooseHero then
self.choose, self.isTemp = self.parent:GetCurChooseHero()
-- 临时状态不再显示锁头
if self.isTemp then
if self.data.state == 0 and not self.isTemp then
self.itemList[key][i].lock.gameObject:SetActive(true)
else
self.itemList[key][i].lock.gameObject:SetActive(false)
end
-- 未选择时角色和角色碎片显示问号