Code Monkey home page Code Monkey logo

Comments (3)

shawnclovie avatar shawnclovie commented on August 19, 2024

这个恐怕和LuaProxy无关,因为其中并未有横竖屏的操作,只是帮你把ccbi读取的请求传给CCBReader。
iOS6.0后增加了两个设定横竖屏的函数,所以你要在你的RootViewController.mm里同时改变
shouldAutorotateToInterfaceOrientation 和 supportedInterfaceOrientations,分别用于6.0或之前的iOS系统。
Android的话,在配置文件里修改即可。

from cocos2dx-luaproxy.

lance0805 avatar lance0805 commented on August 19, 2024

读取节点有问题,getNode一直为nil,getNodeWithType报错: argument #1 is 'class CCBProxy'; 'CCBProxy' expected.
在ccbi中我已经添加了并且设置为owner var,getNode取不到

from cocos2dx-luaproxy.

shawnclovie avatar shawnclovie commented on August 19, 2024

proxy:getNode"name"如为nil,请再去检查CocosBuilder检查一下,如有大小写问题,或者前后有空格,也会导致问题,必须使用完全相同的字符串。
getNodeWithType与getNode相同,必须用CCBProxy的实例变量来操作,不过,现在可以无视这个函数,因为可以这样:tolua.cast(proxy:getNode"name")。

from cocos2dx-luaproxy.

Related Issues (17)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.