【易经宝库】格子点击位置不准确修复 曾加tips

ZhangBiao 2020-11-09 15:28:24 +08:00 committed by zhangqiang
parent e72cac2afb
commit 454a70668d
2 changed files with 8957 additions and 6562 deletions

View File

@ -38,6 +38,8 @@ function YiJingBaoKu:InitComponent(gameObject)
_itemsList[i] = this.grid.transform:GetChild(i - 1)
_itemsPosList[i] = _itemsList[i]:GetComponent("RectTransform").localPosition
end
--bottom
this.tip2 = Util.GetGameObject(gameObject, "tip"):GetComponent("Text")
--effect
this.effect = Util.GetGameObject(gameObject, "UI_Effect_YJBK_Zao")
end
@ -122,6 +124,7 @@ function YiJingBaoKu:Refresh()
this.refrashBtn:SetActive(ActData.selectId ~= 0)
this.addBtn:GetComponent("Button").enabled = ActData.selectId == 0
this.name.text = ""..NumToSimplenessFont[ActData.curLevel]..""
this.tip2.text = "点击格子挖取宝物"
end
@ -168,7 +171,8 @@ function YiJingBaoKu:AddBackToFrontClick()
for index, value in ipairs(_itemsList) do
local cFront = Util.GetGameObject(value, "front")
local cBack = Util.GetGameObject(value, "back")
Util.AddOnceClick(cBack,function()
local btn = Util.GetGameObject(value, "back/btn")
Util.AddOnceClick(btn,function()
--请求奖励
if BagManager.GetTotalItemNum(1004) <= 0 then
PopupTipPanel.ShowTip(Language[11880])