Merge pull request #11968 from jianglong0156/rebuildAutoBindingCons

add the notification node test in sceneTest
This commit is contained in:
minggo 2015-05-22 14:43:01 +08:00
commit e1823fb66d
1 changed files with 10 additions and 1 deletions

View File

@ -43,8 +43,17 @@ var SceneTestLayer1 = cc.Layer.extend({
var item3 = new cc.MenuItemFont("Quit", function () {
cc.log("quit!")
}, this);
var item4 = new cc.MenuItemFont("setNotificationNode", function () {
var layerTemp = new cc.LayerColor(cc.color(0, 255, 255, 120));
cc.director.setNotificationNode(layerTemp);
cc.log("setNotificationNode!");
}, this);
var item5 = new cc.MenuItemFont("clearNotificationNode", function () {
cc.log("clearNotificationNode!");
cc.director.setNotificationNode(null);
}, this);
var menu = new cc.Menu(item1, item2, item3);
var menu = new cc.Menu(item1, item2, item3, item4, item5);
menu.alignItemsVertically();
this.addChild(menu);