【易经宝库】格子点击位置不准确修复 曾加tips
parent
e72cac2afb
commit
454a70668d
File diff suppressed because it is too large
Load Diff
|
|
@ -38,6 +38,8 @@ function YiJingBaoKu:InitComponent(gameObject)
|
||||||
_itemsList[i] = this.grid.transform:GetChild(i - 1)
|
_itemsList[i] = this.grid.transform:GetChild(i - 1)
|
||||||
_itemsPosList[i] = _itemsList[i]:GetComponent("RectTransform").localPosition
|
_itemsPosList[i] = _itemsList[i]:GetComponent("RectTransform").localPosition
|
||||||
end
|
end
|
||||||
|
--bottom
|
||||||
|
this.tip2 = Util.GetGameObject(gameObject, "tip"):GetComponent("Text")
|
||||||
--effect
|
--effect
|
||||||
this.effect = Util.GetGameObject(gameObject, "UI_Effect_YJBK_Zao")
|
this.effect = Util.GetGameObject(gameObject, "UI_Effect_YJBK_Zao")
|
||||||
end
|
end
|
||||||
|
|
@ -122,6 +124,7 @@ function YiJingBaoKu:Refresh()
|
||||||
this.refrashBtn:SetActive(ActData.selectId ~= 0)
|
this.refrashBtn:SetActive(ActData.selectId ~= 0)
|
||||||
this.addBtn:GetComponent("Button").enabled = ActData.selectId == 0
|
this.addBtn:GetComponent("Button").enabled = ActData.selectId == 0
|
||||||
this.name.text = "第"..NumToSimplenessFont[ActData.curLevel].."层"
|
this.name.text = "第"..NumToSimplenessFont[ActData.curLevel].."层"
|
||||||
|
this.tip2.text = "点击格子挖取宝物"
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
@ -168,7 +171,8 @@ function YiJingBaoKu:AddBackToFrontClick()
|
||||||
for index, value in ipairs(_itemsList) do
|
for index, value in ipairs(_itemsList) do
|
||||||
local cFront = Util.GetGameObject(value, "front")
|
local cFront = Util.GetGameObject(value, "front")
|
||||||
local cBack = Util.GetGameObject(value, "back")
|
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
|
if BagManager.GetTotalItemNum(1004) <= 0 then
|
||||||
PopupTipPanel.ShowTip(Language[11880])
|
PopupTipPanel.ShowTip(Language[11880])
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue