// //////////遮罩效果
// CCSprite* progressBg=CCSprite::createWithSpriteFrameName("progress_bg.png");
// progressBg->setAnchorPoint(ccp(0,0));
// progressBg->setPosition(ccp(71,_screenHeight-673-progressBg->getContentSize().height));
// addChild(progressBg);
// //
// progressBar =CCSprite::createWithSpriteFrameName("progress_bar.png");//
// progressBar->setAnchorPoint(ccp(0,0));
// progressBar->setPosition(ccp(71+26, (_screenHeight-673)-17-11));///为什么需要调整位置、、26,-10
// //创建裁剪模板
// stencilMode=CCSprite::createWithSpriteFrameName("mask.png");
// stencilMode->setScaleX(0.0f);
// stencilMode->setAnchorPoint(ccp(0,0));
// stencilMode->setPosition(ccp(71+26, (_screenHeight-673)-17-11));
// //创建裁减节点类
// CCClippingNode* clipper = CCClippingNode::create();
// clipper->setAnchorPoint(ccp(0,0));
// clipper->setPosition(ccp(0,0));
// clipper->setInverted(false);
// clipper->setStencil(stencilMode); //为设置裁减节点类设置“裁减模板”
// clipper->addChild(progressBar);
// addChild(clipper);
// //毛笔
// CCScale9Sprite* penSprite=CCScale9Sprite::createWithSpriteFrameName("pen.png");
// penButton=CCControlButton::create(penSprite);
// penButton->setPreferredSize(CCSizeMake(75, 92));//51, 66
// penButton->setAnchorPoint(ccp(0,0));
// penButton->setZoomOnTouchDown(true);
// penButton->setPosition(ccp(101,_screenHeight-698));
// penButton->addTargetWithActionForControlEvents(this, cccontrol_selector(UpgradeLayer::changCardNum), CCControlEventTouchDragInside);
// addChild(penButton);