Hide menu "cocostudio 2.1", because cocostudio 1.6 Api can't load json exported from cocostudio 2.x.
This commit is contained in:
zhangcheng 2015-10-08 11:35:43 +08:00
parent b38eec4d47
commit 4bf56e5853
1 changed files with 7 additions and 2 deletions

View File

@ -125,8 +125,13 @@ var CocostudioParserJsonScene = cc.Scene.extend({
pMenu.y = 0;
cc.MenuItemFont.setFontName("fonts/arial.ttf");
cc.MenuItemFont.setFontSize(24);
for (var i = 0; i < g_parsersTests.length; ++i) {
var testNum = 0;
if(cocoStudioOldApiFlag == 0){
testNum = g_parsersTests.length;
}else{
testNum = g_parsersTests.length - 1;
}
for (var i = 0; i < testNum; ++i) {
var selItem = g_parsersTests[i];
var pItem = new cc.MenuItemFont(selItem.title,
selItem.test, this);