2.2.2对接口做了不小的改动,移除了一些遗留的函数,所以这里做一个统一的帖子,大家可以把遇到的改变都放到这个帖子以分享给大家学习。
希望大家一起参与



UI部分变化比较大,移除了原来的"UI"开头的类型名称,为了兼容原来的程序,目前做了别名映射,但是希望大家尽量使用新的类名:
新的类名在这个文件里:

typedef cocos2d::gui::Layout UIPanel;
typedef cocos2d::gui::Layout UILayout;
typedef cocos2d::gui::Widget UIWidget;
typedef cocos2d::gui::LayoutParameter UILayoutParameter;
typedef cocos2d::gui::Margin UIMargin;
typedef cocos2d::gui::ListView UIListView;
typedef cocos2d::gui::PageView UIPageView;
typedef cocos2d::gui::ScrollView UIDragPanel;
typedef cocos2d::gui::ScrollView UIScrollView;
typedef cocos2d::gui::Button UIButton;
typedef cocos2d::gui::Button UITextButton;
typedef cocos2d::gui::CheckBox UICheckBox;
typedef cocos2d::gui::ImageView UIImageView;
typedef cocos2d::gui::Label UILabel;
typedef cocos2d::gui::LabelAtlas UILabelAtlas;
typedef cocos2d::gui::LabelBMFont UILabelBMFont;
typedef cocos2d::gui::LoadingBar UILoadingBar;
typedef cocos2d::gui::Slider UISlider;
typedef cocos2d::gui::TextField UITextField;
typedef cocos2d::gui::TouchGroup UILayer;
typedef cocos2d::gui::LinearGravity UILinearGravity;
typedef cocos2d::gui::RelativeAlign UIRelativeAlign;
typedef cocos2d::gui::LayoutParameter UILayoutParameter;
typedef cocos2d::gui::LinearLayoutParameter UILinearLayoutParameter;
typedef cocos2d::gui::RelativeLayoutParameter UIRelativeLayoutParameter;
整合了四个控件:UIlable和uitextarea合并到lable,UIbutton和UITextbutton合并到button里
Widget 中的 addReleaseEvent删除 需要统一使用addTouchEventListener