-
In the function _copySpecialProperties
the code :
if(uiLabel instanceof ccui.Label){
is error.
Should be like this:
if(uiLabel instanceof ccui.Text){
-
Resizing causes the editbox to incorrectly position.
For example, if the editbox is set to be positioned at (200,200),
the actual text position will be incorrect. However, the underlying scale9sprite…
llnek updated
10 years ago
-
Hi @dingpinglv ,
First, Thank you for your repair work.
But I met other problem again.
on Canvas mode ,the height is lower than the actual.just like img1 and img2.
img1:
![canvasmode](https://cloud.…
-
``` javascript
var texture = cc.RenderTexture.create(winSize.width, winSize.width);
texture.begin();
this.visit();
texture.end();
var ccImage = texture.newCCImage();
```
Uncaught TypeError: undefined…
bomzj updated
10 years ago
-
我用webstorm IDE 开发时在cocos2d-html5 中并入了build.js 但是 pomelo.init() 会报:
Uncaught TypeError: Cannot read property 'init' of undefined
能否出一个客户端开发的详细教程
-
sceneA is include a ccs. when popScene SceneA can't see the ccs again.
sceneA create code :
ctor:function(){
this._super();
var node = ccs.sceneReader.createNodeWithSceneFile(res.scene.city);
this.a…
-
This is a tileMap. In mobile browser , part of the lost at the bottom like img1. In pc browser, you can see all part like img2
My create code is like this :
var map = cc.TMXTiledMap.create("res/back.…
-
It can work well in android or pc browser. but doesn't work in mobile browser.
-
When attepting to run the source I get a "Can't find config file .cocos-project.json" error.
There exists a "project.json" file in the "samples/js-moonwarriors" folder, but renaming it to ".cocos-pro…
-
键盘监听事件无法响应按键
测试环境:PC web
浏览器:Chrome
引擎版本:cocos2d-js 3.0 beta
cc.eventManager.addListener({
event : cc.EventListener.KEYBOARD,
onKeyPressed : function(keyCode, event){
c…