mirror of https://github.com/axmolengine/axmol.git
Fix #23337
Hide menu "cocostudio 2.1", because cocostudio 1.6 Api can't load json exported from cocostudio 2.x.
This commit is contained in:
parent
b38eec4d47
commit
4bf56e5853
|
@ -125,8 +125,13 @@ var CocostudioParserJsonScene = cc.Scene.extend({
|
||||||
pMenu.y = 0;
|
pMenu.y = 0;
|
||||||
cc.MenuItemFont.setFontName("fonts/arial.ttf");
|
cc.MenuItemFont.setFontName("fonts/arial.ttf");
|
||||||
cc.MenuItemFont.setFontSize(24);
|
cc.MenuItemFont.setFontSize(24);
|
||||||
|
var testNum = 0;
|
||||||
for (var i = 0; i < g_parsersTests.length; ++i) {
|
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 selItem = g_parsersTests[i];
|
||||||
var pItem = new cc.MenuItemFont(selItem.title,
|
var pItem = new cc.MenuItemFont(selItem.title,
|
||||||
selItem.test, this);
|
selItem.test, this);
|
||||||
|
|
Loading…
Reference in New Issue