--分享按钮
local shareBtn = self.pCenterLayout:getChildByName("Button_share")
shareBtn.LastClickTime = os.clock()
shareBtn:addTouchEventListener(function ( sender,eventType )
if eventType == ccui.TouchEventType.ended then
print("分享。。。。。")
-- print("shareBtn.LastClickTime = ",shareBtn.LastClickTime)
if shareBtn.LastClickTime ~= nil then
-- print("os.clock() = ",os.clock())
-- print("os.clock() - shareBtn.LastClickTime = ",os.clock() - shareBtn.LastClickTime)
if os.clock() - shareBtn.LastClickTime < 0.5 then
-- print(".......0000..........")
return
end
end
shareBtn.LastClickTime = os.clock()
self:shareBtnClick()
end
end)
网友评论