Interaction between ccbi files generated by CocosBuilder and lua

1. Add Control and set the position.

The property settings are as shown in the figure



 Second, lua code settings

-- bind
loginui["close_btn"] = handler(self, self.onClose)


-- respond to events
function AdLayer:onClose()
    ...
end

 

 

 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326444687&siteId=291194637