--翻页滚动效果local function fnScrollViewScrolling( sender,eventType) -- body if eventType == 10 then local bposX = sender:getPercentage()*100 _bPosX = bposX end if not _bPosX then return end print("-------bposX="…
只要是新的聊天对象就创建一个新的listview local name = tolua.cast(UIHelper:seekWidgetByName(self.nameItem, "name"), "Label"); local playerName = name:getStringValue(); if nil == self.privateChatList[name:getTag()] then local ChatListView = ListView:cre…
Call custom c++ from Lua cocos2d-x lua binds c++ class, class functions ,enum and some global functions to lua through auto-binding by bindings-generator(tools/bindings-generator) and some manual binding,so we can call custom c++ from lua convenientl…