摘要:
/** * CCDictionary is a class like NSDictionary in Obj-C . * * @note Only the pointer of CCObject or its subclass can be inserted to CCDictionary. * @code * // Create a dictionary, return an autorelease object. * CCDictionary* pDict = CCDictionary::create(); * * // Insert objects to dictionary... 阅读全文
摘要:
CCScale9Sprite* pBGPicFrame = CCScale9Sprite::create((g_ImgPath + "23.png").c_str()); CC_ERROR(pBGPicFrame, "【CActiveSetInfoLayer::ShowRight】pBGPicFrame is null !"); pBGPicFrame->setContentSize(CCSizeMake(280, 779)); pBGPicFrame->setAnchorPoint(ccp(0, 0)); pBGPicFrame->s 阅读全文
摘要:
//-----------------------------------------------------------------//@file gameui/Module/MdGraySprite.h//@date 2013-11-07//@desc 精灵灰化:shader//@action UI组件//-----------------------------------------------------------------#ifndef __GAMEUI_MODULE_MDGRAYSPRITE_H__#define __GAMEU... 阅读全文
摘要:
#ifndef __FIGTH_H__#define __FIGTH_H__#include "cocos-ext.h"#include "include/ILayer.h"#include "kernel/BaseDefine.h"USING_NS_CC;USING_NS_CC_EXT;class CFigthLayer : public CBaseLayer{private: enum E_FIGHT { FIGHT_NIL = 0, FIGHT_NORTH = 4, // 北 FIGH... 阅读全文
摘要:
virtual void registerWithTouchDispatcher(void); virtual bool ccTouchBegan(CCTouch *pTouch,CCEvent *pEvent); virtual void ccTouchMoved(CCTouch *pTouch,CCEvent *pEvent); virtual void ... 阅读全文
摘要:
该类已经把tableview封装好,可以把它当做一个精灵来用,这样做的好处是,当一个界面同时需要多个tableview的时候就可以很好的解决这个问题,而且模块也更清晰。//-----------------------------------------------------------------//@file gameui/Card/CardSlip.h//@date 2014-01-03//@desc 我的卡组滑动界面//@action 我的卡组系统 //------------------------------------------... 阅读全文
摘要:
#ifndef __CC_IMAGE_H__#define __CC_IMAGE_H__//派生于CCObject#include "cocoa/CCObject.h"//Cocos2d命名空间NS_CC_BEGINclass CC_DLL CCImage : public CCObject{public: //构造函数 CCImage(); //析构函数 ~CCImage(); //支持的图片类型 typedef enum { kFmtJpg = 0, //JPG kFmtPng, //PNG ... 阅读全文
摘要:
strPath = g_ImgPath + "方正卡通简体.ttf"; m_pLebGold = CCLabelTTF::create("999999999", strPath.c_str(), 30); CC_ERROR(m_pLebGold, "[CGameMainUI::onEnterTransitionDidFinish] m_pLebGold 为空") m_pLebGold->setPosition(ccp(60, 70)); m_pLebGold->setAnchorPoint(CCPointZero); th 阅读全文
摘要:
/****************************************************************************Copyright (c) 2010-2012 cocos2d-x.orgCopyright (c) 2008-2010 Ricardo QuesadaCopyright (c) 2011 Zynga Inc.http://www.cocos2d-x.orgPermission is hereby granted, free of charge, to any person obtaining a copyof this softw... 阅读全文
摘要:
/****************************************************************************Copyright (c) 2010 cocos2d-x.orghttp://www.cocos2d-x.orgPermission is hereby granted, free of charge, to any person obtaining a copyof this software and associated documentation files (the "Software"), to dealin t 阅读全文