Hi,
I am completely lost as to using CCScale9Sprite & CCControlButton.
As you can see in the screenshot http://imgur.com/vu05xSj
The image on the left is the original and right is the outcome. Why is the image on the right boxed out ???
I tried editing the image, in TP set it to Basic, Trim set to None… I still get the same results. Even if I make the whole image solid with no transparency, its still the same sort of weird stretching.
Here the code where I try to create a button.
CCScale9Sprite downButtonSprite = CCScale9Sprite::createWithSpriteFrameName;
CCControlButtonDowncontrolButton = CCControlButton::create(downButtonSprite);
DowncontrolButton~~>setPreferredSize );
DowncontrolButton~~>setPosition( ccp(winSize.width - 70 , 150) );
this->addChild(DowncontrolButton);
Im using cocos2d-x-2.1.5. What is really the problem. Scale9 is driving me nuts! I think we need a proper tutorial on Scale9.
Thanks in advance.