mirror of https://github.com/axmolengine/axmol.git
add missing lua const values
This commit is contained in:
parent
76d8f81771
commit
04ebba425f
|
@ -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)
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -152,6 +152,8 @@ ccui.ScrollviewEventType = {
|
|||
bounceBottom = 6,
|
||||
bounceLeft = 7,
|
||||
bounceRight = 8,
|
||||
containerMoved = 9,
|
||||
autoscrollEnded = 10,
|
||||
}
|
||||
|
||||
ccui.ListViewDirection = {
|
||||
|
|
Loading…
Reference in New Issue