add missing lua const values

This commit is contained in:
Naoyuki Totani 2016-05-07 16:23:23 +09:00
parent 76d8f81771
commit 04ebba425f
4 changed files with 12 additions and 0 deletions

View File

@ -60,6 +60,10 @@ function ListView:onScroll(callback)
event.name = "BOUNCE_LEFT"
elseif eventType == 8 then
event.name = "BOUNCE_RIGHT"
elseif eventType == 9 then
event.name = "CONTAINER_MOVED"
elseif eventType == 10 then
event.name = "AUTOSCROLL_ENDED"
end
event.target = sender
callback(event)

View File

@ -46,6 +46,10 @@ function ScrollView:onEvent(callback)
event.name = "BOUNCE_LEFT"
elseif eventType == 8 then
event.name = "BOUNCE_RIGHT"
elseif eventType == 9 then
event.name = "CONTAINER_MOVED"
elseif eventType == 10 then
event.name = "AUTOSCROLL_ENDED"
end
event.target = sender
callback(event)

View File

@ -59,6 +59,8 @@ SCROLLVIEW_EVENT_BOUNCE_TOP = ccui.ScrollviewEventType.bounceTop
SCROLLVIEW_EVENT_BOUNCE_BOTTOM = ccui.ScrollviewEventType.bounceBottom
SCROLLVIEW_EVENT_BOUNCE_LEFT = ccui.ScrollviewEventType.bounceLeft
SCROLLVIEW_EVENT_BOUNCE_RIGHT = ccui.ScrollviewEventType.bounceRight
SCROLLVIEW_EVENT_CONTAINER_MOVED = ccui.ScrollviewEventType.containerMoved
SCROLLVIEW_EVENT_AUTOSCROLL_ENDED = ccui.ScrollviewEventType.autoscrollEnded
PAGEVIEW_EVENT_TURNING = ccui.PageViewEventType.turning

View File

@ -152,6 +152,8 @@ ccui.ScrollviewEventType = {
bounceBottom = 6,
bounceLeft = 7,
bounceRight = 8,
containerMoved = 9,
autoscrollEnded = 10,
}
ccui.ListViewDirection = {