newlist

  博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::

2013年6月24日

摘要: #include "XSprite.h"CXSprite::CXSprite(void){ m_strPic.clear();}CXSprite::~CXSprite(){}/**********************************函数名称:createSprite*函数功能:创建精灵*函数参数:const char* psFile--创建精灵用的图片 int nFrameIndex--(-1--普通图片 0-2--按钮图片帧(按钮统一为3帧))*函数返回值:创建的精灵指针*备注:分两种情况来创建1.第一种:只是简单的通过图片来创建2.第二种:通过纹理来创... 阅读全文
posted @ 2013-06-24 17:13 一枚程序 阅读(375) 评论(0) 推荐(0)

摘要: #ifndef __XSprite_H__#define __XSprite_H__#include "CocoHead.h"#define BTN_FRAME_AMOUNT 3class ENGINE_API CXSprite : public CCSprite{public: /* 按钮的图片分割成几张 那个分割后每张的索引值 */ enum BTN_FRAME_INDEX { BTN_FRAME_0 = 0, BTN_FRAME_1 = 1, BTN_FRAME_2 = 2, BTN_FRAME_3... 阅读全文
posted @ 2013-06-24 17:12 一枚程序 阅读(272) 评论(0) 推荐(0)

摘要: #include "SectsInfomation.h"#include "WidgetMgr.h"#include "XButton.h"#include "XSroll.h"#include "Config.h"#include "XCommon.h"#include "XStatic.h"#include "XImage.h"#if(CC_TARGET_PLATFORM == CC_PLATFORM_IOS)#include &q 阅读全文
posted @ 2013-06-24 16:07 一枚程序 阅读(322) 评论(0) 推荐(0)

摘要: #ifndef SECTSINFOMATION_H#define SECTSINFOMATION_H#include "XWidget.h"#include "XImage.h"#include "XStatic.h"#include class CXButton;class CSectsInfomation : public CXWidget{public: CSectsInfomation(void); ~CSectsInfomation(void);public: enum CSectsInfomationId { _IDD_C 阅读全文
posted @ 2013-06-24 16:06 一枚程序 阅读(263) 评论(0) 推荐(0)