diff --git a/cocos/scripting/lua-bindings/script/DeprecatedEnum.lua b/cocos/scripting/lua-bindings/script/DeprecatedEnum.lua index 738f2a2014..fd21cc4ecb 100644 --- a/cocos/scripting/lua-bindings/script/DeprecatedEnum.lua +++ b/cocos/scripting/lua-bindings/script/DeprecatedEnum.lua @@ -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 + diff --git a/cocos/scripting/lua-bindings/script/GuiConstants.lua b/cocos/scripting/lua-bindings/script/GuiConstants.lua index e322d3bfaf..1b3ce7e439 100644 --- a/cocos/scripting/lua-bindings/script/GuiConstants.lua +++ b/cocos/scripting/lua-bindings/script/GuiConstants.lua @@ -151,7 +151,8 @@ ccui.ListViewMoveDirection = { } ccui.ListViewEventType = { - onsSelectedItem = 0, + ONSELECTEDITEM_START = 0, + ONSELECTEDITEM_END = 1, } ccui.PageViewEventType = { diff --git a/tests/lua-tests/src/CocoStudioTest/CocoStudioGUITest/CocoStudioGUITest.lua b/tests/lua-tests/src/CocoStudioTest/CocoStudioGUITest/CocoStudioGUITest.lua index bac936d12f..ecf355110c 100644 --- a/tests/lua-tests/src/CocoStudioTest/CocoStudioGUITest/CocoStudioGUITest.lua +++ b/tests/lua-tests/src/CocoStudioTest/CocoStudioGUITest/CocoStudioGUITest.lua @@ -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 diff --git a/tests/lua-tests/src/CocoStudioTest/CocoStudioSceneTest/CocoStudioSceneTest.lua b/tests/lua-tests/src/CocoStudioTest/CocoStudioSceneTest/CocoStudioSceneTest.lua index 50d23a12c9..19cdabbbe5 100644 --- a/tests/lua-tests/src/CocoStudioTest/CocoStudioSceneTest/CocoStudioSceneTest.lua +++ b/tests/lua-tests/src/CocoStudioTest/CocoStudioSceneTest/CocoStudioSceneTest.lua @@ -173,7 +173,6 @@ function SceneEditorTestLayer:createMenu() end if sceneEditorTestIdx == #SceneEditorTestLayer.title then - self:unscheduleUpdate() ccs.TriggerMng.getInstance():removeAll() end diff --git a/tools/bindings-generator b/tools/bindings-generator index 132282d67a..56aaed8134 160000 --- a/tools/bindings-generator +++ b/tools/bindings-generator @@ -1 +1 @@ -Subproject commit 132282d67aff8da7113f4a00596aac75e7b4528d +Subproject commit 56aaed8134d624cdbaa365dc44c5134f325957cc