Cocos2d-x3.0 不规则Button

这是我参照之前在iOS项目中用过的一个不规则形状按钮的第三方Button,这里用Cocos2d-x实现一个相似功能的按钮。

原文地址:http://blog.csdn.net/qqmcy/article/details/26161339

代码下载:http://download.csdn.net/detail/qqmcy/7365843

使用方法:

.h

//
//  TestScene.h
//  maptest
//
//  Created by 杜甲 on 14-5-18.
//
//

#ifndef __maptest__TestScene__
#define __maptest__TestScene__

#include "cocos2d.h"
#include "ui/CocosGUI.h"
#include "DJShapeButton.h"
USING_NS_CC;



class TestScene :public Layer,public DJShapeButtonDelegate{
    
public:
    static Scene* createScene();
    virtual bool init();
    
    CREATE_FUNC(TestScene);
    void buttonCallBack(DJShapeButton* sender);
    
};

#endif /* defined(__maptest__TestScene__) */



        DJShap

你可能感兴趣的:(cocos2d-x,cocos2d-x3.0,不规则,按钮,button)