Comments (3)
这个恐怕和LuaProxy无关,因为其中并未有横竖屏的操作,只是帮你把ccbi读取的请求传给CCBReader。
iOS6.0后增加了两个设定横竖屏的函数,所以你要在你的RootViewController.mm里同时改变
shouldAutorotateToInterfaceOrientation 和 supportedInterfaceOrientations,分别用于6.0或之前的iOS系统。
Android的话,在配置文件里修改即可。
from cocos2dx-luaproxy.
读取节点有问题,getNode一直为nil,getNodeWithType报错: argument #1 is 'class CCBProxy'; 'CCBProxy' expected.
在ccbi中我已经添加了并且设置为owner var,getNode取不到
from cocos2dx-luaproxy.
proxy:getNode"name"如为nil,请再去检查CocosBuilder检查一下,如有大小写问题,或者前后有空格,也会导致问题,必须使用完全相同的字符串。
getNodeWithType与getNode相同,必须用CCBProxy的实例变量来操作,不过,现在可以无视这个函数,因为可以这样:tolua.cast(proxy:getNode"name")。
from cocos2dx-luaproxy.
Related Issues (17)
- Example Support HOT 1
- 在lua中使用getUserObject 读取不出来 HOT 2
- 加载第二个lua文件出错 HOT 1
- CCBAnimationManager 你这里少一个,动作完成时的回调的功能。 HOT 4
- link error in cocos2d-x 2.1.4f. HOT 1
- CCEditBox的运行时错误 HOT 5
- attempt to call method 'getNodeWithType' (a nil value) HOT 2
- 编译出错 HOT 1
- 在quick-cocos2d-x中使用,出现错误 HOT 1
- LuaTableView的一个问题 HOT 2
- CursorTextField的setColor方法有问题 HOT 1
- MAC some bugs HOT 1
- Mod to tolua_CCHttpResponse_getResponseData to support binaray data HOT 2
- attempt to index local 'lbl' (a nil value) HOT 1
- ccb使用Custom class报错 HOT 7
- 能给解释下LuaEventHandler的runLuaFunction方法么 HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cocos2dx-luaproxy.