.PIG File

.PIG File

File extension: PIG

File type: Texture File

The PIG file type is primarily associated with 'Descent'. The .PIG file can also store sound effects (no music) and model data.

CCSprite* confirmBg=CCSprite::createWithSpriteFrameName("sell_confirm_bg.png");

confirmBg->setPosition(ccp(320,_winSize.height-892));

box->addChild(confirmBg);

  

CCScale9Sprite* confirmUpSprite=CCScale9Sprite::createWithSpriteFrameName("sell_confirm_up.png");

CCScale9Sprite* confirmDownSprite=CCScale9Sprite::createWithSpriteFrameName("sell_confirm_down.png");

CCControlButton* confirmBtn=CCControlButton::create(confirmUpSprite);

confirmBtn->setBackgroundSpriteForState(confirmDownSprite, CCControlStateHighlighted);

confirmBtn->setZoomOnTouchDown(false);

confirmBtn->setPosition(ccp(320,_winSize.height-897));

confirmBtn->setPreferredSize(CCSizeMake(106, 53));

你可能感兴趣的:(File)