Update ListViewEventType for Lua

This commit is contained in:
samuele3hu 2014-07-16 17:18:01 +08:00
parent e431d4f824
commit 1b2d389011
3 changed files with 5 additions and 2 deletions

View File

@ -492,3 +492,5 @@ ccui.LayoutType.linearVertical = ccui.LayoutType.VERTICAL
ccui.LayoutType.linearHorizontal = ccui.LayoutType.HORIZONTAL
ccui.LayoutType.relative = ccui.LayoutType.RELATIVE
ccui.ListViewEventType.onsSelectedItem = ccui.ListViewEventType.ONSELECTEDITEM_START

View File

@ -151,7 +151,8 @@ ccui.ListViewMoveDirection = {
}
ccui.ListViewEventType = {
onsSelectedItem = 0,
ONSELECTEDITEM_START = 0,
ONSELECTEDITEM_END = 1,
}
ccui.PageViewEventType = {

View File

@ -2425,7 +2425,7 @@ function UIListViewVerticalTest:initExtend()
end
local function listViewEvent(sender, eventType)
if eventType == ccui.ListViewEventType.onsSelectedItem then
if eventType == ccui.ListViewEventType.ONSELECTEDITEM_START then
print("select child index = ",sender:getCurSelectedIndex())
end
end