心愿抽卡提示修改

china/dev_fengTi hotfix/you_gu/cdn_xiao7_and/1.1.9
wangzhenxing 2023-08-04 16:41:33 +08:00
parent 9b7edc9908
commit 5b88556d9a
2 changed files with 4 additions and 1 deletions

View File

@ -14,6 +14,8 @@ function this:InitComponent(gameObject)
local rootHight = self.scroll.transform.rect.height
local width = self.scroll.transform.rect.width
self.infoTxt=Util.GetGameObject(gameObject,"Bg/tiao1/Text (1)"):GetComponent("Text")
self.infoTxt2=Util.GetGameObject(gameObject,"Bg/tiao2/Text (1)"):GetComponent("Text")
self.infoTxt2.text="神将<color=#31FF00>每日</color>只可<color=#31FF00>选择并获取一次</color>概率提升"
self.scrollView = SubUIManager.Open(SubUIConfig.ScrollCycleView, self.scroll.transform,
self.itemPre, nil, Vector2.New(width, rootHight), 1, 5, Vector2.New(20, 45))
self.scrollView.moveTween.MomentumAmount = 1

View File

@ -188,7 +188,8 @@ function this:ShowSingleHero(go,data,index)
if value == 0 then--上方存在相同阵营
Util.SetGray(self.itemList[self.curSelect][index],true)
Util.AddOnceClick(go,function ()
PopupTipPanel.ShowTip("同系法宝只可选择一位~")
--PopupTipPanel.ShowTip("同系法宝只可选择一位~")
PopupTipPanel.ShowTip("心愿法宝已满~")
end)
elseif value == 2 then--上方选满
Util.SetGray(self.itemList[self.curSelect][index],true)