mirror of https://github.com/axmolengine/axmol.git
issue #1191: Removed some unused files in template folder.
This commit is contained in:
parent
7d8fc95297
commit
7bf2067942
|
@ -1,39 +0,0 @@
|
|||
# check the args
|
||||
# $1: root of cocos2dx $2: app name $3: ndk root $4:pakcage path
|
||||
|
||||
APP_NAME=$2
|
||||
COCOS2DX_ROOT=$1
|
||||
APP_DIR=$COCOS2DX_ROOT/$APP_NAME
|
||||
HELLOWORLD_ROOT=$COCOS2DX_ROOT/HelloWorld
|
||||
NDK_ROOT=$3
|
||||
PACKAGE_PATH=$4
|
||||
|
||||
# invoke android template
|
||||
sh $(dirname "$0")/../android/copy_files.sh $1 $2 $3 $4
|
||||
|
||||
#copy linux's
|
||||
move_files_into_linux(){
|
||||
mkdir $APP_DIR/linux
|
||||
for file in `ls $HELLOWORLD_ROOT/linux/* | grep -E '.*\.[cpp|h]' `
|
||||
do
|
||||
if [ -f $file ];then
|
||||
cp $file $APP_DIR/linux
|
||||
fi
|
||||
done
|
||||
}
|
||||
|
||||
|
||||
#copy eclipse configures
|
||||
move_eclipse_configures_into(){
|
||||
for file in `ls -a $HELLOWORLD_ROOT/linux/ | grep -E '\..*project' `
|
||||
do
|
||||
cp $HELLOWORLD_ROOT/linux/$file $APP_DIR/linux/
|
||||
done
|
||||
|
||||
sed -i "s/HelloWorld/$APP_NAME/" $APP_DIR/linux/.project
|
||||
|
||||
sed -i "s/HelloWorld/$APP_NAME/" $APP_DIR/linux/.cproject
|
||||
}
|
||||
|
||||
move_files_into_linux
|
||||
move_eclipse_configures_into
|
|
@ -1,4 +0,0 @@
|
|||
order that would edit the paths, add modules or files you need to edit the main project file: ___PROJECTNAME___.mkb
|
||||
|
||||
order that would set up options Airplay SDK for this project, you must edit the file: /Data/app.icf
|
||||
|
|
@ -1,65 +0,0 @@
|
|||
#include "AppDelegate.h"
|
||||
|
||||
#include "cocos2d.h"
|
||||
#include "MyScene.h"
|
||||
|
||||
USING_NS_CC;
|
||||
|
||||
AppDelegate::AppDelegate()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
AppDelegate::~AppDelegate()
|
||||
{
|
||||
}
|
||||
|
||||
bool AppDelegate::initInstance()
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
bool AppDelegate::applicationDidFinishLaunching()
|
||||
{
|
||||
// initialize director
|
||||
CCDirector *pDirector = CCDirector::sharedDirector();
|
||||
pDirector->setOpenGLView(&CCEGLView::sharedOpenGLView());
|
||||
|
||||
// enable High Resource Mode(2x, such as iphone4) and maintains low resource on other devices.
|
||||
// pDirector->enableRetinaDisplay(true);
|
||||
|
||||
// sets landscape mode
|
||||
pDirector->setDeviceOrientation(kCCDeviceOrientationLandscapeLeft);
|
||||
|
||||
// turn on display FPS
|
||||
pDirector->setDisplayFPS(true);
|
||||
|
||||
// set FPS. the default value is 1.0/60 if you don't call this
|
||||
pDirector->setAnimationInterval(1.0 / 60);
|
||||
|
||||
// create a scene. it's an autorelease object
|
||||
CCScene *pScene = MyScene::scene();
|
||||
|
||||
// run
|
||||
pDirector->runWithScene(pScene);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
// This function will be called when the app is inactive. When comes a phone call,it's be invoked too
|
||||
void AppDelegate::applicationDidEnterBackground()
|
||||
{
|
||||
CCDirector::sharedDirector()->pause();
|
||||
|
||||
// if you use SimpleAudioEngine, it must be pause
|
||||
// SimpleAudioEngine::sharedEngine()->pauseBackgroundMusic();
|
||||
}
|
||||
|
||||
// this function will be called when the app is active again
|
||||
void AppDelegate::applicationWillEnterForeground()
|
||||
{
|
||||
CCDirector::sharedDirector()->resume();
|
||||
|
||||
// if you use SimpleAudioEngine, it must resume here
|
||||
// SimpleAudioEngine::sharedEngine()->resumeBackgroundMusic();
|
||||
}
|
|
@ -1,43 +0,0 @@
|
|||
#ifndef _APP_DELEGATE_H_
|
||||
#define _APP_DELEGATE_H_
|
||||
|
||||
#include "CCApplication.h"
|
||||
|
||||
/**
|
||||
@brief The cocos2d Application.
|
||||
|
||||
The reason for implement as private inheritance is to hide some interface call by CCDirector.
|
||||
*/
|
||||
class AppDelegate : private cocos2d::CCApplication
|
||||
{
|
||||
public:
|
||||
AppDelegate();
|
||||
virtual ~AppDelegate();
|
||||
|
||||
/**
|
||||
@brief Implement for initialize OpenGL instance, set source path, etc...
|
||||
*/
|
||||
virtual bool initInstance();
|
||||
|
||||
/**
|
||||
@brief Implement CCDirector and CCScene init code here.
|
||||
@return true Initialize success, app continue.
|
||||
@return false Initialize failed, app terminate.
|
||||
*/
|
||||
virtual bool applicationDidFinishLaunching();
|
||||
|
||||
/**
|
||||
@brief The function be called when the application enter background
|
||||
@param the pointer of the application
|
||||
*/
|
||||
virtual void applicationDidEnterBackground();
|
||||
|
||||
/**
|
||||
@brief The function be called when the application enter foreground
|
||||
@param the pointer of the application
|
||||
*/
|
||||
virtual void applicationWillEnterForeground();
|
||||
};
|
||||
|
||||
#endif // _APP_DELEGATE_H_
|
||||
|
|
@ -1,16 +0,0 @@
|
|||
// Application main file.
|
||||
|
||||
#include "Main.h"
|
||||
#include "AppDelegate.h"
|
||||
|
||||
|
||||
int main()
|
||||
{
|
||||
AppDelegate* app;
|
||||
int nRet = 0;
|
||||
|
||||
app = new AppDelegate;
|
||||
nRet = cocos2d::CCApplication::sharedApplication().Run();;
|
||||
delete app;
|
||||
return nRet;
|
||||
}
|
|
@ -1,4 +0,0 @@
|
|||
#ifndef MAIN_H
|
||||
#define MAIN_H
|
||||
|
||||
#endif
|
|
@ -1,41 +0,0 @@
|
|||
#include "MyScene.h"
|
||||
|
||||
USING_NS_CC;
|
||||
|
||||
CCScene* MyScene::scene()
|
||||
{
|
||||
// 'scene' is an autorelease object
|
||||
CCScene *scene = CCScene::node();
|
||||
|
||||
// 'layer' is an autorelease object
|
||||
MyScene *layer = MyScene::node();
|
||||
|
||||
// add layer as a child to scene
|
||||
scene->addChild(layer);
|
||||
|
||||
// return the scene
|
||||
return scene;
|
||||
}
|
||||
|
||||
// on "init" you need to initialize your instance
|
||||
bool MyScene::init()
|
||||
{
|
||||
//////////////////////////////
|
||||
// 1. super init first
|
||||
if ( !CCLayer::init() )
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
//////////////////////////////
|
||||
// 2. add your codes below...
|
||||
|
||||
|
||||
//////////////////////////////
|
||||
return true;
|
||||
}
|
||||
|
||||
void MyScene::menuCloseCallback(CCObject* pSender)
|
||||
{
|
||||
CCDirector::sharedDirector()->end();
|
||||
}
|
|
@ -1,22 +0,0 @@
|
|||
#ifndef __MY_SCENE_H__
|
||||
#define __MY_SCENE_H__
|
||||
|
||||
#include "cocos2d.h"
|
||||
|
||||
class MyScene : public cocos2d::CCLayer
|
||||
{
|
||||
public:
|
||||
// Here's a difference. Method 'init' in cocos2d-x returns bool, instead of returning 'id' in cocos2d-iphone
|
||||
virtual bool init();
|
||||
|
||||
// there's no 'id' in cpp, so we recommand to return the exactly class pointer
|
||||
static cocos2d::CCScene* scene();
|
||||
|
||||
// a selector callback
|
||||
virtual void menuCloseCallback(CCObject* pSender);
|
||||
|
||||
// implement the "static node()" method manually
|
||||
LAYER_NODE_FUNC(MyScene);
|
||||
};
|
||||
|
||||
#endif // __HELLOWORLD_SCENE_H__
|
|
@ -1,45 +0,0 @@
|
|||
options
|
||||
{
|
||||
# path to data of current game
|
||||
|
||||
s3e-data-dir="Data"
|
||||
|
||||
# paths to modules of cocos2d-x - uncomment and customize if you need additional modules
|
||||
|
||||
module_path="../../cocos2dx/proj.marmalade/"
|
||||
# module_path="../../Box2D/proj.marmalade/"
|
||||
# module_path="../../chipmunk/proj.marmalade/"
|
||||
# module_path="../../CocosDenshion/proj.marmalade/"
|
||||
|
||||
}
|
||||
|
||||
includepaths
|
||||
{
|
||||
..
|
||||
}
|
||||
subprojects
|
||||
{
|
||||
# required module of Marmalade
|
||||
|
||||
IwGL
|
||||
|
||||
# required module of cocos2d-x
|
||||
|
||||
cocos2dx
|
||||
|
||||
# additional modules of cocos2d-x - uncomment if necessary
|
||||
|
||||
# Box2D
|
||||
# chipmunk
|
||||
# CocosDenshion
|
||||
}
|
||||
|
||||
files
|
||||
{
|
||||
[Source]
|
||||
("Source")
|
||||
"*.h"
|
||||
"*.cpp"
|
||||
}
|
||||
|
||||
|
|
@ -1,165 +1,165 @@
|
|||
#include "AppDelegate.h"
|
||||
|
||||
#include "cocos2d.h"
|
||||
[! if CC_USE_COCOS_DENSHION_SIMPLE_AUDIO_ENGINE]
|
||||
#include "SimpleAudioEngine.h"
|
||||
using namespace CocosDenshion;
|
||||
|
||||
[! endif]
|
||||
[! if CC_USE_LUA]
|
||||
#include "CCLuaEngine.h"
|
||||
[! endif]
|
||||
|
||||
#include "CCEGLView.h"
|
||||
|
||||
USING_NS_CC;
|
||||
|
||||
AppDelegate::AppDelegate()
|
||||
{
|
||||
}
|
||||
|
||||
AppDelegate::~AppDelegate()
|
||||
{
|
||||
[! if CC_USE_COCOS_DENSHION_SIMPLE_AUDIO_ENGINE]
|
||||
SimpleAudioEngine::end();
|
||||
[! endif]
|
||||
}
|
||||
|
||||
bool AppDelegate::initInstance()
|
||||
{
|
||||
bool bRet = false;
|
||||
do
|
||||
{
|
||||
#if (CC_TARGET_PLATFORM == CC_PLATFORM_WIN32)
|
||||
|
||||
// Initialize OpenGLView instance, that release by CCDirector when application terminate.
|
||||
// The HelloWorld is designed as HVGA.
|
||||
CCEGLView * pMainWnd = new CCEGLView();
|
||||
CC_BREAK_IF(! pMainWnd
|
||||
|| ! pMainWnd->Create(TEXT("cocos2d: Hello World"), 480, 320));
|
||||
|
||||
#endif // CC_PLATFORM_WIN32
|
||||
|
||||
#if (CC_TARGET_PLATFORM == CC_PLATFORM_IOS)
|
||||
|
||||
// OpenGLView initialized in testsAppDelegate.mm on ios platform, nothing need to do here.
|
||||
|
||||
#endif // CC_PLATFORM_IOS
|
||||
|
||||
#if (CC_TARGET_PLATFORM == CC_PLATFORM_ANDROID)
|
||||
|
||||
// OpenGLView initialized in HelloWorld/android/jni/helloworld/main.cpp
|
||||
// the default setting is to create a fullscreen view
|
||||
// if you want to use auto-scale, please enable view->create(320,480) in main.cpp
|
||||
// if the resources under '/sdcard" or other writeable path, set it.
|
||||
// warning: the audio source should in assets/
|
||||
// cocos2d::CCFileUtils::setResourcePath("/sdcard");
|
||||
|
||||
#endif // CC_PLATFORM_ANDROID
|
||||
|
||||
#if (CC_TARGET_PLATFORM == CC_PLATFORM_MARMALADE)
|
||||
// MaxAksenov said it's NOT a very elegant solution. I agree, haha
|
||||
CCDirector::sharedDirector()->setDeviceOrientation(kCCDeviceOrientationLandscapeLeft);
|
||||
#endif
|
||||
#if (CC_TARGET_PLATFORM == CC_PLATFORM_LINUX)
|
||||
|
||||
// Initialize OpenGLView instance, that release by CCDirector when application terminate.
|
||||
// The HelloWorld is designed as HVGA.
|
||||
CCEGLView * pMainWnd = new CCEGLView();
|
||||
CC_BREAK_IF(! pMainWnd
|
||||
|| ! pMainWnd->Create("cocos2d: Hello World", 800, 480,480, 320));
|
||||
|
||||
CCFileUtils::setResourcePath("../Resource/");
|
||||
|
||||
#endif // CC_PLATFORM_LINUX
|
||||
|
||||
#if (CC_TARGET_PLATFORM == CC_PLATFORM_BADA)
|
||||
|
||||
CCEGLView * pMainWnd = new CCEGLView();
|
||||
CC_BREAK_IF(! pMainWnd|| ! pMainWnd->Create(this, 480, 320));
|
||||
pMainWnd->setDeviceOrientation(Osp::Ui::ORIENTATION_LANDSCAPE);
|
||||
CCFileUtils::setResourcePath("/Res/");
|
||||
|
||||
#endif // CC_PLATFORM_BADA
|
||||
|
||||
#if (CC_TARGET_PLATFORM == CC_PLATFORM_QNX)
|
||||
CCEGLView * pMainWnd = new CCEGLView();
|
||||
CC_BREAK_IF(! pMainWnd|| ! pMainWnd->Create(480, 320));
|
||||
CCFileUtils::setResourcePath("./app/native/Resource");
|
||||
#endif // CC_PLATFORM_QNX
|
||||
bRet = true;
|
||||
} while (0);
|
||||
return bRet;
|
||||
}
|
||||
|
||||
bool AppDelegate::applicationDidFinishLaunching()
|
||||
{
|
||||
// initialize director
|
||||
CCDirector *pDirector = CCDirector::sharedDirector();
|
||||
pDirector->setOpenGLView(&CCEGLView::sharedOpenGLView());
|
||||
|
||||
// enable High Resource Mode(2x, such as iphone4) and maintains low resource on other devices.
|
||||
// pDirector->enableRetinaDisplay(true);
|
||||
|
||||
// turn on display FPS
|
||||
pDirector->setDisplayFPS(true);
|
||||
|
||||
// set FPS. the default value is 1.0/60 if you don't call this
|
||||
pDirector->setAnimationInterval(1.0 / 60);
|
||||
|
||||
[! if CC_USE_LUA]
|
||||
// register lua engine
|
||||
CCScriptEngineProtocol* pEngine = CCLuaEngine::engine();
|
||||
CCScriptEngineManager::sharedManager()->setScriptEngine(pEngine);
|
||||
|
||||
#if (CC_TARGET_PLATFORM == CC_PLATFORM_ANDROID)
|
||||
unsigned long size;
|
||||
char *pFileContent = (char*)CCFileUtils::getFileData("hello.lua", "r", &size);
|
||||
|
||||
if (pFileContent)
|
||||
{
|
||||
// copy the file contents and add '\0' at the end, or the lua parser can not parse it
|
||||
char *pCodes = new char[size + 1];
|
||||
pCodes[size] = '\0';
|
||||
memcpy(pCodes, pFileContent, size);
|
||||
delete[] pFileContent;
|
||||
|
||||
pEngine->executeString(pCodes);
|
||||
delete []pCodes;
|
||||
}
|
||||
#endif
|
||||
|
||||
#if (CC_TARGET_PLATFORM == CC_PLATFORM_WIN32) || (CC_TARGET_PLATFORM == CC_PLATFORM_IOS) || (CC_TARGET_PLATFORM == CC_PLATFORM_MARMALADE)
|
||||
string path = CCFileUtils::fullPathFromRelativePath("hello.lua");
|
||||
pEngine->addSearchPath(path.substr(0, path.find_last_of("/")).c_str());
|
||||
pEngine->executeScriptFile(path.c_str());
|
||||
#endif
|
||||
[! else]
|
||||
// create a scene. it's an autorelease object
|
||||
CCScene *pScene = HelloWorld::scene();
|
||||
|
||||
// run
|
||||
pDirector->runWithScene(pScene);
|
||||
[! endif]
|
||||
return true;
|
||||
}
|
||||
|
||||
// This function will be called when the app is inactive. When comes a phone call,it's be invoked too
|
||||
void AppDelegate::applicationDidEnterBackground()
|
||||
{
|
||||
CCDirector::sharedDirector()->pause();
|
||||
[! if CC_USE_COCOS_DENSHION_SIMPLE_AUDIO_ENGINE]
|
||||
|
||||
SimpleAudioEngine::sharedEngine()->pauseBackgroundMusic();
|
||||
[! endif]
|
||||
}
|
||||
|
||||
// this function will be called when the app is active again
|
||||
void AppDelegate::applicationWillEnterForeground()
|
||||
{
|
||||
CCDirector::sharedDirector()->resume();
|
||||
[! if CC_USE_COCOS_DENSHION_SIMPLE_AUDIO_ENGINE]
|
||||
|
||||
SimpleAudioEngine::sharedEngine()->resumeBackgroundMusic();
|
||||
[! endif]
|
||||
}
|
||||
#include "cocos2d.h"
|
||||
#include "CCEGLView.h"
|
||||
#include "AppDelegate.h"
|
||||
[! if CC_USE_LUA]
|
||||
#include "CCLuaEngine.h"
|
||||
[! else]
|
||||
#include "HelloWorldScene.h"
|
||||
[! endif]
|
||||
[! if CC_USE_COCOS_DENSHION_SIMPLE_AUDIO_ENGINE]
|
||||
#include "SimpleAudioEngine.h"
|
||||
|
||||
using namespace CocosDenshion;
|
||||
[! endif]
|
||||
|
||||
USING_NS_CC;
|
||||
|
||||
AppDelegate::AppDelegate()
|
||||
{
|
||||
}
|
||||
|
||||
AppDelegate::~AppDelegate()
|
||||
{
|
||||
[! if CC_USE_COCOS_DENSHION_SIMPLE_AUDIO_ENGINE]
|
||||
SimpleAudioEngine::end();
|
||||
[! endif]
|
||||
}
|
||||
|
||||
bool AppDelegate::initInstance()
|
||||
{
|
||||
bool bRet = false;
|
||||
do
|
||||
{
|
||||
#if (CC_TARGET_PLATFORM == CC_PLATFORM_WIN32)
|
||||
|
||||
// Initialize OpenGLView instance, that release by CCDirector when application terminate.
|
||||
// The HelloWorld is designed as HVGA.
|
||||
CCEGLView * pMainWnd = new CCEGLView();
|
||||
CC_BREAK_IF(! pMainWnd
|
||||
|| ! pMainWnd->Create(TEXT("cocos2d: Hello World"), 480, 320));
|
||||
|
||||
#endif // CC_PLATFORM_WIN32
|
||||
|
||||
#if (CC_TARGET_PLATFORM == CC_PLATFORM_IOS)
|
||||
|
||||
// OpenGLView initialized in testsAppDelegate.mm on ios platform, nothing need to do here.
|
||||
|
||||
#endif // CC_PLATFORM_IOS
|
||||
|
||||
#if (CC_TARGET_PLATFORM == CC_PLATFORM_ANDROID)
|
||||
|
||||
// OpenGLView initialized in HelloWorld/android/jni/helloworld/main.cpp
|
||||
// the default setting is to create a fullscreen view
|
||||
// if you want to use auto-scale, please enable view->create(320,480) in main.cpp
|
||||
// if the resources under '/sdcard" or other writeable path, set it.
|
||||
// warning: the audio source should in assets/
|
||||
// cocos2d::CCFileUtils::setResourcePath("/sdcard");
|
||||
|
||||
#endif // CC_PLATFORM_ANDROID
|
||||
|
||||
#if (CC_TARGET_PLATFORM == CC_PLATFORM_MARMALADE)
|
||||
// MaxAksenov said it's NOT a very elegant solution. I agree, haha
|
||||
CCDirector::sharedDirector()->setDeviceOrientation(kCCDeviceOrientationLandscapeLeft);
|
||||
#endif
|
||||
#if (CC_TARGET_PLATFORM == CC_PLATFORM_LINUX)
|
||||
|
||||
// Initialize OpenGLView instance, that release by CCDirector when application terminate.
|
||||
// The HelloWorld is designed as HVGA.
|
||||
CCEGLView * pMainWnd = new CCEGLView();
|
||||
CC_BREAK_IF(! pMainWnd
|
||||
|| ! pMainWnd->Create("cocos2d: Hello World", 800, 480,480, 320));
|
||||
|
||||
CCFileUtils::setResourcePath("../Resource/");
|
||||
|
||||
#endif // CC_PLATFORM_LINUX
|
||||
|
||||
#if (CC_TARGET_PLATFORM == CC_PLATFORM_BADA)
|
||||
|
||||
CCEGLView * pMainWnd = new CCEGLView();
|
||||
CC_BREAK_IF(! pMainWnd|| ! pMainWnd->Create(this, 480, 320));
|
||||
pMainWnd->setDeviceOrientation(Osp::Ui::ORIENTATION_LANDSCAPE);
|
||||
CCFileUtils::setResourcePath("/Res/");
|
||||
|
||||
#endif // CC_PLATFORM_BADA
|
||||
|
||||
#if (CC_TARGET_PLATFORM == CC_PLATFORM_QNX)
|
||||
CCEGLView * pMainWnd = new CCEGLView();
|
||||
CC_BREAK_IF(! pMainWnd|| ! pMainWnd->Create(480, 320));
|
||||
CCFileUtils::setResourcePath("./app/native/Resource");
|
||||
#endif // CC_PLATFORM_QNX
|
||||
bRet = true;
|
||||
} while (0);
|
||||
return bRet;
|
||||
}
|
||||
|
||||
bool AppDelegate::applicationDidFinishLaunching()
|
||||
{
|
||||
// initialize director
|
||||
CCDirector *pDirector = CCDirector::sharedDirector();
|
||||
pDirector->setOpenGLView(&CCEGLView::sharedOpenGLView());
|
||||
|
||||
// enable High Resource Mode(2x, such as iphone4) and maintains low resource on other devices.
|
||||
// pDirector->enableRetinaDisplay(true);
|
||||
|
||||
// turn on display FPS
|
||||
pDirector->setDisplayFPS(true);
|
||||
|
||||
// set FPS. the default value is 1.0/60 if you don't call this
|
||||
pDirector->setAnimationInterval(1.0 / 60);
|
||||
|
||||
[! if CC_USE_LUA]
|
||||
// register lua engine
|
||||
CCScriptEngineProtocol* pEngine = CCLuaEngine::engine();
|
||||
CCScriptEngineManager::sharedManager()->setScriptEngine(pEngine);
|
||||
|
||||
#if (CC_TARGET_PLATFORM == CC_PLATFORM_ANDROID)
|
||||
unsigned long size;
|
||||
char *pFileContent = (char*)CCFileUtils::getFileData("hello.lua", "r", &size);
|
||||
|
||||
if (pFileContent)
|
||||
{
|
||||
// copy the file contents and add '\0' at the end, or the lua parser can not parse it
|
||||
char *pCodes = new char[size + 1];
|
||||
pCodes[size] = '\0';
|
||||
memcpy(pCodes, pFileContent, size);
|
||||
delete[] pFileContent;
|
||||
|
||||
pEngine->executeString(pCodes);
|
||||
delete []pCodes;
|
||||
}
|
||||
#endif
|
||||
|
||||
#if (CC_TARGET_PLATFORM == CC_PLATFORM_WIN32) || (CC_TARGET_PLATFORM == CC_PLATFORM_IOS) || (CC_TARGET_PLATFORM == CC_PLATFORM_MARMALADE)
|
||||
string path = CCFileUtils::fullPathFromRelativePath("hello.lua");
|
||||
pEngine->addSearchPath(path.substr(0, path.find_last_of("/")).c_str());
|
||||
pEngine->executeScriptFile(path.c_str());
|
||||
#endif
|
||||
[! else]
|
||||
// create a scene. it's an autorelease object
|
||||
CCScene *pScene = HelloWorld::scene();
|
||||
|
||||
// run
|
||||
pDirector->runWithScene(pScene);
|
||||
[! endif]
|
||||
return true;
|
||||
}
|
||||
|
||||
// This function will be called when the app is inactive. When comes a phone call,it's be invoked too
|
||||
void AppDelegate::applicationDidEnterBackground()
|
||||
{
|
||||
CCDirector::sharedDirector()->pause();
|
||||
[! if CC_USE_COCOS_DENSHION_SIMPLE_AUDIO_ENGINE]
|
||||
|
||||
SimpleAudioEngine::sharedEngine()->pauseBackgroundMusic();
|
||||
[! endif]
|
||||
}
|
||||
|
||||
// this function will be called when the app is active again
|
||||
void AppDelegate::applicationWillEnterForeground()
|
||||
{
|
||||
CCDirector::sharedDirector()->resume();
|
||||
[! if CC_USE_COCOS_DENSHION_SIMPLE_AUDIO_ENGINE]
|
||||
|
||||
SimpleAudioEngine::sharedEngine()->resumeBackgroundMusic();
|
||||
[! endif]
|
||||
}
|
||||
|
|
|
@ -1,43 +1,43 @@
|
|||
#ifndef __APP_DELEGATE_H__
|
||||
#define __APP_DELEGATE_H__
|
||||
|
||||
#include "CCApplication.h"
|
||||
|
||||
/**
|
||||
@brief The cocos2d Application.
|
||||
|
||||
The reason for implement as private inheritance is to hide some interface call by CCDirector.
|
||||
*/
|
||||
class AppDelegate : private cocos2d::CCApplication
|
||||
{
|
||||
public:
|
||||
AppDelegate();
|
||||
virtual ~AppDelegate();
|
||||
|
||||
/**
|
||||
@brief Implement for initialize OpenGL instance, set source path, etc...
|
||||
*/
|
||||
virtual bool initInstance();
|
||||
|
||||
/**
|
||||
@brief Implement CCDirector and CCScene init code here.
|
||||
@return true Initialize success, app continue.
|
||||
@return false Initialize failed, app terminate.
|
||||
*/
|
||||
virtual bool applicationDidFinishLaunching();
|
||||
|
||||
/**
|
||||
@brief The function be called when the application enter background
|
||||
@param the pointer of the application
|
||||
*/
|
||||
virtual void applicationDidEnterBackground();
|
||||
|
||||
/**
|
||||
@brief The function be called when the application enter foreground
|
||||
@param the pointer of the application
|
||||
*/
|
||||
virtual void applicationWillEnterForeground();
|
||||
};
|
||||
|
||||
#endif // __APP_DELEGATE_H__
|
||||
|
||||
#ifndef __APP_DELEGATE_H__
|
||||
#define __APP_DELEGATE_H__
|
||||
|
||||
#include "CCApplication.h"
|
||||
|
||||
/**
|
||||
@brief The cocos2d Application.
|
||||
|
||||
The reason for implement as private inheritance is to hide some interface call by CCDirector.
|
||||
*/
|
||||
class AppDelegate : private cocos2d::CCApplication
|
||||
{
|
||||
public:
|
||||
AppDelegate();
|
||||
virtual ~AppDelegate();
|
||||
|
||||
/**
|
||||
@brief Implement for initialize OpenGL instance, set source path, etc...
|
||||
*/
|
||||
virtual bool initInstance();
|
||||
|
||||
/**
|
||||
@brief Implement CCDirector and CCScene init code here.
|
||||
@return true Initialize success, app continue.
|
||||
@return false Initialize failed, app terminate.
|
||||
*/
|
||||
virtual bool applicationDidFinishLaunching();
|
||||
|
||||
/**
|
||||
@brief The function be called when the application enter background
|
||||
@param the pointer of the application
|
||||
*/
|
||||
virtual void applicationDidEnterBackground();
|
||||
|
||||
/**
|
||||
@brief The function be called when the application enter foreground
|
||||
@param the pointer of the application
|
||||
*/
|
||||
virtual void applicationWillEnterForeground();
|
||||
};
|
||||
|
||||
#endif // __APP_DELEGATE_H__
|
||||
|
||||
|
|
|
@ -1,97 +1,97 @@
|
|||
#include "HelloWorldScene.h"
|
||||
|
||||
using namespace cocos2d;
|
||||
|
||||
CCScene* HelloWorld::scene()
|
||||
{
|
||||
CCScene * scene = NULL;
|
||||
do
|
||||
{
|
||||
// 'scene' is an autorelease object
|
||||
scene = CCScene::node();
|
||||
CC_BREAK_IF(! scene);
|
||||
|
||||
// 'layer' is an autorelease object
|
||||
HelloWorld *layer = HelloWorld::node();
|
||||
CC_BREAK_IF(! layer);
|
||||
|
||||
// add layer as a child to scene
|
||||
scene->addChild(layer);
|
||||
} while (0);
|
||||
|
||||
// return the scene
|
||||
return scene;
|
||||
}
|
||||
|
||||
// on "init" you need to initialize your instance
|
||||
bool HelloWorld::init()
|
||||
{
|
||||
bool bRet = false;
|
||||
do
|
||||
{
|
||||
//////////////////////////////////////////////////////////////////////////
|
||||
// super init first
|
||||
//////////////////////////////////////////////////////////////////////////
|
||||
|
||||
CC_BREAK_IF(! CCLayer::init());
|
||||
|
||||
//////////////////////////////////////////////////////////////////////////
|
||||
// add your codes below...
|
||||
//////////////////////////////////////////////////////////////////////////
|
||||
|
||||
// 1. Add a menu item with "X" image, which is clicked to quit the program.
|
||||
|
||||
// Create a "close" menu item with close icon, it's an auto release object.
|
||||
CCMenuItemImage *pCloseItem = CCMenuItemImage::itemFromNormalImage(
|
||||
"CloseNormal.png",
|
||||
"CloseSelected.png",
|
||||
this,
|
||||
menu_selector(HelloWorld::menuCloseCallback));
|
||||
CC_BREAK_IF(! pCloseItem);
|
||||
|
||||
// Place the menu item bottom-right conner.
|
||||
pCloseItem->setPosition(ccp(CCDirector::sharedDirector()->getWinSize().width - 20, 20));
|
||||
|
||||
// Create a menu with the "close" menu item, it's an auto release object.
|
||||
CCMenu* pMenu = CCMenu::menuWithItems(pCloseItem, NULL);
|
||||
pMenu->setPosition(CCPointZero);
|
||||
CC_BREAK_IF(! pMenu);
|
||||
|
||||
// Add the menu to HelloWorld layer as a child layer.
|
||||
this->addChild(pMenu, 1);
|
||||
|
||||
// 2. Add a label shows "Hello World".
|
||||
|
||||
// Create a label and initialize with string "Hello World".
|
||||
CCLabelTTF* pLabel = CCLabelTTF::labelWithString("Hello World", "Thonburi", 64);
|
||||
CC_BREAK_IF(! pLabel);
|
||||
|
||||
// Get window size and place the label upper.
|
||||
CCSize size = CCDirector::sharedDirector()->getWinSize();
|
||||
pLabel->setPosition(ccp(size.width / 2, size.height - 20));
|
||||
|
||||
// Add the label to HelloWorld layer as a child layer.
|
||||
this->addChild(pLabel, 1);
|
||||
|
||||
// 3. Add add a splash screen, show the cocos2d splash image.
|
||||
CCSprite* pSprite = CCSprite::spriteWithFile("HelloWorld.png");
|
||||
CC_BREAK_IF(! pSprite);
|
||||
|
||||
// Place the sprite on the center of the screen
|
||||
pSprite->setPosition(ccp(size.width/2, size.height/2));
|
||||
|
||||
// Add the sprite to HelloWorld layer as a child layer.
|
||||
this->addChild(pSprite, 0);
|
||||
|
||||
bRet = true;
|
||||
} while (0);
|
||||
|
||||
return bRet;
|
||||
}
|
||||
|
||||
void HelloWorld::menuCloseCallback(CCObject* pSender)
|
||||
{
|
||||
// "close" menu item clicked
|
||||
CCDirector::sharedDirector()->end();
|
||||
}
|
||||
|
||||
#include "HelloWorldScene.h"
|
||||
|
||||
using namespace cocos2d;
|
||||
|
||||
CCScene* HelloWorld::scene()
|
||||
{
|
||||
CCScene * scene = NULL;
|
||||
do
|
||||
{
|
||||
// 'scene' is an autorelease object
|
||||
scene = CCScene::node();
|
||||
CC_BREAK_IF(! scene);
|
||||
|
||||
// 'layer' is an autorelease object
|
||||
HelloWorld *layer = HelloWorld::node();
|
||||
CC_BREAK_IF(! layer);
|
||||
|
||||
// add layer as a child to scene
|
||||
scene->addChild(layer);
|
||||
} while (0);
|
||||
|
||||
// return the scene
|
||||
return scene;
|
||||
}
|
||||
|
||||
// on "init" you need to initialize your instance
|
||||
bool HelloWorld::init()
|
||||
{
|
||||
bool bRet = false;
|
||||
do
|
||||
{
|
||||
//////////////////////////////////////////////////////////////////////////
|
||||
// super init first
|
||||
//////////////////////////////////////////////////////////////////////////
|
||||
|
||||
CC_BREAK_IF(! CCLayer::init());
|
||||
|
||||
//////////////////////////////////////////////////////////////////////////
|
||||
// add your codes below...
|
||||
//////////////////////////////////////////////////////////////////////////
|
||||
|
||||
// 1. Add a menu item with "X" image, which is clicked to quit the program.
|
||||
|
||||
// Create a "close" menu item with close icon, it's an auto release object.
|
||||
CCMenuItemImage *pCloseItem = CCMenuItemImage::itemFromNormalImage(
|
||||
"CloseNormal.png",
|
||||
"CloseSelected.png",
|
||||
this,
|
||||
menu_selector(HelloWorld::menuCloseCallback));
|
||||
CC_BREAK_IF(! pCloseItem);
|
||||
|
||||
// Place the menu item bottom-right conner.
|
||||
pCloseItem->setPosition(ccp(CCDirector::sharedDirector()->getWinSize().width - 20, 20));
|
||||
|
||||
// Create a menu with the "close" menu item, it's an auto release object.
|
||||
CCMenu* pMenu = CCMenu::menuWithItems(pCloseItem, NULL);
|
||||
pMenu->setPosition(CCPointZero);
|
||||
CC_BREAK_IF(! pMenu);
|
||||
|
||||
// Add the menu to HelloWorld layer as a child layer.
|
||||
this->addChild(pMenu, 1);
|
||||
|
||||
// 2. Add a label shows "Hello World".
|
||||
|
||||
// Create a label and initialize with string "Hello World".
|
||||
CCLabelTTF* pLabel = CCLabelTTF::labelWithString("Hello World", "Thonburi", 64);
|
||||
CC_BREAK_IF(! pLabel);
|
||||
|
||||
// Get window size and place the label upper.
|
||||
CCSize size = CCDirector::sharedDirector()->getWinSize();
|
||||
pLabel->setPosition(ccp(size.width / 2, size.height - 20));
|
||||
|
||||
// Add the label to HelloWorld layer as a child layer.
|
||||
this->addChild(pLabel, 1);
|
||||
|
||||
// 3. Add add a splash screen, show the cocos2d splash image.
|
||||
CCSprite* pSprite = CCSprite::spriteWithFile("HelloWorld.png");
|
||||
CC_BREAK_IF(! pSprite);
|
||||
|
||||
// Place the sprite on the center of the screen
|
||||
pSprite->setPosition(ccp(size.width/2, size.height/2));
|
||||
|
||||
// Add the sprite to HelloWorld layer as a child layer.
|
||||
this->addChild(pSprite, 0);
|
||||
|
||||
bRet = true;
|
||||
} while (0);
|
||||
|
||||
return bRet;
|
||||
}
|
||||
|
||||
void HelloWorld::menuCloseCallback(CCObject* pSender)
|
||||
{
|
||||
// "close" menu item clicked
|
||||
CCDirector::sharedDirector()->end();
|
||||
}
|
||||
|
||||
|
|
|
@ -1,34 +1,34 @@
|
|||
#ifndef __HELLOWORLD_SCENE_H__
|
||||
#define __HELLOWORLD_SCENE_H__
|
||||
|
||||
#include "cocos2d.h"
|
||||
[! if CC_USE_BOX2D]
|
||||
|
||||
#include "Box2D/Box2D.h"
|
||||
[! endif]
|
||||
[! if CC_USE_CHIPMUNK]
|
||||
|
||||
#include "chipmunk.h"
|
||||
[! endif]
|
||||
[! if CC_USE_COCOS_DENSHION_SIMPLE_AUDIO_ENGINE]
|
||||
|
||||
#include "SimpleAudioEngine.h"
|
||||
[! endif]
|
||||
|
||||
class HelloWorld : public cocos2d::CCLayer
|
||||
{
|
||||
public:
|
||||
// Here's a difference. Method 'init' in cocos2d-x returns bool, instead of returning 'id' in cocos2d-iphone
|
||||
virtual bool init();
|
||||
|
||||
// there's no 'id' in cpp, so we recommand to return the exactly class pointer
|
||||
static cocos2d::CCScene* scene();
|
||||
|
||||
// a selector callback
|
||||
virtual void menuCloseCallback(CCObject* pSender);
|
||||
|
||||
// implement the "static node()" method manually
|
||||
LAYER_NODE_FUNC(HelloWorld);
|
||||
};
|
||||
|
||||
#ifndef __HELLOWORLD_SCENE_H__
|
||||
#define __HELLOWORLD_SCENE_H__
|
||||
|
||||
#include "cocos2d.h"
|
||||
[! if CC_USE_BOX2D]
|
||||
|
||||
#include "Box2D/Box2D.h"
|
||||
[! endif]
|
||||
[! if CC_USE_CHIPMUNK]
|
||||
|
||||
#include "chipmunk.h"
|
||||
[! endif]
|
||||
[! if CC_USE_COCOS_DENSHION_SIMPLE_AUDIO_ENGINE]
|
||||
|
||||
#include "SimpleAudioEngine.h"
|
||||
[! endif]
|
||||
|
||||
class HelloWorld : public cocos2d::CCLayer
|
||||
{
|
||||
public:
|
||||
// Here's a difference. Method 'init' in cocos2d-x returns bool, instead of returning 'id' in cocos2d-iphone
|
||||
virtual bool init();
|
||||
|
||||
// there's no 'id' in cpp, so we recommand to return the exactly class pointer
|
||||
static cocos2d::CCScene* scene();
|
||||
|
||||
// a selector callback
|
||||
virtual void menuCloseCallback(CCObject* pSender);
|
||||
|
||||
// implement the "static node()" method manually
|
||||
LAYER_NODE_FUNC(HelloWorld);
|
||||
};
|
||||
|
||||
#endif // __HELLOWORLD_SCENE_H__
|
|
@ -1,17 +1,33 @@
|
|||
#include "main.h"
|
||||
|
||||
#include "AppDelegate.h"
|
||||
|
||||
int APIENTRY _tWinMain(HINSTANCE hInstance,
|
||||
HINSTANCE hPrevInstance,
|
||||
LPTSTR lpCmdLine,
|
||||
int nCmdShow)
|
||||
{
|
||||
UNREFERENCED_PARAMETER(hPrevInstance);
|
||||
UNREFERENCED_PARAMETER(lpCmdLine);
|
||||
|
||||
// create the application instance
|
||||
AppDelegate app;
|
||||
|
||||
return cocos2d::CCApplication::sharedApplication().run();
|
||||
}
|
||||
#include "main.h"
|
||||
|
||||
#include "AppDelegate.h"
|
||||
|
||||
// uncomment below line, open debug console
|
||||
// #define USE_WIN32_CONSOLE
|
||||
|
||||
int APIENTRY _tWinMain(HINSTANCE hInstance,
|
||||
HINSTANCE hPrevInstance,
|
||||
LPTSTR lpCmdLine,
|
||||
int nCmdShow)
|
||||
{
|
||||
UNREFERENCED_PARAMETER(hPrevInstance);
|
||||
UNREFERENCED_PARAMETER(lpCmdLine);
|
||||
|
||||
#ifdef USE_WIN32_CONSOLE
|
||||
AllocConsole();
|
||||
freopen("CONIN$", "r", stdin);
|
||||
freopen("CONOUT$", "w", stdout);
|
||||
freopen("CONOUT$", "w", stderr);
|
||||
#endif
|
||||
|
||||
// create the application instance
|
||||
AppDelegate app;
|
||||
|
||||
int ret = cocos2d::CCApplication::sharedApplication().run();
|
||||
|
||||
#ifdef USE_WIN32_CONSOLE
|
||||
FreeConsole();
|
||||
#endif
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
|
|
@ -1,13 +1,13 @@
|
|||
#ifndef __MAIN_H__
|
||||
#define __MAIN_H__
|
||||
|
||||
#define WIN32_LEAN_AND_MEAN // Exclude rarely-used stuff from Windows headers
|
||||
|
||||
// Windows Header Files:
|
||||
#include <windows.h>
|
||||
#include <tchar.h>
|
||||
|
||||
// C RunTime Header Files
|
||||
#include "CCStdC.h"
|
||||
|
||||
#endif // __WINMAIN_H__
|
||||
#ifndef __MAIN_H__
|
||||
#define __MAIN_H__
|
||||
|
||||
#define WIN32_LEAN_AND_MEAN // Exclude rarely-used stuff from Windows headers
|
||||
|
||||
// Windows Header Files:
|
||||
#include <windows.h>
|
||||
#include <tchar.h>
|
||||
|
||||
// C RunTime Header Files
|
||||
#include "CCStdC.h"
|
||||
|
||||
#endif // __WINMAIN_H__
|
||||
|
|
|
@ -1,22 +1,22 @@
|
|||
//{{NO_DEPENDENCIES}}
|
||||
// Microsoft Visual C++ generated include file.
|
||||
// Used by [!output PROJECT_NAME].RC
|
||||
//
|
||||
|
||||
[!if WTL_COM_SERVER]
|
||||
#define IDS_PROJNAME 100
|
||||
#define IDR_[!output UPPERCASE_SAFE_PROJECT_NAME] 100
|
||||
[!endif]
|
||||
|
||||
#define ID_FILE_NEW_WINDOW 32771
|
||||
|
||||
// Next default values for new objects
|
||||
//
|
||||
#ifdef APSTUDIO_INVOKED
|
||||
#ifndef APSTUDIO_READONLY_SYMBOLS
|
||||
#define _APS_NEXT_RESOURCE_VALUE 201
|
||||
#define _APS_NEXT_CONTROL_VALUE 1000
|
||||
#define _APS_NEXT_SYMED_VALUE 101
|
||||
#define _APS_NEXT_COMMAND_VALUE 32775
|
||||
#endif
|
||||
#endif
|
||||
//{{NO_DEPENDENCIES}}
|
||||
// Microsoft Visual C++ generated include file.
|
||||
// Used by [!output PROJECT_NAME].RC
|
||||
//
|
||||
|
||||
[!if WTL_COM_SERVER]
|
||||
#define IDS_PROJNAME 100
|
||||
#define IDR_[!output UPPERCASE_SAFE_PROJECT_NAME] 100
|
||||
[!endif]
|
||||
|
||||
#define ID_FILE_NEW_WINDOW 32771
|
||||
|
||||
// Next default values for new objects
|
||||
//
|
||||
#ifdef APSTUDIO_INVOKED
|
||||
#ifndef APSTUDIO_READONLY_SYMBOLS
|
||||
#define _APS_NEXT_RESOURCE_VALUE 201
|
||||
#define _APS_NEXT_CONTROL_VALUE 1000
|
||||
#define _APS_NEXT_SYMED_VALUE 101
|
||||
#define _APS_NEXT_COMMAND_VALUE 32775
|
||||
#endif
|
||||
#endif
|
||||
|
|
Binary file not shown.
Before Width: | Height: | Size: 43 B |
Binary file not shown.
Before Width: | Height: | Size: 43 B |
Binary file not shown.
Before Width: | Height: | Size: 43 B |
|
@ -1,782 +0,0 @@
|
|||
/******************************************************************************/
|
||||
/*DEFAULT STYLES FOR ALL SECTIONS**********************************************/
|
||||
/******************************************************************************/
|
||||
body { font-family: Tahoma, MS Sans Serif, Arial, Sans Serif;
|
||||
font-weight: normal;
|
||||
font-size: 8pt;
|
||||
color: buttontext;
|
||||
background-color: buttonface;
|
||||
margin-top: 0px;
|
||||
margin-left: 0px;
|
||||
margin-right: 0px;
|
||||
margin-bottom: 0px;
|
||||
overflow: auto; }
|
||||
|
||||
a:link { color: captiontext;
|
||||
text-decoration: none; }
|
||||
|
||||
a:visited { color: captiontext;
|
||||
text-decoration: none; }
|
||||
|
||||
a:active { color: captiontext;
|
||||
text-decoration: none; }
|
||||
|
||||
a:hover { color: captiontext;
|
||||
text-decoration: underline; }
|
||||
|
||||
table { font-family: Tahoma, MS Sans Serif, Arial, Sans Serif;
|
||||
font-weight: normal;
|
||||
font-size: 8pt;
|
||||
color: buttontext;
|
||||
width: 100%; }
|
||||
|
||||
table.one { table-layout: fixed;
|
||||
height: 100%;
|
||||
width: 100%; }
|
||||
|
||||
|
||||
/*DEFAULT STYLES FOR THE 'INTRODUCTION' TABLE**********************************/
|
||||
/******************************************************************************/
|
||||
table.two { table-layout: fixed;
|
||||
height: 79px;
|
||||
width: 100%;
|
||||
background-color: window; }
|
||||
|
||||
td.image { text-align: right; }
|
||||
|
||||
|
||||
/*DEFAULT STYLES FOR THE 'NAVIGATION' TABLE************************************/
|
||||
/******************************************************************************/
|
||||
table.linkText { line-height: 95%;
|
||||
width: 1.7in;
|
||||
height: 2.6em;
|
||||
position: relative;
|
||||
left: 0.1in;
|
||||
z-index: 2; }
|
||||
|
||||
span { position: relative;
|
||||
z-index: 3; }
|
||||
|
||||
span.horiLine1 { height: 30px;
|
||||
width: 166px;
|
||||
position: absolute;
|
||||
top: -1px;
|
||||
left: -1px;
|
||||
bottom: -1px;
|
||||
z-index: 2; }
|
||||
|
||||
|
||||
/*DEFAULT STYLES FOR THE ALL BUTTONS AND THE 'BUTTONS' TABLE*******************/
|
||||
/******************************************************************************/
|
||||
button { font-family: Tahoma, MS Sans Serif, Arial, Sans Serif;
|
||||
font-weight: normal;
|
||||
font-size: 8pt;
|
||||
height: 23px;
|
||||
cursor: hand; }
|
||||
|
||||
.buttons { width: 100%; }
|
||||
|
||||
/*DEFAULT STYLES FOR THE 'CONTENT' TABLE***************************************/
|
||||
/******************************************************************************/
|
||||
table.fixedSize { table-layout: fixed; }
|
||||
|
||||
table.content { table-layout: fixed;
|
||||
height: 100%;
|
||||
width: 100%; }
|
||||
|
||||
ol { font-family: Tahoma, MS Sans Serif, Arial, Sans Serif;
|
||||
font-weight: normal;
|
||||
font-size: 8pt;
|
||||
color: buttontext;
|
||||
margin-top: -1px;
|
||||
margin-bottom: 16px; }
|
||||
|
||||
ul { font-family: Tahoma, MS Sans Serif, Arial, Sans Serif;
|
||||
font-weight: normal;
|
||||
font-size: 8pt;
|
||||
color: buttontext;
|
||||
margin-top: 3px;
|
||||
margin-bottom: 16px; }
|
||||
|
||||
li { font-family: Tahoma, MS Sans Serif, Arial, Sans Serif;
|
||||
font-weight: normal;
|
||||
font-size: 8pt;
|
||||
color: buttontext;
|
||||
position: relative;
|
||||
left: -15px;
|
||||
margin-bottom: 1px; }
|
||||
|
||||
span.itemTextTop { position: relative; }
|
||||
|
||||
span.itemText { font-family: Tahoma, MS Sans Serif, Arial, Sans Serif;
|
||||
font-weight: normal;
|
||||
font-size: 8pt;
|
||||
line-height: 9pt;
|
||||
position: relative;
|
||||
top: -3px; }
|
||||
|
||||
span.itemTextIndent { position: relative;
|
||||
left: 17px;
|
||||
top: -3px; }
|
||||
|
||||
span.sideBtnHidden { width: 100%;
|
||||
margin-top: 3px;
|
||||
margin-bottom: 0px; }
|
||||
|
||||
div.itemTextRadioAa { position: relative;
|
||||
top: -17px;
|
||||
left: 17px;
|
||||
margin-bottom: -25px; }
|
||||
|
||||
div.itemTextRadioA { position: relative;
|
||||
top: -19px;
|
||||
left: 17px;
|
||||
margin-bottom: -25px; }
|
||||
|
||||
div.itemTextRadioB { position: relative;
|
||||
top: -19px;
|
||||
left: 25px;
|
||||
margin-bottom: -25px; }
|
||||
|
||||
div.itemTextRadioIndentA { position: relative;
|
||||
top: -17px;
|
||||
left: 30px;
|
||||
margin-bottom: -25px; }
|
||||
|
||||
div.itemTextRadioIndentB { position: relative;
|
||||
top: -17px;
|
||||
left: 42px;
|
||||
margin-bottom: -25px; }
|
||||
|
||||
div.itemTextCheckboxA { position: relative;
|
||||
top: -17px;
|
||||
left: 17px;
|
||||
margin-bottom: -23px; }
|
||||
|
||||
div.itemTextCheckboxB { position: relative;
|
||||
top: -18px;
|
||||
left: 25px;
|
||||
padding-top: 1px;
|
||||
margin-bottom: -25px; }
|
||||
|
||||
div.itemTextCheckboxIndentB { position: relative;
|
||||
top: -16px;
|
||||
left: 42px;
|
||||
margin-bottom: -25px; }
|
||||
|
||||
input { font-family: Tahoma, MS Sans Serif, Arial, Sans Serif;
|
||||
font-weight: normal;
|
||||
font-size: 8pt;
|
||||
color: buttontext; }
|
||||
|
||||
select { font-family: Tahoma, MS Sans Serif, Arial, Sans Serif;
|
||||
font-weight: normal;
|
||||
font-size: 8pt;
|
||||
color: buttontext; }
|
||||
|
||||
.radio { position: relative;
|
||||
top: -2px;
|
||||
left: 4px; }
|
||||
|
||||
.radioA { position: relative;
|
||||
top: -1px;
|
||||
margin-left: -4px;
|
||||
z-index: 2; }
|
||||
|
||||
.radioIndent { margin-top: -2px;
|
||||
margin-left: 17px; }
|
||||
|
||||
.radioIndentA { margin-top: -2px;
|
||||
margin-left: 9px; }
|
||||
|
||||
.checkbox { position: relative;
|
||||
top: -1px;
|
||||
margin-left: -4px;
|
||||
z-index: 2; }
|
||||
|
||||
.checkboxA { position: relative;
|
||||
top: -2px;
|
||||
left: 4px; }
|
||||
|
||||
.checkboxIndent { position:relative;
|
||||
margin-top: -1px;
|
||||
margin-left: 21px; }
|
||||
|
||||
.comment { width: 578px;
|
||||
position: relative;
|
||||
top: 5px;
|
||||
bottom: 6px; }
|
||||
|
||||
.commentA { width: 398px;
|
||||
position: relative;
|
||||
top: 5px;
|
||||
bottom: 6px; }
|
||||
|
||||
.commentB { width: 578px;
|
||||
position: relative;
|
||||
top: 3px;
|
||||
bottom: -3px; }
|
||||
|
||||
/****THIS IS THE STANDARD TABBED WIZARD, TWO COLUMN INPUT BOX******************/
|
||||
input.sideBtn { width: 193px;
|
||||
position: relative;
|
||||
top: 3px; }
|
||||
|
||||
/****THIS IS THE STANDARD THREE COLUMN WIZARD INPUT BOX************************/
|
||||
input.sideBtnThreeColumn { width: 185px;
|
||||
position: relative;
|
||||
top: 3px; }
|
||||
|
||||
/****THIS IS THE DEFAULT INPUT BOX IN NON-TABBED AND 2 COLUMN WIZARD***********/
|
||||
input.itemTextTwoColumnLong { width: 283px;
|
||||
position: relative;
|
||||
top: 3px; }
|
||||
|
||||
/****THIS IS AN INPUT BOX INDENTED UNDER A CHECKBOX SECTION********************/
|
||||
input.sideBtnIndent { width: 175px;
|
||||
position: relative;
|
||||
top: 3px;
|
||||
left: 18px;
|
||||
bottom: 6px; }
|
||||
|
||||
/****THIS INPUT BOX HAS IS INDENTED UNDER A HEADING AND RULE SECTION***********/
|
||||
input.sideBtnB { width: 185px;
|
||||
position: relative;
|
||||
top: 3px;
|
||||
bottom: 6px; }
|
||||
|
||||
input.sideBtnBA { width: 175px;
|
||||
position: relative;
|
||||
top: 3px;
|
||||
bottom: 6px; }
|
||||
|
||||
/****THIS INPUT BOX HAS A "..." BUTTON BESIDE IT AND IT'S A TABBED WIZARD******/
|
||||
input.sideBtn2 { width: 169px;
|
||||
position: relative;
|
||||
top: 3px;
|
||||
bottom: 6px; }
|
||||
|
||||
/****"..." BUTTON IN A NON-TABBED, 3 COLUMN WIZARD*****************************/
|
||||
input.sideBtn2ThreeColumn { width: 161px;
|
||||
position: relative;
|
||||
top: 3px;
|
||||
bottom: 6px; }
|
||||
|
||||
/****THIS IS AN INPUT BOX IN NON-TABBED AND 2 COLUMN WIZARD WITH A BUTTON******/
|
||||
input.TwoColumnLongButton { width: 259px;
|
||||
position: relative;
|
||||
top: 3px;
|
||||
bottom: 6px; }
|
||||
|
||||
/****THIS INPUT BOX HAS A "..." BUTTON BESIDE IT AND IT'S UNDER A CHECKBOX*****/
|
||||
input.sidebtn2Indent { width: 151px;
|
||||
position: relative;
|
||||
top: 3px;
|
||||
left: 18px;
|
||||
bottom: 6px; }
|
||||
|
||||
/****"..." BUTTON IS UNDER A SECTION IN A TWO COLUMN AND TABBED WIZARD*********/
|
||||
input.sidebtn21 { width: 161px;
|
||||
position: relative;
|
||||
top: 3px;
|
||||
bottom: 6px; }
|
||||
|
||||
/****"..." BUTTON IS UNDER A SECTION IN A THREE COLUMN AND TABBED WIZARD*********/
|
||||
input.sidebtn21A { width: 153px;
|
||||
position: relative;
|
||||
top: 3px;
|
||||
bottom: 6px; }
|
||||
|
||||
/****THIS IS THE STANDARD TABBED WIZARD, TWO COLUMN SELECTION BOX**************/
|
||||
select.sidebtn { width: 193px;
|
||||
position: relative;
|
||||
top: 4px;
|
||||
bottom: -3px; }
|
||||
|
||||
select.sidebtnNoWidth { position: relative;
|
||||
top: 4px;
|
||||
bottom: -3px; }
|
||||
|
||||
/****THIS IS THE STANDARD TABBED WIZARD, ONE COLUMN SELECTION BOX**************/
|
||||
select.sideBtnOneCLong { width: 398px;
|
||||
position: relative;
|
||||
top: 3px; }
|
||||
|
||||
/****THIS IS THE STANDARD THREE COLUMN WIZARD INPUT BOX************************/
|
||||
select.sideBtnThreeColumn { width: 185px;
|
||||
position: relative;
|
||||
top: 4px;
|
||||
bottom: -3px; }
|
||||
|
||||
/****THIS IS THE DEFAULT INPUT BOX IN NON-TABBED AND 2 COLUMN WIZARD***********/
|
||||
select.itemTextTwoColumnLong { width: 283px;
|
||||
position: relative;
|
||||
top: 4px;
|
||||
bottom: -3px; }
|
||||
|
||||
/****THIS SELECTION BOX IS INDENTED UNDER A HEADING AND RULE SECTION***********/
|
||||
select.sidebtnB { width: 164px;
|
||||
position: relative;
|
||||
top: 4px;
|
||||
left: 8px;
|
||||
bottom: -3px; }
|
||||
|
||||
/****THIS SELECTION BOX IS BELOW AND ASSOCIATED WITH A CHECKBOX****************/
|
||||
select.sidebtn2 { width: 164px;
|
||||
position: relative;
|
||||
top: 11px;
|
||||
left: 17px;
|
||||
bottom: -3px; }
|
||||
|
||||
select.sidebtnIndent { width: 175px;
|
||||
position: relative;
|
||||
top: 4px;
|
||||
left: 18px;
|
||||
bottom: -3px; }
|
||||
|
||||
/****THIS SELECTION BOX IS BELOW AND ASSOCIATED WITH A CHECKBOX AND HEADING****/
|
||||
select.sidebtn2AShort { width: 168px;
|
||||
position: relative;
|
||||
top: 4px;
|
||||
left: 25px;
|
||||
bottom: -3px; }
|
||||
|
||||
/****THIS SELECTION BOX IS IN A TABBED, TWO COLUM WIZARD AND FOR < << > >>*****/
|
||||
select.sidebtn3 { width: 177px;
|
||||
position: relative;
|
||||
top: 4px;
|
||||
bottom: -3px; }
|
||||
|
||||
/****THIS IS A SELECTION BOX IN NON-TABBED AND 2 COLUMN WIZARD WITH A BUTTON***/
|
||||
select.TwoColumnLongButton { width: 259px;
|
||||
position: relative;
|
||||
top: 4px;
|
||||
bottom: -3px; }
|
||||
|
||||
/****THIS IS A SELECTION BOX IN NON-TABBED AND 2 COLUMN WIZARD WITH A BUTTON***/
|
||||
select.IndentListBoxWithButton { width: 283px;
|
||||
position: relative;
|
||||
top: 4px;
|
||||
bottom: -3px;
|
||||
left: 18px; }
|
||||
|
||||
/****THIS IS THE DEFAULT OBJECT DROP DOWN IN 2 COLUMN AND TABBED WIZARD********/
|
||||
object.itemtext { font-family: Tahoma, MS Sans Serif, Arial, Sans Serif;
|
||||
font-weight: normal;
|
||||
font-size: 8pt;
|
||||
color: buttontext;
|
||||
width: 193px;
|
||||
height: 2em;
|
||||
position: relative;
|
||||
top: 4px;
|
||||
margin-bottom: 0px; }
|
||||
|
||||
/****THIS IS THE DEFAULT OBJECT DROP DOWN IN 3 COLUMN AND NON-TABBED WIZARD****/
|
||||
object.itemtextThreeColumn { font-family: Tahoma, MS Sans Serif, Arial, Sans Serif;
|
||||
font-weight: normal;
|
||||
font-size: 8pt;
|
||||
color: buttontext;
|
||||
width: 185px;
|
||||
height: 2em;
|
||||
position: relative;
|
||||
top: 4px;
|
||||
margin-bottom: 0px; }
|
||||
|
||||
/****THIS IS THE DEFAULT OBJECT DROP DOWN IN NON-TABBED AND 2 COLUMN WIZARD****/
|
||||
object.itemTextTwoColumnLong{ font-family: Tahoma, MS Sans Serif, Arial, Sans Serif;
|
||||
font-weight: normal;
|
||||
font-size: 8pt;
|
||||
color: buttontext;
|
||||
width: 283px;
|
||||
height: 2em;
|
||||
position: relative;
|
||||
top: 4px;
|
||||
margin-bottom: 0px; }
|
||||
|
||||
.dropdowncombo { font-family: Tahoma, MS Sans Serif, Arial, Sans Serif;
|
||||
font-weight: normal;
|
||||
font-size: 8pt;
|
||||
color: buttontext; }
|
||||
|
||||
/****MOVES RADIO TEXT UP A BIT WHEN INLINE*************************************/
|
||||
span.upABit { position: relative;
|
||||
top: -2px; }
|
||||
|
||||
/****THIS DEFINES A STANDARD BUTTON IN THE CONTENT SECTION*********************/
|
||||
.buttonClass { margin-top: 0px;
|
||||
margin-bottom: -6px; }
|
||||
|
||||
/****THIS DEFINES ADD/REMOVE BUTTONS IN THE CONTENT SECTION********************/
|
||||
.buttonClass2 { width: 75px;
|
||||
padding-top: 1px;
|
||||
margin-top: 7px; }
|
||||
|
||||
/****THIS DEFINES A "..." BUTTON IN THE CONTENT SECTION OUT OF THE SPAN TAG****/
|
||||
.buttonClass3 { height: 19px;
|
||||
width: 20px;
|
||||
position: relative;
|
||||
left: 1px;
|
||||
top: 0px; }
|
||||
|
||||
/****THIS DEFINES A "..." BUTTON IN THE CONTENT SECTION WITHIN THE SPAN TAG***/
|
||||
.buttonClass3Custom { height: 19px;
|
||||
width: 20px;
|
||||
position: relative;
|
||||
left: 4px;
|
||||
top: 3px; }
|
||||
|
||||
/****THIS DEFINES A "..." BUTTON IN THE CONTENT SECTION AND UNDER A CHECKBOX***/
|
||||
.buttonClass3Indent { height: 19px;
|
||||
width: 20px;
|
||||
position: relative;
|
||||
top: 0px;
|
||||
left: 10px; }
|
||||
|
||||
/****THIS DEFINES A ">>" BUTTON IN THE CONTENT SECTION************************/
|
||||
.buttonClass4 { margin-bottom: 4px;
|
||||
width: 25px; }
|
||||
|
||||
/****THIS DEFINES ADD/REMOVE BUTTONS HORIZONTALLY IN THE CONTENT SECTION******/
|
||||
.buttonClass5 { position: relative;
|
||||
top: 4px;
|
||||
width: 75px; }
|
||||
|
||||
/****THIS SETS THE LEFT MARGIN FOR THE REMOVE BUTTON***************************/
|
||||
#removeBtn { margin-left: 4px; }
|
||||
|
||||
/****THIS SETS THE LEFT MARGIN FOR INDENTED SECTION UNDER CHECKBOXES***********/
|
||||
label.indent { margin-left: 18px; }
|
||||
|
||||
/****THIS SETS THE LEFT MARGIN FOR INDENTED SECTION UNDER CHECKBOXES***********/
|
||||
label.indent2 { margin-left: 25px; }
|
||||
|
||||
/****THIS MOVES CHECK BOX AND RADIO TEXT UP A BIT******************************/
|
||||
label.upABit { position: relative;
|
||||
top: -2px; }
|
||||
|
||||
/****THIS BOLDS < << > >> BUTTONS**********************************************/
|
||||
b.bigFont { font-size: 135%; }
|
||||
|
||||
/****THESE ARE CUSTOM VERTICAL SPACING ELEMENTS********************************/
|
||||
p.spacer { margin-bottom: -28px; }
|
||||
|
||||
p.elementSpacer { margin-bottom: -12px; }
|
||||
|
||||
p.elementSpacer2 { margin-bottom: -19px; }
|
||||
|
||||
p.elementSpacer3 { margin-bottom: -3px; }
|
||||
|
||||
p.elementSpacer4 { margin-bottom: 7px; }
|
||||
|
||||
p.elementSpacer5 { margin-bottom: 5px; }
|
||||
|
||||
p.elementSpacer6 { margin-bottom: -24px; }
|
||||
|
||||
p.elementSpacer7 { margin-bottom: -11px; }
|
||||
|
||||
p.elementSpacer8 { margin-bottom: -15px; }
|
||||
|
||||
p.elementSpacer9 { margin-bottom: -7px; }
|
||||
|
||||
p.elementSpacer10 { margin-bottom: 6px; }
|
||||
|
||||
p.elementSpacer11 { margin-bottom: -1px; }
|
||||
|
||||
p.elementSpacer12 { margin-bottom: -17px; }
|
||||
|
||||
p.elementSpacer13 { margin-bottom: -23px; }
|
||||
|
||||
p.elementSpacer14 { margin-bottom: -25px; }
|
||||
|
||||
p.elementSpacer15 { margin-bottom: -13px; }
|
||||
|
||||
p.elementSpacer16 { margin-bottom: -22px; }
|
||||
|
||||
p.elementSpacer17 { margin-bottom: -32px; }
|
||||
|
||||
p.elementSpacer18 { margin-bottom: -14px; }
|
||||
|
||||
p.elementSpacer19 { margin-bottom: -10px; }
|
||||
|
||||
p.elementSpacer21 { margin-bottom: -16px; }
|
||||
|
||||
p.elementSpacer22 { margin-bottom: 3px; }
|
||||
|
||||
/*CUSTOM STYLES FOR THE 'CONTENT' FRAME****************************************/
|
||||
/******************************************************************************/
|
||||
|
||||
/*CUSTOM SPACING FOR MFC UI PAGE - SET UP FOR LOC PURPOSES*******************/
|
||||
/**************************************************************************/
|
||||
p.elementSpacer20 { margin-bottom: -13px; }
|
||||
|
||||
/*CUSTOM STYLE FOR MFC UI PAGE - SET UP FOR LOC PURPOSES*******************/
|
||||
/**************************************************************************/
|
||||
input.sideBtnLoc { width: 193px;
|
||||
position: relative;
|
||||
top: 3px; }
|
||||
|
||||
/*PLACES SPACE BETWEEN ADD/REMOVE BUTTONS**********************************/
|
||||
/**************************************************************************/
|
||||
span.spacer8 { width: 1px; }
|
||||
|
||||
/*SETS TEXT BOX TO APPROPRIATE WIDTH IN MFCAppWiz**************************/
|
||||
/**************************************************************************/
|
||||
#CLASS_NAMES { width: 399px; }
|
||||
|
||||
/*MOVES SELECT BOX UP IN CSharpIndexerWiz, Interface, Method,**************/
|
||||
/*InterfaceMethod, AND MemFunctionWiz**************************************/
|
||||
#PARAMETER_LIST { margin-top: -1px; }
|
||||
|
||||
/*MOVES SELECT BOX UP IN CSharpMethodWiz***********************************/
|
||||
/**************************************************************************/
|
||||
#PARAMETER_LIST1 { margin-top: -1px; }
|
||||
|
||||
/*SETS SELECTION BOX WIDTH IN CSharpInterfaceMethod AND CSharpMethodWiz****/
|
||||
/**************************************************************************/
|
||||
#PARAMETER_MODIFIER { width: 58px; }
|
||||
|
||||
/*SETS INDENT FOR ATLCustom AND MFCCustom Wizards**************************/
|
||||
/**************************************************************************/
|
||||
span.itemTextIndent1 { position: relative;
|
||||
left: 8px;
|
||||
top: -3px; }
|
||||
|
||||
/*SETS INDENT ON OBJECT FOR CSharpMethodWiz********************************/
|
||||
/**************************************************************************/
|
||||
span.customObjectIndent { margin-left: 8px; }
|
||||
|
||||
/*SETS CUSTOM INDENT FOR SECTION IN CSHARPMETHODWIZ************************/
|
||||
/**************************************************************************/
|
||||
span.sidebtn { position: relative;
|
||||
top: 4px;
|
||||
bottom: -3px; }
|
||||
|
||||
/*SETS CUSTOM INDENT FOR SECTION IN CSHARPMETHODWIZ************************/
|
||||
/**************************************************************************/
|
||||
span.itemtextspecial { position: relative;
|
||||
top: -20px;
|
||||
left: 9px;
|
||||
bottom: -3px; }
|
||||
|
||||
/*SETS CUSTOM INDENT FOR SECTION IN CSHARPMETHODWIZ************************/
|
||||
/**************************************************************************/
|
||||
span.sidebtnspecial { position: relative;
|
||||
top: -2px;
|
||||
left: 53px;
|
||||
bottom: -3px; }
|
||||
|
||||
/**************************************************************************/
|
||||
|
||||
|
||||
|
||||
|
||||
/*MODIFIED POSITIONING*****************************************************/
|
||||
/**************************************************************************/
|
||||
/*Position and border change + link to the script file (absolutely needed)!!*/
|
||||
table.three { table-layout: fixed;
|
||||
height: 100%;
|
||||
position: absolute;
|
||||
left: -1px;
|
||||
border-right: solid 2px Window; }
|
||||
|
||||
/*Color change*/
|
||||
span.activeLink { color: WindowText;
|
||||
text-decoration: none;
|
||||
word-wrap: break-word;
|
||||
cursor: hand;
|
||||
width: 100%;
|
||||
padding-top: 1px;
|
||||
padding-bottom: 1px; }
|
||||
|
||||
/*Color change*/
|
||||
span.activeLink2 { color: WindowText;
|
||||
text-decoration: underline;
|
||||
word-wrap: break-word;
|
||||
cursor: hand;
|
||||
width: 100%;
|
||||
padding-top: 1px;
|
||||
padding-bottom: 1px; }
|
||||
|
||||
/*Color change*/
|
||||
span.inactiveLink { color: GrayText;
|
||||
text-decoration: none;
|
||||
word-wrap: break-word;
|
||||
cursor: default;
|
||||
width: 100%;
|
||||
padding-top: 1px;
|
||||
padding-bottom: 1px; }
|
||||
|
||||
/*Turned off dotted line*/
|
||||
span.vertLine1 { height: 100%;
|
||||
width: 1px;
|
||||
position: absolute;
|
||||
top: 0px;
|
||||
left: -1px;
|
||||
bottom: 0px;
|
||||
z-index: 2; }
|
||||
|
||||
/*Style for width-control of the left-side links bar */
|
||||
.LinkPane { width: 1.9in; }
|
||||
|
||||
/*Removed bolding of text*/
|
||||
table.linkTextSelected { line-height: 95%;
|
||||
width: 1.7in;
|
||||
height: 2.6em;
|
||||
position: relative;
|
||||
left: 0.1in;
|
||||
z-index: 2; }
|
||||
|
||||
/*Removed bolding of text and made width bigger*/
|
||||
table.linkTextSelectedIndent { line-height: 95%;
|
||||
width: 1.7in;
|
||||
height: 2.6em;
|
||||
position: relative;
|
||||
top: -2px;
|
||||
left: 0.2in;
|
||||
z-index: 2; }
|
||||
|
||||
/*Changed left margin and position of top of element and made width bigger*/
|
||||
table.linkTextIndent { line-height: 95%;
|
||||
width: 1.6in;
|
||||
height: 2.6em;
|
||||
position: relative;
|
||||
top: -2px;
|
||||
left: 0.2in;
|
||||
z-index: 2; }
|
||||
|
||||
/*Removed background color, changed top, and bottom margins*/
|
||||
div.linkSelected { height: 2.6em;
|
||||
position: relative;
|
||||
top: -6px;
|
||||
left: 0px;
|
||||
right: 0px;
|
||||
z-index: 1;
|
||||
margin-bottom: -.7em; }
|
||||
|
||||
/*Changed top and bottom margins*/
|
||||
div.link { height: 2em;
|
||||
position: relative;
|
||||
top: -6px;
|
||||
left: 0px;
|
||||
right: 0px;
|
||||
z-index: 1;
|
||||
margin-bottom: -.7em; }
|
||||
|
||||
/*Comment out
|
||||
div.vertLine { background: url(Images/DottedVert.gif) repeat;
|
||||
height: 125%;
|
||||
width: 1px;
|
||||
position: relative;
|
||||
top: -12px;
|
||||
left: -1px; }*/
|
||||
|
||||
/*Deleted dotted line*/
|
||||
span.vertLine1 { height: 100%;
|
||||
width: 1px;
|
||||
position: absolute;
|
||||
top: 0px;
|
||||
left: -1px;
|
||||
bottom: 0px;
|
||||
z-index: 2; }
|
||||
|
||||
/*Changed background color and add alpha*/
|
||||
td.three { background-color: Window;
|
||||
filter: Alpha(Opacity = 25); }
|
||||
|
||||
/*Removed all background image modification elements and set image to 0 opacity*/
|
||||
td.threeCustom { filter: Alpha(Opacity = 0); }
|
||||
|
||||
|
||||
/*Comment out
|
||||
td.dottedline { background: url(Images/DottedHori.gif) repeat; }*/
|
||||
|
||||
/*Removed border color*/
|
||||
div.inlineA { position: relative;
|
||||
top: 4px;
|
||||
width: 100%;
|
||||
height: 1px; }
|
||||
|
||||
/*Changed border color*/
|
||||
div.inlineB { position: relative;
|
||||
top: -9px;
|
||||
margin-bottom: -20px;
|
||||
width: 100%;
|
||||
height: 1px;
|
||||
border-top: solid ThreeDShadow 1px; }
|
||||
|
||||
/*Changed position of element*/
|
||||
h4.head { font-weight: bold;
|
||||
font-size: 10pt;
|
||||
color: windowtext;
|
||||
position: absolute;
|
||||
top: 16px;
|
||||
left: 120px;
|
||||
height: 58px; }
|
||||
|
||||
/*Hide element*/
|
||||
p.subhead { display: none;
|
||||
color: windowtext;
|
||||
position: relative;
|
||||
top: -1.5em;
|
||||
left: 1em; }
|
||||
|
||||
/*Changed alignment to right*/
|
||||
td.image { text-align: left; }
|
||||
|
||||
/*Added item to control positioning of element*/
|
||||
div.smallA { position: absolute;
|
||||
top: 0px;
|
||||
left: 12px;
|
||||
height: 78px;
|
||||
width: 110px;
|
||||
vertical-align: bottom; }
|
||||
|
||||
/*Added item to control positioning of element - 1 misspelling in html so dup of above*/
|
||||
div.smalA { position: absolute;
|
||||
top: 0px;
|
||||
left: 12px;
|
||||
height: 78px;
|
||||
width: 110px;
|
||||
vertical-align: bottom; }
|
||||
|
||||
/*Added item to control positioning of element*/
|
||||
div.small { position: absolute;
|
||||
top: 0px;
|
||||
left: 12px;
|
||||
height: 78px;
|
||||
width: 110px;
|
||||
vertical-align: bottom; }
|
||||
|
||||
/*Added all positioning informaiton*/
|
||||
img.smallest { background-color: activecaption;
|
||||
position: relative;
|
||||
bottom: 1px; }
|
||||
|
||||
/*Added item to control positioning of element*/
|
||||
img.small { position: relative;
|
||||
bottom: 1px; }
|
||||
|
||||
/*Add height specification*/
|
||||
td.rule { background-color: window;
|
||||
height: 1px; }
|
||||
|
||||
/*Info for new button*/
|
||||
#PreviousBtn { position: relative;
|
||||
right: -79px; }
|
||||
/*Info for new button*/
|
||||
#NextBtn { position: relative;
|
||||
right: -79px; }
|
||||
|
||||
/*Reposition button*/
|
||||
#FinishBtn { position: relative;
|
||||
right: -79px; }
|
||||
|
||||
/*Reposition button*/
|
||||
#CancelBtn { position: relative;
|
||||
right: -79px; }
|
||||
|
||||
/*Hide button*/
|
||||
#HelpBtn { display: none; }
|
||||
|
||||
|
||||
/**************************************************************************/
|
Binary file not shown.
Before Width: | Height: | Size: 66 KiB |
|
@ -1,245 +0,0 @@
|
|||
<?xml version="1.0" encoding="gb2312"?>
|
||||
<VisualStudioProject
|
||||
ProjectType="Visual C++"
|
||||
Version="9.00"
|
||||
Name="CCAppWiz.wophone"
|
||||
ProjectGUID="{64CF0B7A-FC68-41D7-B3DC-2908D74BDAE9}"
|
||||
RootNamespace="CCXAppWiz.uphone"
|
||||
Keyword="CustomAppWizProj"
|
||||
TargetFrameworkVersion="196613"
|
||||
>
|
||||
<Platforms>
|
||||
<Platform
|
||||
Name="Win32"
|
||||
/>
|
||||
</Platforms>
|
||||
<ToolFiles>
|
||||
</ToolFiles>
|
||||
<Configurations>
|
||||
<Configuration
|
||||
Name="Debug|Win32"
|
||||
OutputDirectory="$(SolutionDir)$(ConfigurationName)"
|
||||
IntermediateDirectory="$(ConfigurationName)"
|
||||
ConfigurationType="10"
|
||||
>
|
||||
<Tool
|
||||
Name="VCPreBuildEventTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCCustomBuildTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCMIDLTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCPostBuildEventTool"
|
||||
/>
|
||||
</Configuration>
|
||||
<Configuration
|
||||
Name="Release|Win32"
|
||||
ConfigurationType="10"
|
||||
>
|
||||
<Tool
|
||||
Name="VCPreBuildEventTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCCustomBuildTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCMIDLTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCPostBuildEventTool"
|
||||
/>
|
||||
</Configuration>
|
||||
</Configurations>
|
||||
<References>
|
||||
</References>
|
||||
<Files>
|
||||
<Filter
|
||||
Name="Template Files"
|
||||
Filter="txt"
|
||||
>
|
||||
<File
|
||||
RelativePath=".\Templates\1033\Makefile.ARM"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\Templates\1033\root_Arm.TMK3"
|
||||
>
|
||||
</File>
|
||||
<Filter
|
||||
Name="Classes"
|
||||
>
|
||||
<File
|
||||
RelativePath=".\Templates\1033\Classes\AppDelegate.cpp"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\Templates\1033\Classes\AppDelegate.h"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\Templates\1033\Classes\HelloWorldScene.cpp"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\Templates\1033\Classes\HelloWorldScene.h"
|
||||
>
|
||||
</File>
|
||||
</Filter>
|
||||
<Filter
|
||||
Name="wophone"
|
||||
>
|
||||
<File
|
||||
RelativePath=".\Templates\1033\wophone\main.cpp"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\Templates\1033\wophone\NewDeleteOp.cpp"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\Templates\1033\wophone\rootUnicodeScript.h"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\Templates\1033\wophone\rootUnicodeScript_str.h"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\Templates\1033\wophone\TG3AppDllEntry.cpp"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\Templates\1033\wophone\TG3AppDllEntry.h"
|
||||
>
|
||||
</File>
|
||||
<Filter
|
||||
Name="Res"
|
||||
>
|
||||
<File
|
||||
RelativePath=".\Templates\1033\wophone\Res\root_Res.ENU.tr3"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\Templates\1033\wophone\Res\root_Res.ENU.tr3.tts"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\Templates\1033\wophone\Res\root_Res.h"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\Templates\1033\wophone\Res\root_Res.TR3"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\Templates\1033\wophone\Res\root_Res.TRG"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\Templates\1033\wophone\Res\root_res_c.h"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\Templates\1033\wophone\Res\root_res_def.h"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\Templates\1033\wophone\Res\root_res_h.h"
|
||||
>
|
||||
</File>
|
||||
</Filter>
|
||||
<Filter
|
||||
Name="TCOM"
|
||||
>
|
||||
<File
|
||||
RelativePath=".\Templates\1033\wophone\TCOM\root_TcomRegist.cpp"
|
||||
>
|
||||
</File>
|
||||
</Filter>
|
||||
</Filter>
|
||||
</Filter>
|
||||
<Filter
|
||||
Name="HTML Files"
|
||||
Filter="htm"
|
||||
>
|
||||
<File
|
||||
RelativePath=".\HTML\1033\default.htm"
|
||||
DeploymentContent="true"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\HTML\1033\features.htm"
|
||||
DeploymentContent="true"
|
||||
>
|
||||
</File>
|
||||
</Filter>
|
||||
<Filter
|
||||
Name="Image Files"
|
||||
Filter="bmp"
|
||||
>
|
||||
</Filter>
|
||||
<Filter
|
||||
Name="Script Files"
|
||||
Filter="js"
|
||||
>
|
||||
<File
|
||||
RelativePath=".\Scripts\1033\default.js"
|
||||
>
|
||||
</File>
|
||||
</Filter>
|
||||
<Filter
|
||||
Name="Miscellaneous Files"
|
||||
Filter="vsz;vsdir;ico;vcproj;csproj;css;inf"
|
||||
>
|
||||
<File
|
||||
RelativePath=".\CCAppWiz.wophone.ico"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\CCAppWiz.wophone.vsdir"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\CCAppWiz.wophone.vsz"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\default.vcproj"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\1033\NewStyles.css"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\Templates\1033\Templates.inf"
|
||||
>
|
||||
</File>
|
||||
</Filter>
|
||||
<File
|
||||
RelativePath=".\Images\Background_Cocos2d-x.gif"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\Images\Cocos2d-x.gif"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\1033\Images\DottedHori.gif"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\1033\Images\DottedVert.gif"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\1033\Images\spacer.gif"
|
||||
>
|
||||
</File>
|
||||
</Files>
|
||||
<Globals>
|
||||
</Globals>
|
||||
</VisualStudioProject>
|
|
@ -1 +0,0 @@
|
|||
CCAppWiz.wophone.vsz| |Cocos2d-wophone Application|1|An application that uses Cocos2d-x library for wophone platform.| |6777|4096|#1154
|
|
@ -1,7 +0,0 @@
|
|||
VSWIZARD 7.0
|
||||
Wizard=VsWizard.VsWizardEngine
|
||||
|
||||
Param="WIZARD_VERSION = "
|
||||
Param="WIZARD_NAME = Cocos2d-wophone"
|
||||
Param="ABSOLUTE_PATH = ."
|
||||
Param="FALLBACK_LCID = 1033"
|
|
@ -1,412 +0,0 @@
|
|||
<HTML DIR="ltr">
|
||||
<HEAD>
|
||||
<TITLE>'Cocos2d-win32 Application Wizard'</TITLE>
|
||||
<META NAME="vs_targetSchema" CONTENT="http://schemas.microsoft.com/intellisense/ie5">
|
||||
<META HTTP-EQUIV="MSThemeCompatible" CONTENT="Yes">
|
||||
<STYLE TYPE="text/css">@import url();
|
||||
.style1
|
||||
{
|
||||
color: Blue;
|
||||
}
|
||||
</STYLE>
|
||||
<!-- This closing tag is here only to avoid security warning -->
|
||||
</OBJECT>
|
||||
<SCRIPT>
|
||||
var strURL = window.external.FindSymbol("PRODUCT_INSTALLATION_DIR");
|
||||
strURL += "VCWizards/";
|
||||
strURL += window.external.GetHostLocale();
|
||||
strURL += "/NewStyles.css";
|
||||
document.styleSheets(0).imports(0).href = strURL;
|
||||
</SCRIPT>
|
||||
<!-- -->
|
||||
<!-- The SYMBOL tag is used to set the default values for the user-defined symbols.-->
|
||||
<!-- -->
|
||||
<SYMBOL NAME='WIZARD_DIALOG_TITLE' TYPE="text" VALUE="Cocos2d-win32 Application Wizard"></SYMBOL>
|
||||
|
||||
<SYMBOL NAME='SOURCE_FILTER' TYPE="text" VALUE="cpp;c;cxx;def;idl;bat"></SYMBOL>
|
||||
<SYMBOL NAME="INCLUDE_FILTER" TYPE="text" VALUE="h;hpp;hxx;hm;inl;inc"></SYMBOL>
|
||||
<SYMBOL NAME='MAKEFILE_FILTER' TYPE=text VALUE='TMK3;ARM'></SYMBOL>
|
||||
<SYMBOL NAME='RESOURCE_FILTER' TYPE=text VALUE='tr3;tts;TR3;TRG'></SYMBOL>
|
||||
|
||||
<SYMBOL NAME="CC_CURRENT_YEAR" TYPE="text" VALUE="2003"></SYMBOL>
|
||||
|
||||
|
||||
<!-- Page 2 Controls -->
|
||||
<SYMBOL NAME='CC_USE_BOX2D' TYPE="checkbox" VALUE="true"></SYMBOL>
|
||||
<SYMBOL NAME='CC_USE_CHIPMUNK' TYPE="checkbox" VALUE="false"></SYMBOL>
|
||||
<SYMBOL NAME='CC_USE_COCOS_DENSHION_SIMPLE_AUDIO_ENGINE' TYPE="checkbox" VALUE="true"></SYMBOL>
|
||||
<SYMBOL NAME='CC_HAS_MAIN_FORM' TYPE="checkbox" VALUE="true"></SYMBOL>
|
||||
|
||||
<SYMBOL NAME='CC_USE_TCOM_SUPPORT' TYPE="checkbox" VALUE="false"></SYMBOL>
|
||||
|
||||
<!-- Page 3 Controls -->
|
||||
<SYMBOL NAME='WTL_COMBO_VIEW_TYPE' TYPE="select-one" VALUE='WTL_VIEWTYPE_GENERIC'></SYMBOL>
|
||||
|
||||
</HEAD>
|
||||
<BODY BGCOLOR="buttonface" TOPMARGIN="0" LEFTMARGIN="0" RIGHTMARGIN="0" BOTTOMMARGIN="0" ONLOAD="InitDocument(document);" ONKEYDOWN="OnKey();" ONKEYPRESS="OnPress();">
|
||||
<TABLE CLASS="ONE" HEIGHT="100%" WIDTH="100%" BORDER="0" CELLPADDING="0" CELLSPACING="0">
|
||||
<COLGROUP>
|
||||
<COL WIDTH="178">
|
||||
<COL>
|
||||
<!--OPEN OF INTRODUCTORY INFORMATION TABLE//-->
|
||||
<TR VALIGN="top">
|
||||
<TD HEIGHT="79" WIDTH="100%" COLSPAN="2">
|
||||
<TABLE CLASS="TWO" BORDER="0" CELLPADDING="0" CELLSPACING="0">
|
||||
<COLGROUP>
|
||||
<COL WIDTH="12">
|
||||
<COL>
|
||||
<COL WIDTH="12">
|
||||
<TR>
|
||||
<TD VALIGN="top" HEIGHT="12" WIDTH="12">
|
||||
|
||||
</TD>
|
||||
<TD VALIGN="top" HEIGHT="12">
|
||||
|
||||
</TD>
|
||||
<TD VALIGN="top" HEIGHT="12" WIDTH="12">
|
||||
|
||||
</TD>
|
||||
<TD CLASS="IMAGE" VALIGN="bottom" WIDTH="110" ROWSPAN="2">
|
||||
<DIV CLASS="SMALLA" ID="Layer0">
|
||||
<IMG CLASS="SMALLEST" SRC="../../Images/Cocos2d-x.gif" WIDTH="63" HEIGHT="63" ALT="" BORDER="0">
|
||||
</DIV>
|
||||
</TD>
|
||||
<TD VALIGN="top" HEIGHT="12" WIDTH="6" ROWSPAN="2">
|
||||
|
||||
</TD>
|
||||
</TR>
|
||||
<TR>
|
||||
<TD VALIGN="top" HEIGHT="65" WIDTH="12">
|
||||
|
||||
</TD>
|
||||
<TD VALIGN="top" HEIGHT="65">
|
||||
<H4 CLASS="HEAD" ID="HEAD">Welcome to the Cocos2d-wophone Application Wizard</H4>
|
||||
<P CLASS="SUBHEAD" ID="SUBHEAD">This wizard generates a cocos2d-wophone application project
|
||||
with the properties you specify.</P>
|
||||
</TD>
|
||||
<TD VALIGN="top" HEIGHT="65" WIDTH="12">
|
||||
|
||||
</TD>
|
||||
</TR>
|
||||
<TR>
|
||||
<TD VALIGN="top" CLASS="RULE" COLSPAN="5" HEIGHT="2">
|
||||
<TABLE BORDER="0" WIDTH="100%" HEIGHT="1" CELLPADDING="0" CELLSPACING="0">
|
||||
<TR VALIGN="top">
|
||||
<TD HEIGHT="1" WIDTH="100%" BGCOLOR="buttonshadow"><IMG SRC="../../Images/spacer.gif" HEIGHT="1" WIDTH="1" ALT=""></TD>
|
||||
<TD HEIGHT="1" WIDTH="1" BGCOLOR="window"><IMG SRC="../../Images/spacer.gif" HEIGHT="1" WIDTH="1" ALT=""></TD>
|
||||
</TR>
|
||||
</TABLE>
|
||||
</TD>
|
||||
</TR>
|
||||
</TABLE>
|
||||
</TD>
|
||||
</TR>
|
||||
<!--CLOSE OF INTRODUCTORY INFORMATION TABLE//-->
|
||||
<!--OPEN OF NAVIGATION, CONTENT, AND BUTTON TABLES//-->
|
||||
<TR VALIGN="top">
|
||||
<TD CLASS="THREE" VALIGN="top" HEIGHT="100%" WIDTH="178" STYLE="BACKGROUND-IMAGE: url(../../Images/Background_Cocos2d-x.gif)">
|
||||
<!--OPEN OF NAVIGATION TABLE//-->
|
||||
<TABLE CLASS="THREE" BORDER="0" CELLPADDING="0" CELLSPACING="0">
|
||||
<COLGROUP>
|
||||
<COL WIDTH="12">
|
||||
<COL WIDTH="166">
|
||||
<COL WIDTH="1">
|
||||
<TR>
|
||||
<TD VALIGN="top" COLSPAN="3" HEIGHT="12">
|
||||
|
||||
</TD>
|
||||
</TR>
|
||||
<TR>
|
||||
<TD VALIGN="top" HEIGHT="100%" WIDTH="12">
|
||||
|
||||
</TD>
|
||||
<TD VALIGN="top" HEIGHT="100%" WIDTH="165">
|
||||
<!--OPEN OF NAVIGATIONAL LINKS//-->
|
||||
<DIV CLASS="LINKSELECTED">
|
||||
<SPAN CLASS="VERTLINE1"><IMG SRC="../../Images/spacer.gif" WIDTH="1" HEIGHT="1" ALT="" BORDER="0">
|
||||
</SPAN><SPAN CLASS="HORILINE1">
|
||||
<TABLE WIDTH="167" HEIGHT="100%" BORDER="0" CELLPADDING="0" CELLSPACING="0">
|
||||
<TR VALIGN="top">
|
||||
<TD CLASS="DOTTEDLINE" HEIGHT="1">
|
||||
</TD>
|
||||
</TR>
|
||||
<TR VALIGN="top">
|
||||
<TD HEIGHT="100%">
|
||||
<IMG SRC="../../Images/spacer.gif" WIDTH="1" HEIGHT="28" ALT="" BORDER="0">
|
||||
</TD>
|
||||
</TR>
|
||||
<TR VALIGN="top">
|
||||
<TD CLASS="DOTTEDLINE" HEIGHT="1">
|
||||
</TD>
|
||||
</TR>
|
||||
</TABLE>
|
||||
</SPAN>
|
||||
<TABLE WIDTH="160" HEIGHT="28" BORDER="0" CELLPADDING="0" CELLSPACING="0" CLASS="LINKTEXTSELECTED">
|
||||
<TR VALIGN="center">
|
||||
<TD WIDTH="156">
|
||||
<SPAN ID="Default" TITLE="Examine an overview of selections" onClick="Next(document, 'default.htm');" TABINDEX="1"> Overview</SPAN>
|
||||
</TD>
|
||||
<TD WIDTH="4">
|
||||
<IMG SRC="../../Images/spacer.gif" HEIGHT="1" WIDTH="4">
|
||||
</TD>
|
||||
</TR>
|
||||
</TABLE>
|
||||
</DIV>
|
||||
<DIV CLASS="LINK">
|
||||
<TABLE WIDTH="166" HEIGHT="28" BORDER="0" CELLPADDING="0" CELLSPACING="0" CLASS="LINKTEXT">
|
||||
<TR VALIGN="center">
|
||||
<TD WIDTH="162">
|
||||
<SPAN CLASS="ACTIVELINK" ID="Features" TITLE="Specify features for the cocos2d-x application." onClick="Next(document, 'features.htm');" TABINDEX="1">
|
||||
Features</SPAN>
|
||||
</TD>
|
||||
<TD WIDTH="4">
|
||||
<IMG SRC="../../Images/spacer.gif" HEIGHT="1" WIDTH="4">
|
||||
</TD>
|
||||
</TR>
|
||||
</TABLE>
|
||||
</DIV>
|
||||
<!--CLOSE OF NAVIGATIONAL LINKS//-->
|
||||
</TD>
|
||||
<TD WIDTH="1">
|
||||
<DIV CLASS="VERTLINE">
|
||||
<IMG SRC="../../Images/spacer.gif" WIDTH="1" HEIGHT="1" ALT="" BORDER="0">
|
||||
</DIV>
|
||||
</TD>
|
||||
</TR>
|
||||
</TABLE>
|
||||
<!--CLOSE OF NAVIGATION TABLE//-->
|
||||
</TD>
|
||||
<TD VALIGN="top" HEIGHT="100%">
|
||||
<!--OPEN OF CONTENT AND BUTTON TABLE//-->
|
||||
<TABLE CLASS="ONE" BORDER="0" CELLPADDING="0" CELLSPACING="0">
|
||||
<COLGROUP>
|
||||
<COL WIDTH="100%">
|
||||
<TR VALIGN="top">
|
||||
<TD HEIGHT="100%">
|
||||
<!--OPEN OF CONTENT//-->
|
||||
|
||||
<TABLE CLASS="CONTENT" BORDER="0" CELLPADDING="0" CELLSPACING="0">
|
||||
<COL><COL WIDTH="398"><COL WIDTH="12">
|
||||
<TR>
|
||||
<TD VALIGN="TOP" HEIGHT="12" COLSPAN="3">
|
||||
|
||||
</TD>
|
||||
</TR>
|
||||
|
||||
<TR>
|
||||
<TD VALIGN="TOP" WIDTH="12">
|
||||
|
||||
</TD>
|
||||
|
||||
<TD VALIGN="TOP">
|
||||
<SPAN CLASS="ItemTextTop" ID="PROJECT_SETTINGS">These are the current project settings:<br />
|
||||
<br />
|
||||
</SPAN> Cocos2d feature:<UL>
|
||||
<LI CLASS="LIST">
|
||||
<SPAN CLASS="SideBtnHidden" ID="CC_PHYSICAL_ENGINE_SUMMARY" TITLE="">
|
||||
<LABEL FOR="CC_PHYSICAL_ENGINE_SUMMARY"></LABEL>
|
||||
</SPAN>
|
||||
</LI>
|
||||
|
||||
<LI CLASS="LIST">
|
||||
<SPAN CLASS="SideBtnHidden" ID="CC_AUDIO_ENGINE_SUMMARY" TITLE="">
|
||||
<LABEL FOR="CC_AUDIO_ENGINE_SUMMARY"></LABEL>
|
||||
</SPAN>
|
||||
</LI>
|
||||
|
||||
</UL>
|
||||
</SPAN> Application feature:<UL>
|
||||
|
||||
<LI CLASS="LIST">
|
||||
<SPAN CLASS="SideBtnHidden" ID="CC_TCOM_SUPPORT_SUMMARY" TITLE="">
|
||||
<LABEL FOR="CC_TCOM_SUPPORT_SUMMARY"></LABEL>
|
||||
</SPAN>
|
||||
</LI>
|
||||
|
||||
</UL>
|
||||
|
||||
<SPAN CLASS="ItemText" ID="FinishText">Click <B>Finish</B> from any window to accept the current settings.</SPAN>
|
||||
|
||||
<br />
|
||||
<br />
|
||||
|
||||
<!-- SPAN CLASS="ItemText" ID="README_REMINDER" TITLE="">After you create the project, see the project's readme.txt file for information about the project features and files that are generated.</SPAN -->
|
||||
<SPAN CLASS="ItemText" ID="README_REMINDER" TITLE="">Learn more form
|
||||
<a href="http://www.cocos2d-x.org/wiki/cocos2d-x/Cocos2d-x_Application_Wizard_for_Visual_Studio_User_Guide">
|
||||
<span class="style1">Cocos2d-x Application Wizard for Visual Studio User Guide</span></a>
|
||||
.<br />
|
||||
<br />
|
||||
<B>Recommend</B> to save the new project to cocos2d-x source's root directory,
|
||||
otherwise, modify the include directory and library directory menually.</SPAN>
|
||||
</TD>
|
||||
|
||||
<TD VALIGN="TOP" WIDTH="12">
|
||||
|
||||
</TD>
|
||||
</TR>
|
||||
</TABLE>
|
||||
<!--CLOSE OF CONTENT//-->
|
||||
</TD>
|
||||
</TR>
|
||||
<TR VALIGN="bottom">
|
||||
<TD HEIGHT="48">
|
||||
<!--OPEN OF BUTTON HTML//-->
|
||||
<TABLE HEIGHT="48" BORDER="0" CELLPADDING="0" CELLSPACING="0">
|
||||
<COLGROUP>
|
||||
<COL WIDTH="12">
|
||||
<COL>
|
||||
<COL WIDTH="75">
|
||||
<COL WIDTH="4">
|
||||
<COL WIDTH="75">
|
||||
<COL WIDTH="4">
|
||||
<COL WIDTH="75">
|
||||
<COL WIDTH="12">
|
||||
<TR>
|
||||
<TD VALIGN="top" CLASS="RULE" COLSPAN="8" HEIGHT="2">
|
||||
<TABLE BORDER="0" WIDTH="100%" HEIGHT="1" CELLPADDING="0" CELLSPACING="0">
|
||||
<TR VALIGN="top">
|
||||
<TD HEIGHT="1" WIDTH="100%" BGCOLOR="buttonshadow"><IMG SRC="../../Images/spacer.gif" HEIGHT="1" WIDTH="1" ALT=""></TD>
|
||||
<TD HEIGHT="1" WIDTH="1" BGCOLOR="window"><IMG SRC="../../Images/spacer.gif" HEIGHT="1" WIDTH="1" ALT=""></TD>
|
||||
</TR>
|
||||
</TABLE>
|
||||
</TD>
|
||||
</TR>
|
||||
<TR>
|
||||
<TD VALIGN="top" HEIGHT="11" COLSPAN="8">
|
||||
|
||||
</TD>
|
||||
</TR>
|
||||
<TR>
|
||||
<TD VALIGN="center" HEIGHT="23" WIDTH="12">
|
||||
|
||||
</TD>
|
||||
<TD VALIGN="top" HEIGHT="23">
|
||||
|
||||
</TD>
|
||||
<TD VALIGN="center" HEIGHT="23" WIDTH="75">
|
||||
<BUTTON CLASS="BUTTONS" ID="FinishBtn" ACCESSKEY="F" onClick="OnFinish(document);" type="button">
|
||||
<U>F</U>inish</BUTTON>
|
||||
</TD>
|
||||
<TD VALIGN="center" HEIGHT="23" WIDTH="4">
|
||||
|
||||
</TD>
|
||||
<TD VALIGN="center" HEIGHT="23" WIDTH="75">
|
||||
<BUTTON CLASS="BUTTONS" ID="CancelBtn" ACCESSKEY="C" onClick="window.external.Finish(document, 'cancel');" type="button">
|
||||
<U>C</U>ancel</BUTTON>
|
||||
</TD>
|
||||
<TD VALIGN="center" HEIGHT="23" WIDTH="4">
|
||||
|
||||
</TD>
|
||||
<TD VALIGN="center" HEIGHT="23" WIDTH="75">
|
||||
<BUTTON CLASS="BUTTONS" ID="HelpBtn" ACCESSKEY="H" onClick="window.external.OnHelp('vc.appwiz.custom.overview');" type="button">
|
||||
<U>H</U>elp</BUTTON>
|
||||
</TD>
|
||||
<TD VALIGN="center" HEIGHT="23" WIDTH="12">
|
||||
|
||||
</TD>
|
||||
</TR>
|
||||
<TR>
|
||||
<TD VALIGN="top" HEIGHT="12" COLSPAN="8">
|
||||
|
||||
</TD>
|
||||
</TR>
|
||||
</TABLE>
|
||||
<!--CLOSE OF BUTTON HTML//-->
|
||||
</TD>
|
||||
</TR>
|
||||
</TABLE>
|
||||
<!--CLOSE OF NAVIGATION, CONTENT, AND BUTTON TABLES//-->
|
||||
</TD>
|
||||
</TR>
|
||||
</TABLE>
|
||||
<SCRIPT LANGUAGE="JSCRIPT">
|
||||
|
||||
var tab_array = new Array();
|
||||
tab_array[0] = Default;
|
||||
tab_array[1] = Features;
|
||||
|
||||
function InitDocument(document)
|
||||
{
|
||||
setDirection();
|
||||
|
||||
if (window.external.FindSymbol('DOCUMENT_FIRST_LOAD'))
|
||||
{
|
||||
// This function sets the default symbols based
|
||||
// on the values specified in the SYMBOL tags above
|
||||
window.external.SetDefaults(document);
|
||||
}
|
||||
|
||||
// Load the document and initialize the controls with the appropriate symbol values
|
||||
window.external.Load(document);
|
||||
|
||||
// Do additional initialization
|
||||
OnInit();
|
||||
}
|
||||
|
||||
function Next(document, linkto)
|
||||
{
|
||||
window.external.Next(document, linkto);
|
||||
}
|
||||
|
||||
function OnFinish(document)
|
||||
{
|
||||
OnWizFinish(document);
|
||||
}
|
||||
|
||||
function OnInit()
|
||||
{
|
||||
if (window.external.FindSymbol("CC_USE_BOX2D") && window.external.FindSymbol("CC_USE_CHIPMUNK"))
|
||||
{
|
||||
CC_PHYSICAL_ENGINE_SUMMARY.innerText = "Use Physical Engine: Box2D and Chipmunk";
|
||||
}
|
||||
else if (window.external.FindSymbol("CC_USE_BOX2D"))
|
||||
{
|
||||
CC_PHYSICAL_ENGINE_SUMMARY.innerText = "Use Physical Engine: Box2D";
|
||||
}
|
||||
else if (window.external.FindSymbol("CC_USE_CHIPMUNK"))
|
||||
{
|
||||
CC_PHYSICAL_ENGINE_SUMMARY.innerText = "Use Physical Engine: Chipmunk";
|
||||
}
|
||||
else // none physical engine
|
||||
{
|
||||
CC_PHYSICAL_ENGINE_SUMMARY.innerText = "None Physical Engine";
|
||||
}
|
||||
|
||||
if (window.external.FindSymbol("CC_USE_COCOS_DENSHION_SIMPLE_AUDIO_ENGINE"))
|
||||
{
|
||||
CC_AUDIO_ENGINE_SUMMARY.innerText = "Use Audio Engine: Simple Audio Engine in Cocos Denshion";
|
||||
}
|
||||
else
|
||||
{
|
||||
CC_AUDIO_ENGINE_SUMMARY.innerText = "None Audio Engine";
|
||||
}
|
||||
|
||||
if (window.external.FindSymbol("CC_USE_TCOM_SUPPORT"))
|
||||
{
|
||||
CC_TCOM_SUPPORT_SUMMARY.innerText = "Has TCOM Support";
|
||||
}
|
||||
else
|
||||
{
|
||||
CC_TCOM_SUPPORT_SUMMARY.innerText = "None TCOM Support";
|
||||
}
|
||||
}
|
||||
|
||||
</SCRIPT>
|
||||
<SCRIPT ID="INCLUDE_SCRIPT" LANGUAGE="JSCRIPT"></SCRIPT>
|
||||
<SCRIPT ID="INCLUDE_COMMON" LANGUAGE="JSCRIPT"></SCRIPT>
|
||||
<!--
|
||||
Common.js is a script file which contains the helper functions
|
||||
used by the wizards. Include this line if you want to
|
||||
call these functions from your html scripts.
|
||||
//-->
|
||||
<SCRIPT>
|
||||
var strPath = window.external.FindSymbol("PRODUCT_INSTALLATION_DIR");
|
||||
strPath += "VCWizards/";
|
||||
strPath += window.external.GetHostLocale();
|
||||
var strScriptPath = strPath + "/Script.js";
|
||||
var strCommonPath = strPath + "/Common.js";
|
||||
document.scripts("INCLUDE_SCRIPT").src = strScriptPath;
|
||||
document.scripts("INCLUDE_COMMON").src = strCommonPath;
|
||||
</SCRIPT>
|
||||
</BODY>
|
||||
</HTML>
|
|
@ -1,446 +0,0 @@
|
|||
<HTML DIR="ltr">
|
||||
<HEAD>
|
||||
<TITLE>'Cocos2d-wophone Application Wizard'</TITLE>
|
||||
<META NAME="vs_targetSchema" CONTENT="http://schemas.microsoft.com/intellisense/ie5">
|
||||
<META HTTP-EQUIV="MSThemeCompatible" CONTENT="Yes">
|
||||
<STYLE TYPE="text/css">@import url();
|
||||
.style1
|
||||
{
|
||||
width: 180px;
|
||||
}
|
||||
</STYLE>
|
||||
<SCRIPT>
|
||||
var strURL = window.external.FindSymbol("PRODUCT_INSTALLATION_DIR");
|
||||
strURL += "VCWizards/";
|
||||
strURL += window.external.GetHostLocale();
|
||||
strURL += "/NewStyles.css";
|
||||
document.styleSheets(0).imports(0).href = strURL;
|
||||
</SCRIPT>
|
||||
</HEAD>
|
||||
<BODY BGCOLOR="buttonface" TOPMARGIN="0" LEFTMARGIN="0" RIGHTMARGIN="0" BOTTOMMARGIN="0" ONLOAD="InitDocument(document);" ONKEYDOWN="OnKey();" ONKEYPRESS="OnPress();">
|
||||
<TABLE CLASS="ONE" HEIGHT="100%" WIDTH="100%" BORDER="0" CELLPADDING="0" CELLSPACING="0">
|
||||
<COLGROUP>
|
||||
<COL WIDTH="178">
|
||||
<COL>
|
||||
<!--OPEN OF INTRODUCTORY INFORMATION TABLE//-->
|
||||
<TR VALIGN="top">
|
||||
<TD HEIGHT="79" WIDTH="100%" COLSPAN="2">
|
||||
<TABLE CLASS="TWO" BORDER="0" CELLPADDING="0" CELLSPACING="0">
|
||||
<COLGROUP>
|
||||
<COL WIDTH="12">
|
||||
<COL>
|
||||
<COL WIDTH="12">
|
||||
<TR>
|
||||
<TD VALIGN="top" HEIGHT="12" WIDTH="12">
|
||||
|
||||
</TD>
|
||||
<TD VALIGN="top" HEIGHT="12">
|
||||
|
||||
</TD>
|
||||
<TD VALIGN="top" HEIGHT="12" WIDTH="12">
|
||||
|
||||
</TD>
|
||||
<TD CLASS="IMAGE" VALIGN="bottom" WIDTH="110" ROWSPAN="2">
|
||||
<DIV CLASS="SMALLA" ID="Layer0">
|
||||
<IMG CLASS="SMALLEST" SRC="..\..\Images\Cocos2d-x.gif" WIDTH="63" HEIGHT="63" ALT="" BORDER="0">
|
||||
</DIV>
|
||||
</TD>
|
||||
<TD VALIGN="top" HEIGHT="12" WIDTH="6" ROWSPAN="2">
|
||||
|
||||
</TD>
|
||||
</TR>
|
||||
<TR>
|
||||
<TD VALIGN="top" HEIGHT="65" WIDTH="12">
|
||||
|
||||
</TD>
|
||||
<TD VALIGN="top" HEIGHT="65">
|
||||
<H4 CLASS="HEAD" ID="HEAD">
|
||||
Features</H4>
|
||||
<P CLASS="SUBHEAD" ID="SUBHEAD">Specify features for the cocos2d-wophone application.</P>
|
||||
</TD>
|
||||
<TD VALIGN="top" HEIGHT="65" WIDTH="12">
|
||||
|
||||
</TD>
|
||||
</TR>
|
||||
<TR>
|
||||
<TD VALIGN="top" CLASS="RULE" COLSPAN="5" HEIGHT="2">
|
||||
<TABLE BORDER="0" WIDTH="100%" HEIGHT="1" CELLPADDING="0" CELLSPACING="0">
|
||||
<TR VALIGN="top">
|
||||
<TD HEIGHT="1" WIDTH="100%" BGCOLOR="buttonshadow"><IMG SRC="../../Images/spacer.gif" HEIGHT="1" WIDTH="1" ALT=""></TD>
|
||||
<TD HEIGHT="1" WIDTH="1" BGCOLOR="window"><IMG SRC="../../Images/spacer.gif" HEIGHT="1" WIDTH="1" ALT=""></TD>
|
||||
</TR>
|
||||
</TABLE>
|
||||
</TD>
|
||||
</TR>
|
||||
</TABLE>
|
||||
</TD>
|
||||
</TR>
|
||||
<!--CLOSE OF INTRODUCTORY INFORMATION TABLE//-->
|
||||
<!--OPEN OF NAVIGATION, CONTENT, AND BUTTON TABLES//-->
|
||||
<TR VALIGN="top">
|
||||
<TD CLASS="style1" VALIGN="top" HEIGHT="100%"
|
||||
STYLE="BACKGROUND-IMAGE: url(../../Images/Background_Cocos2d-x.gif)">
|
||||
<!--OPEN OF NAVIGATION TABLE//-->
|
||||
<TABLE CLASS="THREE" BORDER="0" CELLPADDING="0" CELLSPACING="0">
|
||||
<COLGROUP>
|
||||
<COL WIDTH="12">
|
||||
<COL WIDTH="166">
|
||||
<COL WIDTH="1">
|
||||
<TR>
|
||||
<TD VALIGN="top" COLSPAN="3" HEIGHT="12">
|
||||
|
||||
</TD>
|
||||
</TR>
|
||||
<TR>
|
||||
<TD VALIGN="top" HEIGHT="100%" WIDTH="12">
|
||||
|
||||
</TD>
|
||||
<TD VALIGN="top" HEIGHT="100%" WIDTH="165">
|
||||
<!--OPEN OF NAVIGATIONAL LINKS//-->
|
||||
<DIV CLASS="LINK">
|
||||
<TABLE WIDTH="166" HEIGHT="28" BORDER="0" CELLPADDING="0" CELLSPACING="0" CLASS="LINKTEXT">
|
||||
<TR VALIGN="center">
|
||||
<TD WIDTH="162">
|
||||
<SPAN CLASS="ACTIVELINK" ID="Default" TITLE="Examine an overview of selections" onClick="Next(document, 'default.htm');" TABINDEX="1">
|
||||
Overview</SPAN>
|
||||
</TD>
|
||||
<TD WIDTH="4">
|
||||
<IMG SRC="../../Images/spacer.gif" HEIGHT="1" WIDTH="4">
|
||||
</TD>
|
||||
</TR>
|
||||
</TABLE>
|
||||
</DIV>
|
||||
<DIV CLASS="LINKSELECTED">
|
||||
<SPAN CLASS="VERTLINE1"><IMG SRC="../../Images/spacer.gif" WIDTH="1" HEIGHT="1" ALT="" BORDER="0">
|
||||
</SPAN><SPAN CLASS="HORILINE1">
|
||||
<TABLE WIDTH="167" HEIGHT="100%" BORDER="0" CELLPADDING="0" CELLSPACING="0">
|
||||
<TR VALIGN="top">
|
||||
<TD CLASS="DOTTEDLINE" HEIGHT="1">
|
||||
</TD>
|
||||
</TR>
|
||||
<TR VALIGN="top">
|
||||
<TD HEIGHT="100%">
|
||||
<IMG SRC="../../Images/spacer.gif" WIDTH="1" HEIGHT="28" ALT="" BORDER="0">
|
||||
</TD>
|
||||
</TR>
|
||||
<TR VALIGN="top">
|
||||
<TD CLASS="DOTTEDLINE" HEIGHT="1">
|
||||
</TD>
|
||||
</TR>
|
||||
</TABLE>
|
||||
</SPAN>
|
||||
<TABLE WIDTH="160" HEIGHT="28" BORDER="0" CELLPADDING="0" CELLSPACING="0" CLASS="LINKTEXTSELECTED">
|
||||
<TR VALIGN="center">
|
||||
<TD WIDTH="162">
|
||||
<SPAN ID="Features" TITLE="Specify features for the selected application type." onClick="Next(document, 'features.htm');" TABINDEX="1">
|
||||
Features</SPAN>
|
||||
</TD>
|
||||
<TD WIDTH="4">
|
||||
<IMG SRC="../../Images/spacer.gif" HEIGHT="1" WIDTH="4">
|
||||
</TD>
|
||||
</TR>
|
||||
</TABLE>
|
||||
</DIV>
|
||||
<!--CLOSE OF NAVIGATIONAL LINKS//-->
|
||||
</TD>
|
||||
<TD WIDTH="1">
|
||||
<DIV CLASS="VERTLINE">
|
||||
<IMG SRC="../../Images/spacer.gif" WIDTH="1" HEIGHT="1" ALT="" BORDER="0">
|
||||
</DIV>
|
||||
</TD>
|
||||
</TR>
|
||||
</TABLE>
|
||||
<!--CLOSE OF NAVIGATION TABLE//-->
|
||||
</TD>
|
||||
<TD VALIGN="top" HEIGHT="100%">
|
||||
<!--OPEN OF CONTENT AND BUTTON TABLE//-->
|
||||
<TABLE CLASS="ONE" BORDER="0" CELLPADDING="0" CELLSPACING="0">
|
||||
<COLGROUP>
|
||||
<COL WIDTH="100%">
|
||||
<TR VALIGN="top">
|
||||
<TD HEIGHT="100%">
|
||||
<!--OPEN OF CONTENT//-->
|
||||
<TABLE CLASS="CONTENT" BORDER="0" CELLPADDING="0" CELLSPACING="0">
|
||||
<COLGROUP>
|
||||
<COL WIDTH="12">
|
||||
<COL WIDTH="193">
|
||||
<COL WIDTH="12">
|
||||
<COL WIDTH="193">
|
||||
<COL WIDTH="12">
|
||||
<COL WIDTH="193">
|
||||
<COL WIDTH="12">
|
||||
<TR>
|
||||
<TD VALIGN="top" HEIGHT="12" COLSPAN="5">
|
||||
|
||||
</TD>
|
||||
</TR>
|
||||
|
||||
<TR VALIGN="top">
|
||||
<TD VALIGN="top" WIDTH="12">
|
||||
|
||||
</TD>
|
||||
<TD VALIGN="top" COLSPAN="3">
|
||||
|
||||
<SPAN CLASS="itemText">Select physical engine:
|
||||
<br />
|
||||
<br />
|
||||
<INPUT CLASS="CheckBoxA" TYPE="checkbox" ID="CC_USE_BOX2D" ACCESSKEY="B" TITLE="Application uses box2D." value="ON" NAME="CC_USE_BOX2D" onClick="OnUseBox2D();">
|
||||
<DIV CLASS="itemTextCheckboxB" ID="CC_USE_BOX2D_DIV" TITLE="Application uses box2D.">
|
||||
<LABEL FOR="CC_USE_BOX2D"
|
||||
TITLE="Application uses box2D. Include "Box2d.h" if needs."
|
||||
ID="CC_USE_BOX2D_LABEL">
|
||||
<U>B</U>ox2D</LABEL>
|
||||
</DIV>
|
||||
<BR>
|
||||
<INPUT CLASS="CheckBoxA" TYPE="checkbox" ID="CC_USE_CHIPMUNK" ACCESSKEY="C" TITLE="Application uses Chipmunk." value="ON" NAME="CC_USE_CHIPMUNK" onClick="OnUseChipmunk();">
|
||||
<DIV CLASS="itemTextCheckboxB" ID="CC_USE_CHIPMUNK_DIV" TITLE="Application uses Chipmunk.">
|
||||
<LABEL FOR="CC_USE_CHIPMUNK"
|
||||
TITLE="Application uses Chipmunk. Include "chipmunk.h" if needs."
|
||||
ID="CC_USE_CHIPMUNK_LABEL">
|
||||
<U>C</U>hipmunk</LABEL>
|
||||
</DIV>
|
||||
<br />
|
||||
</SPAN>
|
||||
|
||||
</TD>
|
||||
<TD VALIGN="top" COLSPAN="3">
|
||||
|
||||
|
||||
</TD> </TR>
|
||||
<TR>
|
||||
<TD VALIGN="top" WIDTH="12">
|
||||
|
||||
</TD>
|
||||
<TD VALIGN="top" COLSPAN="7">
|
||||
<SPAN CLASS="itemText">Select audio engine:
|
||||
<br />
|
||||
<br />
|
||||
<INPUT CLASS="CheckBoxA" TYPE="checkbox" ID="CC_USE_COCOS_DENSHION_SIMPLE_AUDIO_ENGINE" ACCESSKEY="S" TITLE="Application uses CocosDenshion's SimpleAudioEngine." value="ON" NAME="CC_USE_COCOS_DENSHION_SIMPLE_AUDIO_ENGINE onClick="OnUseCocosDenshionSimpleAudioEngine();">
|
||||
<DIV CLASS="itemTextCheckboxB" ID="CC_USE_COCOS_DENSHION_SIMPLE_AUDIO_ENGINE_DIV" TITLE="Application uses CocosDenshion:SimpleAudioEngine.">
|
||||
<LABEL FOR="CC_USE_COCOS_DENSHION_SIMPLE_AUDIO_ENGINE"
|
||||
TITLE="Application uses CocosDenshion:SimpleAudioEngine. Include "SimpleAudioEngine.h" if needs."
|
||||
ID="CC_USE_COCOS_DENSHION_SIMPLE_AUDIO_ENGINE_LABEL">
|
||||
<U>S</U>imple Audio Engine in Cocos Denshion</LABEL>
|
||||
</DIV>
|
||||
<br />
|
||||
</SPAN>
|
||||
</TD>
|
||||
</TR>
|
||||
<TR>
|
||||
<TD VALIGN="top" HEIGHT="100%" WIDTH="12">
|
||||
|
||||
</TD>
|
||||
<TD VALIGN="top" COLSPAN="7">
|
||||
Select application feature:<br />
|
||||
<br />
|
||||
<input id="CC_USE_TCOM_SUPPORT" accesskey="T" class="CheckBoxA"
|
||||
name="CC_USE_TCOM_SUPPORT" title="Application has TCOM support."
|
||||
type="checkbox" value="ON" onClick="OnUseTCOMSupport();"/>
|
||||
<DIV CLASS="itemTextCheckboxB" ID="CC_USE_TCOM_SUPPORT_DIV">
|
||||
<LABEL ID="CC_USE_TCOM_SUPPORT_LABLE" TITLE="Add TCOM support files to project.">
|
||||
<U>T</U>COM Support</LABEL>
|
||||
</DIV>
|
||||
</TD>
|
||||
</TR>
|
||||
</TABLE>
|
||||
<!--CLOSE OF CONTENT//-->
|
||||
</TD>
|
||||
</TR>
|
||||
<TR VALIGN="bottom">
|
||||
<TD HEIGHT="48">
|
||||
<!--OPEN OF BUTTON HTML//-->
|
||||
<TABLE HEIGHT="48" BORDER="0" CELLPADDING="0" CELLSPACING="0">
|
||||
<COLGROUP>
|
||||
<COL WIDTH="12">
|
||||
<COL>
|
||||
<COL WIDTH="75">
|
||||
<COL WIDTH="4">
|
||||
<COL WIDTH="75">
|
||||
<COL WIDTH="4">
|
||||
<COL WIDTH="75">
|
||||
<COL WIDTH="12">
|
||||
<TR>
|
||||
<TD VALIGN="top" CLASS="RULE" COLSPAN="8" HEIGHT="2">
|
||||
<TABLE BORDER="0" WIDTH="100%" HEIGHT="1" CELLPADDING="0" CELLSPACING="0">
|
||||
<TR VALIGN="top">
|
||||
<TD HEIGHT="1" WIDTH="100%" BGCOLOR="buttonshadow"><IMG SRC="../../Images/spacer.gif" HEIGHT="1" WIDTH="1" ALT=""></TD>
|
||||
<TD HEIGHT="1" WIDTH="1" BGCOLOR="window"><IMG SRC="../../Images/spacer.gif" HEIGHT="1" WIDTH="1" ALT=""></TD>
|
||||
</TR>
|
||||
</TABLE>
|
||||
</TD>
|
||||
</TR>
|
||||
<TR>
|
||||
</TR>
|
||||
<TR>
|
||||
<TD VALIGN="center" HEIGHT="23" WIDTH="12">
|
||||
|
||||
</TD>
|
||||
<TD VALIGN="top" HEIGHT="23">
|
||||
|
||||
</TD>
|
||||
<TD VALIGN="center" HEIGHT="23" WIDTH="75">
|
||||
<BUTTON CLASS="BUTTONS" ID="FinishBtn" ACCESSKEY="F" onClick="OnFinish(document);" type="button">
|
||||
<U>F</U>inish</BUTTON>
|
||||
</TD>
|
||||
<TD VALIGN="center" HEIGHT="23" WIDTH="4">
|
||||
|
||||
</TD>
|
||||
<TD VALIGN="center" HEIGHT="23" WIDTH="75">
|
||||
<BUTTON CLASS="BUTTONS" ID="CancelBtn" ACCESSKEY="C" onClick="window.external.Finish(document, 'cancel');" type="button">
|
||||
<U>C</U>ancel</BUTTON>
|
||||
</TD>
|
||||
<TD VALIGN="center" HEIGHT="23" WIDTH="4">
|
||||
|
||||
</TD>
|
||||
<TD VALIGN="center" HEIGHT="23" WIDTH="75">
|
||||
<BUTTON CLASS="BUTTONS" ID="HelpBtn" ACCESSKEY="H" onClick="window.external.OnHelp('vc.appwiz.custom.overview');" type="button">
|
||||
<U>H</U>elp</BUTTON>
|
||||
</TD>
|
||||
<TD VALIGN="center" HEIGHT="23" WIDTH="12">
|
||||
|
||||
</TD>
|
||||
</TR>
|
||||
<TR>
|
||||
<TD VALIGN="top" HEIGHT="12" COLSPAN="8">
|
||||
|
||||
</TD>
|
||||
</TR>
|
||||
</TABLE>
|
||||
<!--CLOSE OF BUTTON HTML//-->
|
||||
</TD>
|
||||
</TR>
|
||||
</TABLE>
|
||||
<!--CLOSE OF NAVIGATION, CONTENT, AND BUTTON TABLES//-->
|
||||
</TD>
|
||||
</TR>
|
||||
</TABLE>
|
||||
<SCRIPT LANGUAGE="JSCRIPT">
|
||||
|
||||
var tab_array = new Array();
|
||||
tab_array[0] = Default;
|
||||
tab_array[1] = Features;
|
||||
|
||||
function InitDocument(document)
|
||||
{
|
||||
setDirection();
|
||||
|
||||
if (window.external.FindSymbol('DOCUMENT_FIRST_LOAD'))
|
||||
{
|
||||
// This function sets the default symbols based
|
||||
// on the values specified in the SYMBOL tags above
|
||||
window.external.SetDefaults(document);
|
||||
}
|
||||
|
||||
// Load the document and initialize the controls with the appropriate symbol values
|
||||
window.external.Load(document);
|
||||
|
||||
// Do additional initialization
|
||||
OnInit();
|
||||
}
|
||||
|
||||
function Next(document, linkto)
|
||||
{
|
||||
window.external.Next(document, linkto);
|
||||
}
|
||||
|
||||
function OnFinish(document)
|
||||
{
|
||||
OnWizFinish(document);
|
||||
}
|
||||
|
||||
function OnInit()
|
||||
{
|
||||
CC_USE_BOX2D.disabled = false;
|
||||
CC_USE_CHIPMUNK.disabled = false;
|
||||
CC_USE_COCOS_DENSHION_SIMPLE_AUDIO_ENGINE.disabled = false;
|
||||
|
||||
if (window.external.FindSymbol("CC_USE_BOX2D"))
|
||||
{
|
||||
CC_USE_BOX2D.checked = true;
|
||||
}
|
||||
|
||||
if (window.external.FindSymbol("CC_USE_CHIPMUNK"))
|
||||
{
|
||||
CC_USE_CHIPMUNK.checked = true;
|
||||
}
|
||||
|
||||
if (window.external.FindSymbol("CC_USE_COCOS_DENSHION_SIMPLE_AUDIO_ENGINE"))
|
||||
{
|
||||
CC_USE_COCOS_DENSHION_SIMPLE_AUDIO_ENGINE.checked = true;
|
||||
}
|
||||
|
||||
CC_USE_TCOM_SUPPORT.disabled = false;
|
||||
if (window.external.FindSymbol("CC_USE_TCOM_SUPPORT"))
|
||||
{
|
||||
CC_USE_TCOM_SUPPORT.checked = true;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
function OnUseBox2D()
|
||||
{
|
||||
if(CC_USE_BOX2D.checked)
|
||||
{
|
||||
window.external.AddSymbol("CC_USE_BOX2D", true);
|
||||
}
|
||||
else
|
||||
{
|
||||
window.external.AddSymbol("CC_USE_BOX2D", false);
|
||||
}
|
||||
}
|
||||
|
||||
function OnUseChipmunk()
|
||||
{
|
||||
if (CC_USE_CHIPMUNK.checked)
|
||||
{
|
||||
window.external.AddSymbol("CC_USE_CHIPMUNK", true);
|
||||
}
|
||||
else
|
||||
{
|
||||
window.external.AddSymbol("CC_USE_CHIPMUNK", false);
|
||||
}
|
||||
}
|
||||
|
||||
function OnUseTCOMSupport()
|
||||
{
|
||||
if (CC_USE_TCOM_SUPPORT.checked)
|
||||
{
|
||||
window.external.AddSymbol("CC_USE_TCOM_SUPPORT", true);
|
||||
}
|
||||
else
|
||||
{
|
||||
window.external.AddSymbol("CC_USE_TCOM_SUPPORT", false);
|
||||
}
|
||||
}
|
||||
|
||||
function OnUseCocosDenshionSimpleAudioEngine()
|
||||
{
|
||||
if (CC_USE_COCOS_DENSHION_SIMPLE_AUDIO_ENGINE.checked)
|
||||
{
|
||||
window.external.AddSymbol("CC_USE_COCOS_DENSHION_SIMPLE_AUDIO_ENGINE", true);
|
||||
}
|
||||
else
|
||||
{
|
||||
window.external.AddSymbol("CC_USE_COCOS_DENSHION_SIMPLE_AUDIO_ENGINE", false);
|
||||
}
|
||||
}
|
||||
|
||||
</SCRIPT>
|
||||
<SCRIPT ID="INCLUDE_SCRIPT" LANGUAGE="JSCRIPT"></SCRIPT>
|
||||
<SCRIPT ID="INCLUDE_COMMON" LANGUAGE="JSCRIPT"></SCRIPT>
|
||||
<!--
|
||||
Common.js is a script file which contains the helper functions
|
||||
used by the wizards. Include this line if you want to
|
||||
call these functions from your html scripts.
|
||||
//-->
|
||||
<SCRIPT>
|
||||
var strPath = window.external.FindSymbol("PRODUCT_INSTALLATION_DIR");
|
||||
strPath += "VCWizards/";
|
||||
strPath += window.external.GetHostLocale();
|
||||
var strScriptPath = strPath + "/Script.js";
|
||||
var strCommonPath = strPath + "/Common.js";
|
||||
document.scripts("INCLUDE_SCRIPT").src = strScriptPath;
|
||||
document.scripts("INCLUDE_COMMON").src = strCommonPath;
|
||||
</SCRIPT>
|
||||
</BODY>
|
||||
</HTML>
|
Binary file not shown.
Before Width: | Height: | Size: 811 B |
Binary file not shown.
Before Width: | Height: | Size: 3.5 KiB |
|
@ -1,392 +0,0 @@
|
|||
function LogInfo(strInfo) {
|
||||
var FileSys = new ActiveXObject("Scripting.FileSystemObject");
|
||||
var strLogPath = "\\CCApplicationWizardLog.txt"
|
||||
var file = FileSys.OpenTextFile(strLogPath, 8, true);
|
||||
file.WriteLine(strInfo);
|
||||
file.Close();
|
||||
}
|
||||
|
||||
function OnFinish(selProj, selObj) {
|
||||
try {
|
||||
// Create symbols based on the project name
|
||||
var strProjectPath = wizard.FindSymbol('PROJECT_PATH');
|
||||
var strProjectName = wizard.FindSymbol('PROJECT_NAME');
|
||||
|
||||
wizard.AddSymbol('PROJECT_NAME_LOWER', strProjectName.toLowerCase(), false);
|
||||
wizard.AddSymbol('PROJECT_NAME_UPPER', strProjectName.toUpperCase(), false);
|
||||
|
||||
if (strProjectName.length >= 6) {
|
||||
wizard.AddSymbol('PRO_NAME_PREFIX', strProjectName.substr(0, 6).toUpperCase(), false);
|
||||
}
|
||||
else {
|
||||
var strRes = '_RES';
|
||||
var strNewFormId = strProjectName + strRes.substr(0, (6 - strProjectName.length));
|
||||
|
||||
wizard.AddSymbol('PRO_NAME_PREFIX', strNewFormId.toUpperCase(), false);
|
||||
}
|
||||
|
||||
// Set current year symbol
|
||||
var d = new Date();
|
||||
var nYear = 0;
|
||||
nYear = d.getFullYear();
|
||||
wizard.AddSymbol("CC_CURRENT_YEAR", nYear);
|
||||
wizard.AddSymbol("CC_CURRENT_DATE", d.toString());
|
||||
|
||||
// Create project and configurations
|
||||
selProj = CreateCustomProject(strProjectName, strProjectPath);
|
||||
AddConfigurations(selProj, strProjectName);
|
||||
AddFilters(selProj);
|
||||
|
||||
var InfFile = CreateCustomInfFile();
|
||||
AddFilesToCustomProj(selProj, strProjectName, strProjectPath, InfFile);
|
||||
AddPchSettings(selProj);
|
||||
InfFile.Delete();
|
||||
|
||||
selProj.Object.Save();
|
||||
}
|
||||
catch (e) {
|
||||
if (e.description.length != 0)
|
||||
SetErrorInfo(e);
|
||||
return e.number;
|
||||
}
|
||||
}
|
||||
|
||||
function CreateCustomProject(strProjectName, strProjectPath) {
|
||||
try {
|
||||
var strProjTemplatePath = wizard.FindSymbol('PROJECT_TEMPLATE_PATH');
|
||||
var strProjTemplate = '';
|
||||
var WizardVersion = wizard.FindSymbol('WIZARD_VERSION');
|
||||
if(WizardVersion >= 10.0)
|
||||
strProjTemplate = strProjTemplatePath + '\\default.vcxproj';
|
||||
else
|
||||
strProjTemplate = strProjTemplatePath + '\\default.vcproj';
|
||||
|
||||
var Solution = dte.Solution;
|
||||
var strSolutionName = "";
|
||||
if (wizard.FindSymbol("CLOSE_SOLUTION")) {
|
||||
Solution.Close();
|
||||
strSolutionName = wizard.FindSymbol("VS_SOLUTION_NAME");
|
||||
if (strSolutionName.length) {
|
||||
var strSolutionPath = strProjectPath.substr(0, strProjectPath.length - strProjectName.length);
|
||||
Solution.Create(strSolutionPath, strSolutionName);
|
||||
}
|
||||
}
|
||||
|
||||
// Create vcproj.user file
|
||||
var FileSys = new ActiveXObject("Scripting.FileSystemObject");
|
||||
var strUserTarget = "";
|
||||
if(WizardVersion >= 10.0)
|
||||
strUserTarget = strProjectName + ".wophone.vcxproj.user";
|
||||
else
|
||||
strUserTarget = strProjectName + ".wophone.vcproj.user";
|
||||
|
||||
var strUserPath = FileSys.BuildPath(strProjectPath, strUserTarget);
|
||||
|
||||
var astrParentPath = new Array();
|
||||
astrParentPath[0] = strProjectPath;
|
||||
while (astrParentPath.length) {
|
||||
var strPath = astrParentPath.pop();
|
||||
var strParentPath = FileSys.GetParentFolderName(strPath);
|
||||
|
||||
if (!FileSys.FolderExists(strParentPath)) {
|
||||
astrParentPath.push(strPath);
|
||||
astrParentPath.push(strParentPath);
|
||||
continue;
|
||||
}
|
||||
else {
|
||||
FileSys.CreateFolder(strPath);
|
||||
}
|
||||
}
|
||||
|
||||
var file = FileSys.OpenTextFile(strUserPath, 2, true);
|
||||
var strUserValue = "";
|
||||
if(WizardVersion >= 10.0)
|
||||
strUserValue = "<?xml version=\"1.0\" encoding=\"utf-8\"?>\r\n<Project ToolsVersion=\"4.0\" xmlns=\"http://schemas.microsoft.com/developer/msbuild/2003\">\r\n <PropertyGroup>\r\n <ShowAllFiles>true</ShowAllFiles>\r\n </PropertyGroup>\r\n</Project>";
|
||||
else
|
||||
strUserValue = "<?xml version=\"1.0\" encoding=\"utf-8\"?><VisualStudioUserFile ProjectType=\"Visual C++\" Version=\"9.00\" ShowAllFiles=\"true\"><Configurations><Configuration Name=\"Debug|Win32\"><DebugSettings Command=\"TG3_RunDLL.exe\" CommandArguments=\"$(TargetPath)\"/></Configuration></VisualStudioUserFile>";
|
||||
file.WriteLine(strUserValue);
|
||||
file.Close();
|
||||
|
||||
// Create project file
|
||||
var strProjectNameWithExt = '';
|
||||
if(WizardVersion >= 10.0)
|
||||
strProjectNameWithExt = strProjectName + '.wophone.vcxproj';
|
||||
else
|
||||
strProjectNameWithExt = strProjectName + '.wophone.vcproj';
|
||||
|
||||
var oTarget = wizard.FindSymbol("TARGET");
|
||||
var prj;
|
||||
if (wizard.FindSymbol("WIZARD_TYPE") == vsWizardAddSubProject) // vsWizardAddSubProject
|
||||
{
|
||||
var prjItem = oTarget.AddFromTemplate(strProjTemplate, strProjectNameWithExt);
|
||||
prj = prjItem.SubProject;
|
||||
}
|
||||
else {
|
||||
prj = oTarget.AddFromTemplate(strProjTemplate, strProjectPath, strProjectNameWithExt);
|
||||
}
|
||||
var fxtarget = wizard.FindSymbol("TARGET_FRAMEWORK_VERSION");
|
||||
if (fxtarget != null && fxtarget != "") {
|
||||
fxtarget = fxtarget.split('.', 2);
|
||||
if (fxtarget.length == 2)
|
||||
prj.Object.TargetFrameworkVersion = parseInt(fxtarget[0]) * 0x10000 + parseInt(fxtarget[1])
|
||||
}
|
||||
return prj;
|
||||
}
|
||||
catch (e) {
|
||||
throw e;
|
||||
}
|
||||
}
|
||||
|
||||
function AddFilters(proj) {
|
||||
try {
|
||||
// Add the folders to your project
|
||||
var strSrcFilter = wizard.FindSymbol('SOURCE_FILTER');
|
||||
var group = proj.Object.AddFilter('source');
|
||||
group.Filter = strSrcFilter;
|
||||
|
||||
strSrcFilter = wizard.FindSymbol('INCLUDE_FILTER');
|
||||
group = proj.Object.AddFilter('include');
|
||||
group.Filter = strSrcFilter;
|
||||
|
||||
strSrcFilter = wizard.FindSymbol('MAKEFILE_FILTER');
|
||||
group = proj.Object.AddFilter('makefile');
|
||||
group.Filter = strSrcFilter;
|
||||
}
|
||||
catch (e) {
|
||||
throw e;
|
||||
}
|
||||
}
|
||||
|
||||
// Configurations data
|
||||
var nNumConfigs = 2;
|
||||
|
||||
var astrConfigName = new Array();
|
||||
astrConfigName[0] = "Debug";
|
||||
astrConfigName[1] = "Release";
|
||||
|
||||
function AddConfigurations(proj, strProjectName) {
|
||||
try {
|
||||
proj.Object.Keyword = "uPhoneProj";
|
||||
var strPrjTG3Dir = '../../PRJ_TG3';
|
||||
wizard.AddSymbol('PROJECT_PRJ_TG3_DIR', strPrjTG3Dir, false);
|
||||
|
||||
// header files and libraries directories
|
||||
var strOutputDir = '../../PRJ_TG3/LIB/Win32Lib';
|
||||
var strCurIncludeDir = '..\\..\\PRJ_TG3\\Include;..\\..\\PRJ_TG3\\Include\\MTAPI;..\\..\\PRJ_TG3\\Include\\ThirdParty;..\\..\\PRJ_TG3\\Include\\TCOM;..\\..\\PRJ_TG3\\Include\\OpenGL';
|
||||
strCurIncludeDir += ';.;.\\Classes;.\\wophone;.\\wophone\\Res;..\\cocos2dx;..\\cocos2dx\\include;..\\cocos2dx\\platform';
|
||||
|
||||
var strDefinitions = 'WIN32;_CONSOLE;_TRANZDA_VM_;SS_MAKEDLL';
|
||||
var strDependLibs = 'WS2_32.Lib EosConfig.lib SoftSupport.lib TG3_DLL.lib libcocos2d.lib';
|
||||
var strCurLibsDir = '../../PRJ_TG3/Common/ICU/lib;../../PRJ_TG3/Mtapi/Win32/lib;../../PRJ_TG3/LIB/Win32Lib;../../PRJ_TG3/Common/SoftSupport';
|
||||
var strImportLib = '$(OutDir)/' + wizard.FindSymbol("PROJECT_NAME") + '.lib';
|
||||
var strOutputFile = '$(OutDir)/' + wizard.FindSymbol("PROJECT_NAME") + '.dll';
|
||||
|
||||
if (wizard.FindSymbol('CC_USE_BOX2D')) {
|
||||
strCurIncludeDir += ';..\\';
|
||||
strDependLibs += ' libBox2d.lib';
|
||||
}
|
||||
if (wizard.FindSymbol('CC_USE_CHIPMUNK')) {
|
||||
strCurIncludeDir += ';..\\chipmunk\\include\\chipmunk';
|
||||
strDependLibs += ' chipmunk.lib';
|
||||
}
|
||||
if (wizard.FindSymbol('CC_USE_COCOS_DENSHION_SIMPLE_AUDIO_ENGINE')) {
|
||||
strCurIncludeDir += ';..\\CocosDenshion\\Include';
|
||||
strDependLibs += ' libCocosDenshion.lib';
|
||||
}
|
||||
|
||||
if (wizard.FindSymbol("CC_USE_TCOM_SUPPORT")) {
|
||||
strDefinitions = strDefinitions + ';__TCOM_SUPPORT__';
|
||||
}
|
||||
|
||||
// create configure
|
||||
var nCntr;
|
||||
for (nCntr = 0; nCntr < nNumConfigs; nCntr++) {
|
||||
|
||||
// Check if it's Debug configuration
|
||||
var bDebug = false;
|
||||
if (astrConfigName[nCntr].search("Debug") != -1)
|
||||
bDebug = true;
|
||||
|
||||
var config = proj.Object.Configurations(astrConfigName[nCntr]);
|
||||
|
||||
if (bDebug) {
|
||||
strDefinitions = '_DEBUG;COCOS2D_DEBUG=1;' + strDefinitions;
|
||||
}
|
||||
else {
|
||||
strDefinitions = 'NDEBUG;' + strDefinitions;
|
||||
}
|
||||
|
||||
config.InheritedPropertySheets = '$(VCInstallDir)VCProjectDefaults\UpgradeFromVC71.vsprops';
|
||||
config.OutputDirectory = strOutputDir;
|
||||
config.IntermediateDirectory = '$(ConfigurationName).wophone';
|
||||
config.ConfigurationType = '2';
|
||||
|
||||
var CLTool = config.Tools('VCCLCompilerTool');
|
||||
if (bDebug) {
|
||||
CLTool.RuntimeLibrary = rtMultiThreadedDebug;
|
||||
CLTool.MinimalRebuild = true;
|
||||
CLTool.DebugInformationFormat = debugEditAndContinue;
|
||||
CLTool.BasicRuntimeChecks = runtimeBasicCheckAll;
|
||||
CLTool.Optimization = optimizeDisabled;
|
||||
}
|
||||
else {
|
||||
CLTool.RuntimeLibrary = rtMultiThreaded;
|
||||
CLTool.ExceptionHandling = false;
|
||||
CLTool.DebugInformationFormat = debugDisabled;
|
||||
}
|
||||
CLTool.AdditionalIncludeDirectories = strCurIncludeDir;
|
||||
CLTool.PreprocessorDefinitions = strDefinitions;
|
||||
CLTool.RuntimeLibrary = '3';
|
||||
CLTool.StructMemberAlignment = '3';
|
||||
CLTool.TreatWChar_tAsBuiltInType = 'false';
|
||||
CLTool.UsePrecompiledHeader = '0';
|
||||
CLTool.WarningLevel = '3';
|
||||
CLTool.ForcedIncludeFiles = '';
|
||||
|
||||
var LinkTool = config.Tools('VCLinkerTool');
|
||||
if (bDebug) {
|
||||
LinkTool.LinkIncremental = linkIncrementalYes;
|
||||
LinkTool.GenerateDebugInformation = true;
|
||||
LinkTool.GenerateMapFile = 'true';
|
||||
LinkTool.MapExports = 'true';
|
||||
}
|
||||
else {
|
||||
LinkTool.LinkIncremental = linkIncrementalNo;
|
||||
}
|
||||
LinkTool.AdditionalDependencies = strDependLibs;
|
||||
LinkTool.OutputFile = strOutputFile;
|
||||
LinkTool.AdditionalLibraryDirectories = strCurLibsDir;
|
||||
LinkTool.SubSystem = '1';
|
||||
LinkTool.RandomizedBaseAddress = '1';
|
||||
LinkTool.DataExecutionPrevention = '0';
|
||||
LinkTool.ImportLibrary = strImportLib;
|
||||
LinkTool.TargetMachine = '1';
|
||||
|
||||
var PostBuildTool = config.Tools("VCPostBuildEventTool");
|
||||
PostBuildTool.Description = "Performing registration...";
|
||||
var strResDir = "..\\..\\NEWPLUS\\TG3\\ConstData\\";
|
||||
var strPostCmd = "mkdir " + strResDir;
|
||||
strPostCmd += "\r\nxcopy /E /Y .\\Resource\\*.* " + strResDir;
|
||||
PostBuildTool.CommandLine = strPostCmd;
|
||||
}
|
||||
}
|
||||
catch (e) {
|
||||
throw e;
|
||||
}
|
||||
}
|
||||
|
||||
function AddPchSettings(proj) {
|
||||
}
|
||||
|
||||
function DelFile(fso, strWizTempFile) {
|
||||
try {
|
||||
if (fso.FileExists(strWizTempFile)) {
|
||||
var tmpFile = fso.GetFile(strWizTempFile);
|
||||
tmpFile.Delete();
|
||||
}
|
||||
}
|
||||
catch (e) {
|
||||
throw e;
|
||||
}
|
||||
}
|
||||
|
||||
function CreateCustomInfFile() {
|
||||
try {
|
||||
var fso, TemplatesFolder, TemplateFiles, strTemplate;
|
||||
fso = new ActiveXObject('Scripting.FileSystemObject');
|
||||
|
||||
var TemporaryFolder = 2;
|
||||
var tfolder = fso.GetSpecialFolder(TemporaryFolder);
|
||||
var strTempFolder = tfolder.Drive + '\\' + tfolder.Name;
|
||||
|
||||
var strWizTempFile = strTempFolder + "\\" + fso.GetTempName();
|
||||
|
||||
var strTemplatePath = wizard.FindSymbol('TEMPLATES_PATH');
|
||||
var strInfFile = strTemplatePath + '\\Templates.inf';
|
||||
wizard.RenderTemplate(strInfFile, strWizTempFile);
|
||||
|
||||
var WizTempFile = fso.GetFile(strWizTempFile);
|
||||
return WizTempFile;
|
||||
}
|
||||
catch (e) {
|
||||
throw e;
|
||||
}
|
||||
}
|
||||
|
||||
function GetTargetName(strName, strProjectName) {
|
||||
try {
|
||||
var strTarget = strName;
|
||||
|
||||
var nIndex = strName.indexOf("root");
|
||||
|
||||
if (nIndex >= 0) {
|
||||
var strMid = strProjectName;
|
||||
if (strName.indexOf("_res_") >= 0) {
|
||||
strMid = wizard.FindSymbol('PROJECT_NAME_LOWER');
|
||||
}
|
||||
strTarget = strName.substring(0, nIndex) + strMid + strName.substring(nIndex + 4, strName.length);
|
||||
}
|
||||
|
||||
return strTarget;
|
||||
|
||||
}
|
||||
catch (e) {
|
||||
throw e;
|
||||
}
|
||||
}
|
||||
|
||||
function AddFilesToCustomProj(proj, strProjectName, strProjectPath, InfFile) {
|
||||
try {
|
||||
var strTemplatePath = wizard.FindSymbol('TEMPLATES_PATH');
|
||||
|
||||
var strName = '';
|
||||
|
||||
var strTextStream = InfFile.OpenAsTextStream(1, -2);
|
||||
while (!strTextStream.AtEndOfStream)
|
||||
{
|
||||
strName = strTextStream.ReadLine();
|
||||
|
||||
if (!strName.length || strName == '') {
|
||||
continue;
|
||||
}
|
||||
// log.WriteLine(strName);
|
||||
var strTarget = GetTargetName(strName, strProjectName);
|
||||
var strTemplate = strTemplatePath + '\\' + strName;
|
||||
var strFile = strProjectPath + '\\' + strTarget;
|
||||
|
||||
var bCopyOnly = false;
|
||||
var strExt = strName.substr(strName.lastIndexOf("."));
|
||||
if (strExt == ".ARM"
|
||||
|| strExt == ".jpg"
|
||||
|| strExt == ".png"
|
||||
|| strExt == ".bmp"
|
||||
|| strExt == ".ico"
|
||||
|| strExt == ".gif"
|
||||
|| strExt == ".rtf"
|
||||
|| strExt == ".css") {
|
||||
bCopyOnly = true;
|
||||
}
|
||||
wizard.RenderTemplate(strTemplate, strFile, bCopyOnly);
|
||||
|
||||
if (strExt == ".h") {
|
||||
if (strName.indexOf("UnicodeScript.h") >= 0) {
|
||||
unFile = proj.Object.AddFile(strFile);
|
||||
var strPrjTG3DirWin = '..\\..\\PRJ_TG3\\';
|
||||
var unFileCfg = unFile.FileConfigurations('Debug');
|
||||
var strCommandLine = strPrjTG3DirWin + 'Common\\StrConv\\TzdStrConv_V1.exe $(InputPath) $(InputDir)$(InputName)_str.h';
|
||||
var strAddDepend = strPrjTG3DirWin + 'Common\\StrConv\\TzdStrConv_V1.exe';
|
||||
unFileCfg.Tool.CommandLine = strCommandLine;
|
||||
unFileCfg.Tool.AdditionalDependencies = strAddDepend;
|
||||
unFileCfg.Tool.Outputs = '$(InputDir)$(InputName)_str.h';
|
||||
continue;
|
||||
}
|
||||
|
||||
}
|
||||
proj.Object.AddFile(strFile);
|
||||
}
|
||||
strTextStream.Close();
|
||||
}
|
||||
catch (e) {
|
||||
throw e;
|
||||
}
|
||||
}
|
|
@ -1,97 +0,0 @@
|
|||
#include "AppDelegate.h"
|
||||
|
||||
#include "cocos2d.h"
|
||||
[! if CC_USE_COCOS_DENSHION_SIMPLE_AUDIO_ENGINE]
|
||||
#include "SimpleAudioEngine.h"
|
||||
using namespace CocosDenshion;
|
||||
|
||||
[! endif]
|
||||
#include "HelloWorldScene.h"
|
||||
|
||||
using namespace cocos2d;
|
||||
|
||||
AppDelegate::AppDelegate()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
AppDelegate::~AppDelegate()
|
||||
{
|
||||
[! if CC_USE_COCOS_DENSHION_SIMPLE_AUDIO_ENGINE]
|
||||
SimpleAudioEngine::end();
|
||||
[! endif]
|
||||
}
|
||||
|
||||
bool AppDelegate::initInstance()
|
||||
{
|
||||
bool bRet = false;
|
||||
do
|
||||
{
|
||||
#if (CC_TARGET_PLATFORM == CC_PLATFORM_WIN32)
|
||||
// Initialize OpenGLView instance, that release by CCDirector when application terminate.
|
||||
// The HelloWorld is designed as HVGA.
|
||||
CCEGLView * pMainWnd = new CCEGLView();
|
||||
CC_BREAK_IF(! pMainWnd
|
||||
|| ! pMainWnd->Create(TEXT("[!output PROJECT_NAME]"), 320, 480));
|
||||
#endif // CC_PLATFORM_WIN32
|
||||
|
||||
#if (CC_TARGET_PLATFORM == CC_PLATFORM_IOS)
|
||||
|
||||
// OpenGLView initialized in testsAppDelegate.mm on ios platform, nothing need to do here.
|
||||
|
||||
#endif // CC_PLATFORM_IOS
|
||||
|
||||
#if (CC_TARGET_PLATFORM == CC_PLATFORM_ANDROID)
|
||||
|
||||
// Android doesn't need to do anything.
|
||||
|
||||
#endif // CC_PLATFORM_ANDROID
|
||||
|
||||
bRet = true;
|
||||
} while (0);
|
||||
return bRet;
|
||||
}
|
||||
|
||||
bool AppDelegate::applicationDidFinishLaunching()
|
||||
{
|
||||
// initialize director
|
||||
CCDirector *pDirector = CCDirector::sharedDirector();
|
||||
pDirector->setOpenGLView(&CCEGLView::sharedOpenGLView());
|
||||
|
||||
// sets landscape mode
|
||||
pDirector->setDeviceOrientation(kCCDeviceOrientationLandscapeLeft);
|
||||
|
||||
// turn on display FPS
|
||||
pDirector->setDisplayFPS(true);
|
||||
|
||||
// set FPS. the default value is 1.0/60 if you don't call this
|
||||
pDirector->setAnimationInterval(1.0 / 60);
|
||||
|
||||
// create a scene. it's an autorelease object
|
||||
CCScene *pScene = HelloWorld::scene();
|
||||
|
||||
// run
|
||||
pDirector->runWithScene(pScene);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
// This function will be called when the app is inactive. When comes a phone call,it's be invoked too
|
||||
void AppDelegate::applicationDidEnterBackground()
|
||||
{
|
||||
CCDirector::sharedDirector()->pause();
|
||||
[! if CC_USE_COCOS_DENSHION_SIMPLE_AUDIO_ENGINE]
|
||||
|
||||
SimpleAudioEngine::sharedEngine()->pauseBackgroundMusic();
|
||||
[! endif]
|
||||
}
|
||||
|
||||
// this function will be called when the app is active again
|
||||
void AppDelegate::applicationWillEnterForeground()
|
||||
{
|
||||
CCDirector::sharedDirector()->resume();
|
||||
[! if CC_USE_COCOS_DENSHION_SIMPLE_AUDIO_ENGINE]
|
||||
|
||||
SimpleAudioEngine::sharedEngine()->resumeBackgroundMusic();
|
||||
[! endif]
|
||||
}
|
|
@ -1,43 +0,0 @@
|
|||
#ifndef __APP_DELEGATE_H__
|
||||
#define __APP_DELEGATE_H__
|
||||
|
||||
#include "CCApplication.h"
|
||||
|
||||
/**
|
||||
@brief The cocos2d Application.
|
||||
|
||||
The reason for implement as private inheritance is to hide some interface call by CCDirector.
|
||||
*/
|
||||
class AppDelegate : private cocos2d::CCApplication
|
||||
{
|
||||
public:
|
||||
AppDelegate();
|
||||
virtual ~AppDelegate();
|
||||
|
||||
/**
|
||||
@brief Implement for initialize OpenGL instance, set source path, etc...
|
||||
*/
|
||||
virtual bool initInstance();
|
||||
|
||||
/**
|
||||
@brief Implement CCDirector and CCScene init code here.
|
||||
@return true Initialize success, app continue.
|
||||
@return false Initialize failed, app terminate.
|
||||
*/
|
||||
virtual bool applicationDidFinishLaunching();
|
||||
|
||||
/**
|
||||
@brief The function be called when the application enter background
|
||||
@param the pointer of the application
|
||||
*/
|
||||
virtual void applicationDidEnterBackground();
|
||||
|
||||
/**
|
||||
@brief The function be called when the application enter foreground
|
||||
@param the pointer of the application
|
||||
*/
|
||||
virtual void applicationWillEnterForeground();
|
||||
};
|
||||
|
||||
#endif // __APP_DELEGATE_H__
|
||||
|
|
@ -1,97 +0,0 @@
|
|||
#include "HelloWorldScene.h"
|
||||
|
||||
using namespace cocos2d;
|
||||
|
||||
CCScene* HelloWorld::scene()
|
||||
{
|
||||
CCScene * scene = NULL;
|
||||
do
|
||||
{
|
||||
// 'scene' is an autorelease object
|
||||
scene = CCScene::node();
|
||||
CC_BREAK_IF(! scene);
|
||||
|
||||
// 'layer' is an autorelease object
|
||||
HelloWorld *layer = HelloWorld::node();
|
||||
CC_BREAK_IF(! layer);
|
||||
|
||||
// add layer as a child to scene
|
||||
scene->addChild(layer);
|
||||
} while (0);
|
||||
|
||||
// return the scene
|
||||
return scene;
|
||||
}
|
||||
|
||||
// on "init" you need to initialize your instance
|
||||
bool HelloWorld::init()
|
||||
{
|
||||
bool bRet = false;
|
||||
do
|
||||
{
|
||||
//////////////////////////////////////////////////////////////////////////
|
||||
// super init first
|
||||
//////////////////////////////////////////////////////////////////////////
|
||||
|
||||
CC_BREAK_IF(! CCLayer::init());
|
||||
|
||||
//////////////////////////////////////////////////////////////////////////
|
||||
// add your codes below...
|
||||
//////////////////////////////////////////////////////////////////////////
|
||||
|
||||
// 1. Add a menu item with "X" image, which is clicked to quit the program.
|
||||
|
||||
// Create a "close" menu item with close icon, it's an auto release object.
|
||||
CCMenuItemImage *pCloseItem = CCMenuItemImage::itemFromNormalImage(
|
||||
"CloseNormal.png",
|
||||
"CloseSelected.png",
|
||||
this,
|
||||
menu_selector(HelloWorld::menuCloseCallback));
|
||||
CC_BREAK_IF(! pCloseItem);
|
||||
|
||||
// Place the menu item bottom-right conner.
|
||||
pCloseItem->setPosition(ccp(CCDirector::sharedDirector()->getWinSize().width - 20, 20));
|
||||
|
||||
// Create a menu with the "close" menu item, it's an auto release object.
|
||||
CCMenu* pMenu = CCMenu::menuWithItems(pCloseItem, NULL);
|
||||
pMenu->setPosition(CCPointZero);
|
||||
CC_BREAK_IF(! pMenu);
|
||||
|
||||
// Add the menu to HelloWorld layer as a child layer.
|
||||
this->addChild(pMenu, 1);
|
||||
|
||||
// 2. Add a label shows "Hello World".
|
||||
|
||||
// Create a label and initialize with string "Hello World".
|
||||
CCLabelTTF* pLabel = CCLabelTTF::labelWithString("Hello World", "Thonburi", 64);
|
||||
CC_BREAK_IF(! pLabel);
|
||||
|
||||
// Get window size and place the label upper.
|
||||
CCSize size = CCDirector::sharedDirector()->getWinSize();
|
||||
pLabel->setPosition(ccp(size.width / 2, size.height - 20));
|
||||
|
||||
// Add the label to HelloWorld layer as a child layer.
|
||||
this->addChild(pLabel, 1);
|
||||
|
||||
// 3. Add add a splash screen, show the cocos2d splash image.
|
||||
CCSprite* pSprite = CCSprite::spriteWithFile("HelloWorld.png");
|
||||
CC_BREAK_IF(! pSprite);
|
||||
|
||||
// Place the sprite on the center of the screen
|
||||
pSprite->setPosition(ccp(size.width/2, size.height/2));
|
||||
|
||||
// Add the sprite to HelloWorld layer as a child layer.
|
||||
this->addChild(pSprite, 0);
|
||||
|
||||
bRet = true;
|
||||
} while (0);
|
||||
|
||||
return bRet;
|
||||
}
|
||||
|
||||
void HelloWorld::menuCloseCallback(CCObject* pSender)
|
||||
{
|
||||
// "close" menu item clicked
|
||||
CCDirector::sharedDirector()->end();
|
||||
}
|
||||
|
|
@ -1,34 +0,0 @@
|
|||
#ifndef __HELLOWORLD_SCENE_H__
|
||||
#define __HELLOWORLD_SCENE_H__
|
||||
|
||||
#include "cocos2d.h"
|
||||
[! if CC_USE_BOX2D]
|
||||
|
||||
#include "Box2D/Box2D.h"
|
||||
[! endif]
|
||||
[! if CC_USE_CHIPMUNK]
|
||||
|
||||
#include "chipmunk.h"
|
||||
[! endif]
|
||||
[! if CC_USE_COCOS_DENSHION_SIMPLE_AUDIO_ENGINE]
|
||||
|
||||
#include "SimpleAudioEngine.h"
|
||||
[! endif]
|
||||
|
||||
class HelloWorld : public cocos2d::CCLayer
|
||||
{
|
||||
public:
|
||||
// Here's a difference. Method 'init' in cocos2d-x returns bool, instead of returning 'id' in cocos2d-iphone
|
||||
virtual bool init();
|
||||
|
||||
// there's no 'id' in cpp, so we recommand to return the exactly class pointer
|
||||
static cocos2d::CCScene* scene();
|
||||
|
||||
// a selector callback
|
||||
virtual void menuCloseCallback(CCObject* pSender);
|
||||
|
||||
// implement the "static node()" method manually
|
||||
LAYER_NODE_FUNC(HelloWorld);
|
||||
};
|
||||
|
||||
#endif // __HELLOWORLD_SCENE_H__
|
|
@ -1 +0,0 @@
|
|||
this file need to run .tmk3 file to rebuild.
|
|
@ -1 +0,0 @@
|
|||
a09f5a5c10a2c292e53273fe9bb93c1b711a3787
|
|
@ -1,25 +0,0 @@
|
|||
root_Arm.TMK3
|
||||
Makefile.ARM
|
||||
|
||||
wophone/NewDeleteOp.cpp
|
||||
wophone/TG3AppDllEntry.cpp
|
||||
wophone/TG3AppDllEntry.h
|
||||
|
||||
wophone/main.cpp
|
||||
|
||||
wophone/rootUnicodeScript.h
|
||||
wophone/rootUnicodeScript_str.h
|
||||
|
||||
[! if CC_USE_TCOM_SUPPORT]
|
||||
wophone/TCOM/root_TcomRegist.cpp
|
||||
[! endif]
|
||||
|
||||
Classes/AppDelegate.h
|
||||
Classes/AppDelegate.cpp
|
||||
|
||||
Classes/HelloWorldScene.h
|
||||
Classes/HelloWorldScene.cpp
|
||||
|
||||
Resource/CloseNormal.png
|
||||
Resource/CloseSelected.png
|
||||
Resource/HelloWorld.png
|
|
@ -1,75 +0,0 @@
|
|||
;
|
||||
; TG3 Makefile Auto Create Script
|
||||
;
|
||||
; 说明:
|
||||
; 1.在等号左边不要有空格
|
||||
; 2.所有的路径请使用"/"来分隔
|
||||
; 3.所有的文件名不可以有空格
|
||||
; 4.只能对当前目录及其子目录下的.c、.cpp生成Makefile
|
||||
|
||||
;本TMK3文件目录位置到项目根目录之间的转换,不支持多个串,如果有多个,以最后一个为准
|
||||
;即 ./$(TO_PROJECT_ROOT)/ 就是项目的根目录
|
||||
TO_PROJECT_ROOT=[!output PROJECT_PRJ_TG3_DIR]
|
||||
|
||||
;输出目标的名字,不支持多个串,如果有多个,以最后一个为准
|
||||
OUTPUT_FILENAME=lib[!output PROJECT_NAME].so
|
||||
|
||||
;包含的其他的TMK3文件,此文件和本文件一起构成MakeFile的内容
|
||||
;此项可以出现在TMK3文件内的任意地方,与已经存在的项依次组合
|
||||
;注意:此项不支持绝对路径,但是可以使用$(TO_PROJECT_ROOT)构成文件名
|
||||
INCLUDE_TMK3=$(TO_PROJECT_ROOT)/MakeInclude/TG3_APP_Arm.TMK3 ;TOPS标准应用,包括动态库等
|
||||
|
||||
;预定义串,生成MakeFile的时候直接放在MakeFile的前面
|
||||
;格式:PRE_DEFINE=STRING,生成MakeFile的时候,"PRE_DEFINE="后面的所有非注释非续行字符都会放在MakeFile前面
|
||||
;例如:PRE_DEFINE=AAA=BBB,会放入AAA=BBB到MakeFile中
|
||||
;可以使用多个PRE_DEFINE串,也可以使用PRE_DEFINE1、PRE_DEFINE2等方式,MakeFile中依据出现顺序(不是数字大小)排列
|
||||
;PRE_DEFINE=USE_IMAGEKIT=1 ;使用 ImageToolKit 库,此时生成的 Makefile 会自动连接有关的LIB
|
||||
;PRE_DEFINE=USE_ICU=1 ;使用 ICU 库,此时生成的 Makefile 会自动连接有关的LIB
|
||||
;PRE_DEFINE=USE_MTAPI=1 ;使用 MTAPI 库,此时生成的 Makefile 会自动连接有关的LIB
|
||||
|
||||
;C、C++预定义宏,可以使用多个DEFINES串,也可以使用DEFINES1、DEFINES2等方式,MakeFile中依据出现顺序(不是数字大小)排列
|
||||
DEFINES=-DCC_UNDER_WOPHONE ;这里填入应用的自定义宏。注意:ITOPS自己的所需定义会自动包含,故此这里仅仅包含应用自己特有的定义即可
|
||||
;DEFINES=-D__TG3_PURE_DLL__ ;生成的是纯动态库(意思是:不是TOPS应用,但可以是TCOM组件)
|
||||
[!if CC_USE_TCOM_SUPPORT]
|
||||
DEFINES=-D__TCOM_SUPPORT__ ;生成的是TCOM组件(注意:TOPS应用也可以同时是TCOM组件)
|
||||
[!else]
|
||||
;DEFINES=-D__TCOM_SUPPORT__ ;生成的是TCOM组件(注意:TOPS应用也可以同时是TCOM组件)
|
||||
[!endif]
|
||||
|
||||
;包含路径,可以使用多个INCLUDE_PATH串,也可以使用INCLUDE_PATH1、INCLUDE_PATH2等方式,MakeFile中依据出现顺序(不是数字大小)排列
|
||||
INCLUDE_PATH=-I ../../PRJ_TG3/Include/OpenGL -I../cocos2dx -I../cocos2dx/include -I../cocos2dx/platform
|
||||
INCLUDE_PATH=-I. -I./Classes -I./wophone -I./wophone/Res ;默认本项目的路径
|
||||
[! if CC_USE_BOX2D]
|
||||
INCLUDE_PATH=-I../
|
||||
[! endif]
|
||||
[! if CC_USE_CHIPMUNK]
|
||||
INCLUDE_PATH=-I../chipmunk/include/chipmunk
|
||||
[! endif]
|
||||
[! if CC_USE_COCOS_DENSHION_SIMPLE_AUDIO_ENGINE]
|
||||
INCLUDE_PATH=-I../CocosDenshion/include
|
||||
[! endif]
|
||||
|
||||
;连接的库文件,可以使用多个LIBS串,也可以使用LIBS1、LIBS2等方式,MakeFile中依据出现顺序(不是数字大小)排列
|
||||
LIBS=-lCocos2dStatic -lTG3_EGL -lTG3_GLESv1_CM -lTG3_GLESv2 -lz -lxml2 -lpng14 -lImageToolKit -ljpeg ;应用额外的连接库。注意:ITOPS自己的所需库自动包含,而且库包含路径也已经包含,故此这里仅仅包含应用自己特有的库的名字即可
|
||||
[! if CC_USE_BOX2D]
|
||||
LIBS=-lBox2dStatic
|
||||
[! endif]
|
||||
[! if CC_USE_CHIPMUNK]
|
||||
LIBS=-lChipmunkStatic
|
||||
[! endif]
|
||||
[! if CC_USE_COCOS_DENSHION_SIMPLE_AUDIO_ENGINE]
|
||||
LIBS=-lCocosDenshionStatic -lTSoundPlayer
|
||||
[! endif]
|
||||
|
||||
;强制包含文件的名字,不能使用通配符,一定要使用相对或者绝对路径
|
||||
;极力要求使用相对路径,多个文件之间使用“|”分隔
|
||||
;强制包含文件指的是不在本文件夹及其子文件夹下的.c、.cpp、.o文件
|
||||
;可以使用多个INCLUDEFILE串,也可以使用INCLUDEFILE1、INCLUDEFILE2等方式,MakeFile中依据出现顺序(不是数字大小)排列
|
||||
INCLUDEFILE=
|
||||
|
||||
;强制排除文件,不能使用通配符,一定要使用相对路径
|
||||
;多个文件之间使用“|”分隔,路径必须以"./","../"开始
|
||||
;只能对.c、.cpp文件进行排除
|
||||
;如果要排除本目录的文件也要加入"./"
|
||||
;可以使用多个EXCLUDEFILE串,也可以使用EXCLUDEFILE1、EXCLUDEFILE2等方式,MakeFile中依据出现顺序(不是数字大小)排列
|
||||
EXCLUDEFILE=
|
|
@ -1,82 +0,0 @@
|
|||
|
||||
/*!
|
||||
* @file NewDeleteOp.cpp
|
||||
* @author 全智达
|
||||
* @brief
|
||||
*
|
||||
* @section Copyright
|
||||
* =======================================================================<br>
|
||||
* <br>
|
||||
* Copyright (c) 2005-2010 Tranzda Technologies Co.,Ltd. <br>
|
||||
* 深圳市全智达科技有限公司 版权所有2005-2010<br>
|
||||
* <br>
|
||||
* PROPRIETARY RIGHTS of Tranzda Technologies Co.,Ltd. are involved in <br>
|
||||
* the subject matter of this material. All manufacturing, reproduction, <br>
|
||||
* use, and sales rights pertaining to this subject matter are governed <br>
|
||||
* by the license agreement. The recipient of this software implicitly <br>
|
||||
* accepts the terms of the license. <br>
|
||||
* 本软件文档资料是深圳市全智达科技有限公司的合法资产,任何人士阅读和使<br>
|
||||
* 用本资料必须获得相应的书面授权,承担保密责任和接受相应的法律约束。<br>
|
||||
* <br>
|
||||
* 公司网址:<a href="http://www.tranzda.com"> http://www.tranzda.com </a> <br>
|
||||
* 公司邮箱:<a mailto="support@tranzda.com">support@tranzda.com</a> <br>
|
||||
* =======================================================================<br>
|
||||
*/
|
||||
|
||||
#include "ssTypes.h"
|
||||
#include "TG3_Type.h"
|
||||
#include "TG3_Memory.h"
|
||||
|
||||
#ifdef new
|
||||
#undef new
|
||||
#endif
|
||||
|
||||
#ifdef delete
|
||||
#undef delete
|
||||
#endif
|
||||
|
||||
#ifndef _WIN32
|
||||
#define __cdecl
|
||||
#endif
|
||||
|
||||
void * __cdecl operator new(unsigned int size)
|
||||
{
|
||||
return TMalloc(size);
|
||||
}
|
||||
|
||||
void * __cdecl operator new[](unsigned int size)
|
||||
{
|
||||
return TMalloc(size);
|
||||
}
|
||||
|
||||
void * __cdecl operator new(unsigned int size, const unsigned short * fileName, int lineNo)
|
||||
{
|
||||
return TMallocEx(size, fileName, lineNo);
|
||||
}
|
||||
|
||||
void * __cdecl operator new[](unsigned int size, const unsigned short * fileName, int lineNo)
|
||||
{
|
||||
return TMallocEx(size, fileName, lineNo);
|
||||
}
|
||||
|
||||
void __cdecl operator delete(void *p)
|
||||
{
|
||||
TFree(p);
|
||||
}
|
||||
|
||||
void __cdecl operator delete[](void *p)
|
||||
{
|
||||
TFree(p);
|
||||
}
|
||||
|
||||
void __cdecl operator delete(void *p, const unsigned short * fileName, int lineNo)
|
||||
{
|
||||
TFreeEx(p, fileName, lineNo);
|
||||
}
|
||||
|
||||
void __cdecl operator delete[](void *p, const unsigned short * fileName, int lineNo)
|
||||
{
|
||||
TFreeEx(p, fileName, lineNo);
|
||||
}
|
||||
|
||||
|
|
@ -1,52 +0,0 @@
|
|||
|
||||
// Original file name: [!output PROJECT_NAME]_Res.ENU.tr3
|
||||
// Generated by Cocos2d-wophone Wizard Date: [!output CC_CURRENT_DATE]
|
||||
|
||||
|
||||
//$VERSION 60006
|
||||
//$SETTINGS
|
||||
//$Begin
|
||||
//$VCPRJFILE="..\..\[!output PROJECT_NAME].wophone.vcproj"
|
||||
//$End
|
||||
LANGUAGE = 1033
|
||||
// ImageLists
|
||||
|
||||
// Project
|
||||
PROJECT
|
||||
BEGIN
|
||||
ScreenWidth 320
|
||||
ScreenHeight 480
|
||||
ScreenDPI 165
|
||||
END
|
||||
|
||||
|
||||
// TComObject
|
||||
|
||||
// Forms
|
||||
|
||||
// Menus
|
||||
|
||||
// Alerts ¾¯¸æÏûÏ¢
|
||||
|
||||
// Strings
|
||||
|
||||
// Fonts
|
||||
|
||||
// Bitmaps
|
||||
|
||||
IMAGEFOLDER ID ResFolder1001 FOLDERNAME $0052$006F$006F$0074$0028$0041$006C$006C$0029
|
||||
// Îļþ¼Ð: Root(All)
|
||||
BEGIN
|
||||
BITMAP ID CloseNormal NOCOMPRESS HasAlphaData TRANSPARENTCOLOR $FFFFFFFF
|
||||
FileName $002E$002E$005C$002E$002E$005C$0052$0065$0073$006F$0075$0072$0063$0065$005C$0043$006C$006F$0073$0065$004E$006F$0072$006D$0061$006C$002E$0070$006E$0067
|
||||
//..\..\Resource\CloseNormal.png
|
||||
|
||||
BITMAP ID CloseSelected NOCOMPRESS HasAlphaData TRANSPARENTCOLOR $FFFFFFFF
|
||||
FileName $002E$002E$005C$002E$002E$005C$0052$0065$0073$006F$0075$0072$0063$0065$005C$0043$006C$006F$0073$0065$0053$0065$006C$0065$0063$0074$0065$0064$002E$0070$006E$0067
|
||||
//..\..\Resource\CloseSelected.png
|
||||
|
||||
END
|
||||
// raw data
|
||||
|
||||
// Application
|
||||
|
|
@ -1,5 +0,0 @@
|
|||
|
||||
// Original file name: [!output PROJECT_NAME]_Res.ENU.tr3.tts
|
||||
// Generated by Cocos2d-wophone Wizard Date: [!output CC_CURRENT_DATE]
|
||||
|
||||
|
|
@ -1,55 +0,0 @@
|
|||
|
||||
// Original file name: [!output PROJECT_NAME]_Res.TR3
|
||||
// Generated by Cocos2d-wophone Wizard Date: [!output CC_CURRENT_DATE]
|
||||
|
||||
|
||||
#include "[!output PROJECT_NAME]_Res.h"
|
||||
|
||||
//$VERSION 60006
|
||||
//$SETTINGS
|
||||
//$Begin
|
||||
//$VCPRJFILE="..\..\[!output PROJECT_NAME].wophone.vcproj"
|
||||
//$End
|
||||
|
||||
LANGUAGE = 2052
|
||||
// ImageLists
|
||||
|
||||
// Project
|
||||
PROJECT
|
||||
BEGIN
|
||||
ScreenWidth 320
|
||||
ScreenHeight 480
|
||||
ScreenDPI 165
|
||||
END
|
||||
|
||||
|
||||
// TComObject
|
||||
|
||||
// Forms
|
||||
|
||||
// Menus
|
||||
|
||||
// Alerts ¾¯¸æÏûÏ¢
|
||||
|
||||
// Strings
|
||||
|
||||
// Fonts
|
||||
|
||||
// Bitmaps
|
||||
|
||||
IMAGEFOLDER ID ResFolder1001 FOLDERNAME $0052$006F$006F$0074$0028$0041$006C$006C$0029
|
||||
// Îļþ¼Ð: Root(All)
|
||||
BEGIN
|
||||
BITMAP ID CloseNormal NOCOMPRESS HasAlphaData TRANSPARENTCOLOR $FFFFFFFF
|
||||
FileName $002E$002E$005C$002E$002E$005C$0052$0065$0073$006F$0075$0072$0063$0065$005C$0043$006C$006F$0073$0065$004E$006F$0072$006D$0061$006C$002E$0070$006E$0067
|
||||
//..\..\Resource\CloseNormal.png
|
||||
|
||||
BITMAP ID CloseSelected NOCOMPRESS HasAlphaData TRANSPARENTCOLOR $FFFFFFFF
|
||||
FileName $002E$002E$005C$002E$002E$005C$0052$0065$0073$006F$0075$0072$0063$0065$005C$0043$006C$006F$0073$0065$0053$0065$006C$0065$0063$0074$0065$0064$002E$0070$006E$0067
|
||||
//..\..\Resource\CloseSelected.png
|
||||
|
||||
END
|
||||
// raw data
|
||||
|
||||
// Application
|
||||
|
|
@ -1,19 +0,0 @@
|
|||
// Application resource group file.
|
||||
|
||||
// Original file name: [!output PROJECT_NAME]_Res.TRG
|
||||
// Generated by Cocos2d-wophone Wizard Date: [!output CC_CURRENT_DATE]
|
||||
|
||||
|
||||
|
||||
VERSION 60001
|
||||
PROJECT
|
||||
Begin
|
||||
IsLangBase
|
||||
FileName = ".\[!output PROJECT_NAME]_Res.TR3"
|
||||
End
|
||||
|
||||
PROJECT
|
||||
Begin
|
||||
FileName = ".\[!output PROJECT_NAME]_Res.ENU.tr3"
|
||||
End
|
||||
|
|
@ -1,12 +0,0 @@
|
|||
// Original file name: [!output PROJECT_NAME_LOWER]_Res.h
|
||||
// Generated by Cocos2d-wophone Wizard Date: [!output CC_CURRENT_DATE]
|
||||
|
||||
#ifndef __[!output PROJECT_NAME_UPPER]_RES_DEF_H__
|
||||
#define __[!output PROJECT_NAME_UPPER]_RES_DEF_H__
|
||||
|
||||
#define ResFolder1001 1001
|
||||
#define CloseNormal 1002
|
||||
#define CloseSelected 1003
|
||||
|
||||
#endif
|
||||
|
|
@ -1,210 +0,0 @@
|
|||
// Original file name: [!output PROJECT_NAME_LOWER]_Res.h
|
||||
// Generated by Cocos2d-wophone Wizard Date: [!output CC_CURRENT_DATE]
|
||||
|
||||
#include "[!output PROJECT_NAME_LOWER]_res_h.h"
|
||||
#ifndef WIN32
|
||||
//#pragma diag_remark 1296
|
||||
#endif
|
||||
#if 11<RES_VERSION
|
||||
#error Resource file version too low!Must be compiled with higher version TR3C.
|
||||
#endif
|
||||
|
||||
|
||||
/************************************************************
|
||||
* Language:CHS
|
||||
*************************************************************/
|
||||
|
||||
|
||||
const ResProjectType [!output PRO_NAME_PREFIX]_project=
|
||||
{
|
||||
320, //screenWidth
|
||||
480, //screenHeight
|
||||
165, //screenDPI
|
||||
};
|
||||
const UInt32 [!output PRO_NAME_PREFIX]_Bitmap_CloseNormal_bmp_data[]=
|
||||
{
|
||||
//Bmp Datas,位图数据(2311字节,原图:32x32,4096字节,压缩成56%):
|
||||
0x00000001, 0x00000907, 0x00000000, 0x00000000,
|
||||
// data length : 2311
|
||||
//|00000000 |00000001 |00000002 |00000003 |00000004 |00000005 |00000006 |00000007 |00000008 |00000009 |00000010 |00000011 |00000012 |00000013 |00000014 |00000015
|
||||
/*00000000*/0x474E5089,0x0A1A0A0D,0x0D000000,0x52444849,0x20000000,0x20000000,0x00000608,0x7A7A7300,0x080000F4,0x414449CE,0x9D855854,0x5C6C7996,0x3FC71DC5,0x3ADEF333,0x1276B23E,0x42773827,
|
||||
/*00000001*/0x2E43620E,0x81443404,0x1090DA12,0xA545085B,0x2B6AB47F,0x23AA0095,0x0AAB5142,0xA0F4B4A9,0xA8504095,0xB5542A48,0xA954011C,0x91314889,0x1608155A,0x89094A49,0x71397383,0x7884EC2E,
|
||||
/*00000002*/0xEDAF5DED,0x7BDF77B5,0x1FE98EF3,0xA4E33EBB,0xBEED23B4,0xFD9BD5D9,0xDFDFBF7C,0xE2ADEFCC,0x8A9A631A,0x7B37582D,0x38E366D1,0xDBF43BB2,0xC8EF75AF,0xC5642251,0x3DE6EBBA,0x67B2313C,
|
||||
/*00000003*/0x96B90475,0xD46EBB2F,0xCA721528,0xF1BE1BB3,0xD689E4CF,0x4FE3D770,0x58825A9E,0x09D665FA,0xB0DF0F10,0xFE2FA5FC,0x78F82875,0x9BA96BFB,0xFD362B8B,0x37E7F05F,0xE06F737E,0x8E38C67A,
|
||||
/*00000004*/0x8698C631,0x56DD7E27,0xDFF1588D,0x5E2C8FE0,0xF5A7BDB6,0x3A1DC982,0xBB5B7462,0x33B1DE69,0xFE28BCB7,0x5700FFC0,0xFF5B9E53,0x71DF5EC0,0x369DD04D,0xE35696B9,0x7C60BD9E,0x7FBB37CF,
|
||||
/*00000005*/0x0D7B54F4,0xE0D5E562,0xBA5C2F0F,0xCA7CD93D,0x37EE35F4,0xADFA9F17,0x73F4F4B9,0x71C8E066,0xED99E073,0xC6A11557,0xEEB17FC2,0xBD8F9DFE,0xC8AD63BD,0xBB27E00E,0xD84F8131,0x4E94403F,
|
||||
/*00000006*/0x7BBEF8B3,0xC4E667CB,0xF707E3C6,0x31212637,0xC179BE12,0xF97EDB8D,0xA2FA8EC6,0xF7FA2EEE,0x0C898C7D,0xDE92EB91,0x6F2A37F5,0xDD57B6AA,0x91DD7374,0x3B5B0783,0xB8E4EF43,0x9A854A02,
|
||||
/*00000007*/0xF7DDD4F2,0xD76C7CED,0x2E656B6B,0x83764E8B,0x11ED18D6,0xA6613E79,0xCDD5289F,0xE5F5DAC2,0xE362B2B3,0x371FC3C9,0x40212126,0xB35F9E6C,0xFF97C9ED,0x97DC5F58,0xA7C9F726,0x84C42098,
|
||||
/*00000008*/0x8FBA4121,0x38C3C1EC,0x75330F07,0x2DF66DF5,0x3BAA6F0B,0x28D9FCD6,0xFE106A11,0x3B75B5F3,0x95F5FEB7,0xF075D2B5,0xDF1852BB,0xE31A78C7,0x2EABF979,0x98A64888,0xF2EEFEBF,0xC6E10379,
|
||||
/*00000009*/0x3EC7E3E6,0xE2CE77B9,0xE17C9FC7,0xB925ADC5,0x33536E0C,0xC2F30826,0xE4E71F7D,0x1E9E8269,0x8FA21844,0x8AD2671E,0xB9CAF6A5,0x9F4EEA8B,0x11DAD53E,0x2A8845E4,0xD8FC5B15,0xB0FE7B9A,
|
||||
/*00000010*/0xFE7F2FF5,0xF8F8159A,0x020869DD,0xDA84D68C,0x3C30A42F,0x11171C8F,0xA6ABA18B,0x9FDFFE73,0xCCE75385,0x09A37154,0x84C69D4E,0x401F9121,0x7577E210,0x0A3A6D91,0x101080C6,0x88C76086,
|
||||
/*00000011*/0x574B5EEE,0xB77CED22,0xC94DF5E1,0x6D43FF50,0xCB60BE98,0xF0BFB64F,0x49D4F8FD,0xAF3B97F8,0xA379EE74,0x4C2485E7,0x69E4C932,0xEE95A593,0x1DBCFA26,0xA4850413,0x969D22F2,0x839CA256,
|
||||
/*00000012*/0xB59F3290,0x88FBE094,0x2D88974B,0x3A67645C,0xACFBAFBB,0x454BB53F,0xD7AE679E,0xAB798EE2,0x1D2C9B6F,0x08739307,0x6BDAC1BD,0xC10F4F22,0x6872A1C3,0xD4472E4C,0xF5F4C495,0xB0C1F911,
|
||||
/*00000013*/0xB74420D0,0x744E817F,0x3DA8D422,0xEC82908E,0x59B22AD4,0x47AD6BCD,0xEE06740E,0x750A9509,0x87A389DB,0x7B75671A,0xDD5733B5,0x075CAE5A,0xDA4438E3,0x51F01183,0xA89AB849,0x9AD18690,
|
||||
/*00000014*/0xEA841748,0x17A7B080,0x88E7DCF7,0x4F87E8C1,0x15A5BD0A,0xD9E22864,0xFBBD1F23,0x17BD2E49,0x5200ACB8,0xD8F275D0,0x6959C6E1,0xF96AB6AF,0x39E572B2,0xB9477390,0x43857C1F,0x2242E9DF,
|
||||
/*00000015*/0xC8E7D0DE,0xB7CF7075,0xA2233911,0xC653C02F,0x5E2BE322,0xF0D4DF3C,0x07B53661,0x191C0738,0x890928CA,0x8DCD2DD3,0xC6DED3B3,0xCA4B25CA,0xEB82ED6D,0x05B9DDE5,0x5D861E90,0xD1F68A91,
|
||||
/*00000016*/0xD3083B97,0x0635083D,0x2FBF43EE,0xB5B3A978,0xB52E6F61,0xEC00B807,0x22A8F403,0x7AD12125,0xDCE344F6,0xCA71B84C,0xB6E5C5E2,0x0CE721AF,0x2F707DD7,0x47718D68,0x13ED11EC,0x13F1A774,
|
||||
/*00000017*/0x0BD8F99D,0x1D200BD1,0x6481B24A,0xC37CFA5B,0x8FF0C307,0x27457D00,0xE671141C,0xC2E34B42,0xA530D99C,0xE585497A,0xF371C164,0x238E11D0,0xB447B0AF,0xA3F4CC26,0x47C3123B,0x281F00AE,
|
||||
/*00000018*/0x923FA32E,0x675DF7E6,0x7B3F7DDE,0x015C7C25,0x38905D00,0xFEC2F176,0xF0DCE6BB,0x49CA8ABD,0x6349E996,0xF3C89F3C,0x20AF9BF2,0x931AD220,0x5D13F073,0x0B2007E0,0xB018CE9B,0x3369C22C,
|
||||
/*00000019*/0xE3F9D3F8,0x89321A07,0x638B8037,0x0AF200E1,0xB8BD5E7A,0xB7F66AB3,0xB14D54A7,0xD09FA64D,0x171C8971,0xD7187AE3,0x682E78C5,0x904BAE0D,0xFE0446EA,0x1003BAA8,0xB8692845,0x458CDA7D,
|
||||
/*00000020*/0x009A8553,0x3E163FBC,0xC402026E,0xBF5C660F,0x1E77CB6D,0x094CB47C,0x883A3A61,0xCE9E0FB4,0x80209237,0x1AF84020,0x6845EE93,0x5214B48D,0x8594A449,0x2288080A,0xAD30EB84,0xE5B2BAF2,
|
||||
/*00000021*/0x85E964B2,0x2EC6CEBE,0x0535E74C,0x33F51008,0x647B6FE6,0x4BEAB7D3,0xBE5C248B,0x6835A44C,0xC016111F,0x7DF08041,0xF083264C,0x805DA47D,0x0294890B,0x8457F321,0xA51AF840,0xE34ACA5D,
|
||||
/*00000022*/0xD2AC4B15,0xA9FD73BA,0x624C2EC6,0x4402015C,0xDB79F4FD,0x7F70DC1E,0x0C69697D,0x79124C91,0x986F1F3A,0x30C32E77,0x007FBCEF,0x11A80411,0x85C247CE,0x69C28890,0x1D884190,0x58A914F8,
|
||||
/*00000023*/0x8AE2C6FC,0xA30373DA,0xF841A845,0xB6F3E996,0xBDD7783D,0x3125A5F5,0x911F5F54,0x79D7C1A7,0xE0161068,0xC8B3643E,0x2DB2C428,0x444725A4,0x214B879F,0x2005EEF3,0x26100604,0x4C44C8A2,
|
||||
/*00000024*/0xD2F8B150,0x67B549D2,0xE2A12446,0x543E5552,0xCD99EF35,0xA5BF5D5F,0x958634B8,0x1EBA12CB,0x2EC7CFC2,0xE973BCC2,0x872E446B,0x0B6CA0C4,0x8A4A24A9,0xA4295C3C,0x9D07C3CA,0x8161770F,
|
||||
/*00000025*/0x0C610631,0x56286131,0xC52DF8B1,0x1D3F6A93,0x8BD7BD48,0x97F752E9,0x75B23D57,0x159FDAF5,0x9CA29797,0x69EBBE5C,0x1875AF9D,0xE900C322,0x45D70879,0xDB65814A,0x4A512528,0x889C4D60,
|
||||
/*00000026*/0x85110292,0x4210A548,0x72140414,0x13077A1D,0x18620019,0x78A2EC2A,0x766DCC17,0x0EADBB32,0xA5F5B5E3,0x62B1FD53,0x3B9E227B,0x8844C704,0x82E7FF30,0x165A4030,0xAEF2AD96,0x59AE4085,
|
||||
/*00000027*/0x86BAAC43,0x6087B7A0,0x4C9007EF,0x110ADA11,0x3002F60C,0x418C60C6,0x4914431A,0x80621044,0xE3D04209,0x5F3016BB,0xCB4E79B5,0xE9E4EE85,0x7DD976D5,0x78D96DB6,0x235AF705,0x4511171C,
|
||||
/*00000028*/0xB2C29658,0x2812942D,0xAFB71129,0xF9C49742,0xDE9E6FE9,0x6CBA3B67,0x4A6B1DEE,0x74892A64,0x60148C5D,0x0A00020A,0x3F063022,0xBC50C434,0xF4D1DBDE,0x9BE76F56,0x00525C11,0x72DBBE6D,
|
||||
/*00000029*/0x75BBA7A6,0x5D595175,0x385B08CC,0x90F3C20E,0x856CA042,0x294A14B2,0xD5449294,0xD8C48435,0x0D0BD2F2,0xDEDA266F,0x78E5AF7C,0xB581ADE3,0xB2D972A2,0x97D32B72,0xC180A23F,0x06306440,
|
||||
/*00000030*/0x1FBE0C88,0x1D824762,0x2F4D1DBD,0x1CBD2EA6,0x2D028E60,0xDDB0C743,0xCD9E4EF7,0x51AEB6F4,0x1F94EA13,0xB0AD96D8,0x52958046,0x1267D304,0xDF478286,0x7761B57A,0x700F624F,0x6AECC1D1,
|
||||
/*00000031*/0xC3FA7F3A,0x95D5885B,0xB7139ECC,0x0C222C9D,0x88258331,0xB00BDA0C,0x3D1D88FC,0x1BBF4D1D,0xEE033786,0xEED446A8,0xB9CF277B,0x8B3BD6D9,0x4262EBCB,0x559156D8,0x97E25E88,0x11D4244E,
|
||||
/*00000032*/0x3BFBFC3F,0x76F76F0D,0x84B07C8D,0xBE6CE829,0x0571AE78,0xF1A5B545,0xFA1DB88A,0x8C886308,0x961E3B41,0xFA6AF3E3,0xADB8F84A,0x4EF7CDB8,0xEB4ED59E,0x3AF1C51D,0x8EDB08CB,0x8C08E8D9,
|
||||
/*00000033*/0x83E3F013,0xEEDE1AFB,0x54FB8E4B,0xB1C484EB,0x95C6C5C4,0xC13B5622,0x402DB8A8,0xF5911ABB,0xB97D2578,0x17D4F9E9,0xE063FB2F,0x96771CD7,0xB4381FC4,0x6CE766E0,0xAE732ACD,0x14D99566,
|
||||
/*00000034*/0x78077CAF,0x103AF808,0x65BADABB,0x33DCAE42,0x54FDA6A7,0x79F32ACD,0x44F32AF5,0x3643ACE5,0x2BE021E2,0xF7B184C0,0x627F2B8B,0x15175478,0x6CA7B86F,0x6761FD52,0x2E7F67A0,0x3F380073,
|
||||
/*00000035*/0x6378F9D6,0xAE96B4B1,0xABF55C9B,0xBC277684,0x1DDEE993,0x8AB99A60,0x280A6BF3,0x0160228C,0x802D0160,0x40D625FF,0x85D5BCBE,0xE0F1D9F9,0xCA01FF00,0x27E69763,0x0020B19B,0x49000000,
|
||||
/*00000036*/0xAE444E45,0x00826042,
|
||||
};
|
||||
const BitmapType [!output PRO_NAME_PREFIX]_Bitmap_CloseNormal=
|
||||
{
|
||||
32,32, //imWidth,imHeight
|
||||
128, //imRowBytes
|
||||
0, //imAlign
|
||||
32 //imBits
|
||||
,BITMAP_FLAGS_COMPRESSED// imFlags
|
||||
,0// imReserve
|
||||
,0,NULL// imMemSize,imMemPtr
|
||||
,(UInt8 *)[!output PRO_NAME_PREFIX]_Bitmap_CloseNormal_bmp_data// imDataP
|
||||
,NULL// imColorTableP
|
||||
,0x0 //imTransparencyColor
|
||||
};
|
||||
const ResTBitmapStructType [!output PRO_NAME_PREFIX]_TBitmapStruct_CloseNormal=
|
||||
{
|
||||
(BitmapType *) &[!output PRO_NAME_PREFIX]_Bitmap_CloseNormal,//m_pBmp
|
||||
};
|
||||
|
||||
const UInt32 [!output PRO_NAME_PREFIX]_Bitmap_CloseSelected_bmp_data[]=
|
||||
{
|
||||
//Bmp Datas,位图数据(3187字节,原图:40x40,6400字节,压缩成49%):
|
||||
0x00000001, 0x00000C73, 0x00000000, 0x00000000,
|
||||
// data length : 3187
|
||||
//|00000000 |00000001 |00000002 |00000003 |00000004 |00000005 |00000006 |00000007 |00000008 |00000009 |00000010 |00000011 |00000012 |00000013 |00000014 |00000015
|
||||
/*00000000*/0x474E5089,0x0A1A0A0D,0x0D000000,0x52444849,0x28000000,0x28000000,0x00000608,0xB8FE8C00,0x0C00006D,0x4144493A,0x9D855854,0x5C706B97,0xFFC779E5,0xBD9EFBEF,0x6E8C9648,0x38596496,
|
||||
/*00000001*/0xEF85B1B6,0xAFA9AE31,0x0C625F04,0x0F949048,0x8E864D2D,0x27535299,0xC9DB42FD,0x2850E934,0x4B4E99B4,0x921D32D3,0x99729D02,0x9C14D3B6,0x35A71C8C,0x8368610E,0x18C4E0C1,0x95E2B659,
|
||||
/*00000002*/0xAD2B4915,0x5776962E,0xBCB9DBDE,0xCE1FA797,0x25AED5D9,0xE667911B,0xF67B3D9D,0xFFFA7E5C,0x1F79E79F,0x96202C09,0x83CAF0F0,0xA0FE2BAD,0x57658996,0x00CC42BD,0x5DF72166,0xD542AB1F,
|
||||
/*00000003*/0x7CB40FDB,0x20A751EE,0x7C5E4D29,0x0588F721,0xF6FD605C,0x1F4F75F2,0x1C9FC6FD,0xBCDF555E,0xFCE7BC6D,0x81E90495,0x2F570ACF,0xFFBF65AC,0xF37FDDF9,0xFE3FAFD5,0x0AA4B75B,0x0F8E2F6B,
|
||||
/*00000004*/0x93205FBF,0xA9CFACFE,0x47580E08,0x257E6E57,0xC5483FDD,0xDFF4F538,0xD664EF4F,0xC704CFA1,0xF677DB45,0x4EC6783D,0xE5C990CE,0xE966CBC8,0xEE1FFBC5,0x6DD6646D,0x059C36BF,0x62BA3E16,
|
||||
/*00000005*/0xBEA92BD3,0xE444442B,0xBBC8248E,0x8886453A,0xBFC9FBFE,0x5661EF4D,0x84E082E7,0xBBBBFB68,0x4D9D3FEE,0xF7BE524C,0xC3FD8D12,0xE67B2977,0x92A6152C,0x2FBEFCF4,0x0A7C34F7,0x0B16BCE4,
|
||||
/*00000006*/0xC57C7AC0,0xFDBF97E6,0xFAE1F756,0x4770158E,0x86DB2012,0x290164CE,0x4F79D1D1,0x748BD5B4,0xEFFF4FC6,0xFF4C3885,0x20DE1E8D,0xBB93FB44,0x63E1FDEE,0x83B8BDAF,0xE6614F4F,0xB930DBE4,
|
||||
/*00000007*/0x57CBEC3C,0x6C11A3C0,0x4B6752F8,0xEEAFCF63,0xF0D8F9F9,0xC93205DB,0x605A0105,0xDD6EC7E1,0xFD7FCFF0,0xD68F63E3,0x770D5BAF,0xB6C60478,0x5240A901,0x0066A542,0xAE9AC1C7,0x3766D183,
|
||||
/*00000008*/0xE67239D4,0xF3233D67,0x45C2DE40,0x1FB6B7EB,0x4BF0F378,0xA45DB4FF,0xFDBCC892,0x0171C82E,0x90630063,0xA81DEB79,0x7FAC196B,0x86A6E1E4,0x67BDE1BE,0x1D27E3C7,0x029B9998,0xB23AC00A,
|
||||
/*00000009*/0xCF4BE37C,0x47AFFF1E,0x06DDD71B,0x64047867,0x4129203B,0x1E79049E,0x3A741520,0x58DB630D,0xE881DF7D,0x40F43752,0x7BF7A3E2,0x59B130E3,0x3FF6ACE5,0xB1FF73BF,0x6E7F9E47,0x85266867,
|
||||
/*00000010*/0x069DFFFC,0x19482EB9,0xB6305290,0x1EB9FC8D,0x823E67D8,0xC741A9A8,0x6E681F97,0xE2FF181E,0x731357C7,0x72012C94,0xEB723AC0,0xE99F9786,0xA6E1FEFE,0x86701D8D,0x0DB64046,0xF3802A52,
|
||||
/*00000011*/0x9184A417,0x02992A0A,0xEE2B071C,0x62591BD9,0x7FC73A87,0x1C4F41F1,0xAC275FD4,0xBD6E6FB6,0x9E57D8FB,0x708EF6FB,0xFDFB032E,0x0BAE410F,0x25230528,0x81DC0C60,0x09A37821,0xF5E0C630,
|
||||
/*00000012*/0xB458845E,0x1D0EAB08,0x9F1A5E6C,0xA9F3F83E,0xACBB49C4,0x6B6045BA,0x0DF6B1E4,0xC6F53D2F,0x369B87EB,0x3C3781AC,0x1F1C720A,0xE5CACA4E,0x0A909FF9,0xC984993A,0xFEDCF8DB,0x9B36D13D,
|
||||
/*00000013*/0xF9713FDD,0x1BABEA4A,0x77EA7CEF,0x4F72799F,0x778590A4,0xD72017F6,0xDFED2903,0x264C34A7,0x2FD2FB0B,0x09815241,0xC7400601,0x11A2C1FA,0x777BBADC,0xF4F1D2D3,0x89C9F3BE,0x5264D89F,
|
||||
/*00000014*/0x445AC000,0xEB577578,0xF99E27CA,0xAD7DBFFE,0x90EDD379,0xEB907189,0x920528C2,0x0CB20CAA,0x279BF8B6,0x340B9E41,0x6C6BC034,0x18C5F4C2,0x515ADB6A,0x4B981D25,0x049E307D,0x05480569,
|
||||
/*00000015*/0x06401523,0xEE0C5F76,0xB2CC1C50,0x06347D66,0xBEDA0444,0x3B5B4E1D,0x1FA3F67E,0x76337EF7,0x53013F66,0xF2D350E2,0xFA391DAF,0x3DD64787,0x17955F74,0xB94395F7,0x1E5652AD,0xBE577F97,
|
||||
/*00000016*/0x034A942A,0xAEA83333,0x9C9E0C5B,0x020E0D06,0xA39E0C9E,0xAD012900,0x7093A721,0x06057E06,0x0B363006,0x001818C8,0x5302323E,0xD6E68353,0xFD33E6F6,0xED49237D,0x0A46B59D,0xE77D2BD9,
|
||||
/*00000017*/0xC6FD8C2E,0xC03D4CF4,0x559BD700,0x48CA502D,0x5F21CA59,0x65EFE2C9,0xA00BE6CA,0x4A1F09F1,0x8C33D2E9,0x30568054,0x383B84AE,0x700D280C,0x309DA73E,0x16A6B200,0x97235705,0xBDAD214C,
|
||||
/*00000018*/0xC55A0045,0xC6C42C94,0x2D2EFBFA,0xDB3BA6BB,0xE6AB6E77,0x7C85034A,0x2919DE45,0x96FA4F01,0x57A4A7CD,0xE3FC5E06,0xD683AECA,0x20C746F0,0xCD82AF27,0x2F044707,0xEB548552,0x0CE93832,
|
||||
/*00000019*/0xF7E3F1FE,0xD97AF78E,0xC2B20073,0xF48C7A00,0xD9FCE260,0xD4B34B0B,0xCD8EF4B5,0xD8056851,0x06F6FCF6,0x9B9FD7B0,0x30A954BB,0x7835CCF4,0x510023C3,0x3800B5A5,0x61088E08,0x641D516A,
|
||||
/*00000020*/0x2FE780A6,0x4EFE3D9F,0x0004FA61,0xA94F4017,0xAE61C4CD,0xD7385D8C,0xAEA592D3,0xA36B0D96,0xC770294C,0xBCF56DF1,0x012BD600,0xA403CF1B,0x4AEAABE7,0xAF2AF490,0x5D739E2B,0x187183B8,
|
||||
/*00000021*/0x1EA399C7,0xC7136007,0x1DA0B698,0x7B461785,0x9F9A7FBB,0x0D0011FE,0xF10003E0,0x871D468A,0xFBEC9FE9,0x0E6B42E4,0x6E6B4D9D,0xC0AD728B,0xB16E775D,0x79C4F594,0xB968A90B,0xE312F052,
|
||||
/*00000022*/0x373333D0,0x3CC60380,0x7BE06806,0x6FDDFDD3,0xC00670FB,0x15FD0069,0xF21CBA8D,0x85E2EC6A,0xD6759B76,0xE5115CAD,0x2EB840DA,0xE0CAF48C,0x4E6B53AE,0xD2807AAE,0xD434A990,0x52A954E4,
|
||||
/*00000023*/0xE0820B67,0x09718618,0x5EF8E270,0x1978E86A,0xB8457BDC,0x4A4B0179,0x67B2FC0E,0x35756BB9,0xE51D59AE,0x050AC064,0x1A9637BF,0x20D16CF5,0xC78A6738,0x7364C14A,0xFC26C6F0,0x8E1CB7BD,
|
||||
/*00000024*/0x30B09E08,0x0530614D,0xD435377C,0x753F2A7D,0x6EE57AE2,0x4C84580A,0x5DEE5E0D,0xF543AD21,0x0B56D76B,0x850A05CF,0x794E161B,0x1B05346F,0xA024F8DE,0x10516554,0xD70B2C81,0x4AE11AEA,
|
||||
/*00000025*/0x8C985EAD,0x3F2B789D,0xCE7E027D,0xA9F72855,0x04300080,0x1B1A9B13,0x7EBBDA9B,0xEAAA97D3,0x24C90316,0xF9B32A8C,0x8BF1C2BA,0x9D5E4242,0x9CCED902,0xA088C77E,0x8681ABAB,0x95C1F825,
|
||||
/*00000026*/0x33FE4FDE,0xF0AFFE33,0xE51CE05B,0x29B7318A,0xC22DC595,0x656FBD6A,0x3755EFC7,0x1CD90036,0x7BF9E78C,0x2DC8116B,0xDDFCF77E,0x54E82A42,0x603B640A,0x463BFB82,0xAE001059,0xB1C59835,
|
||||
/*00000027*/0xCAD979AB,0xA37456E5,0x2005BC05,0xCDC02F36,0xACB46C14,0xDF57A7F6,0xC3D0EC71,0xCA27B3BF,0x044B1809,0xC72BE739,0x4ACC0682,0xBB5CC14B,0x706C1406,0x0E73838B,0x631839C6,0x199B4560,
|
||||
/*00000028*/0xCC0A5303,0x2D34D468,0x8B666E89,0x9B5F8D36,0x374A3D3C,0x05E77A1E,0xDB5617AC,0x72D9AE5F,0x0F43DF6C,0x18B2A8ED,0xE4047C58,0xFA523079,0x87CAD02F,0x1AD01A53,0x6C986B5C,0x706DB016,
|
||||
/*00000029*/0x0339C021,0xF85C1CE3,0x95E72E7B,0x0BB72F7B,0x5DA83060,0x18D91B54,0x9D35DC5A,0x7430BA9D,0x8039C803,0xF6D596F5,0x6F4DAAD4,0xFEF7BDEC,0x00B0D19D,0x540F189F,0x002A6053,0x1AA4A633,
|
||||
/*00000030*/0xCF941AD7,0x2E038E01,0x6738E57C,0x7A81C5BE,0x28AF82FE,0xE100C018,0x104460B8,0x1EDE8AC2,0xE54CEBAD,0xA443BD52,0x015D58E7,0xED5968D8,0xF4DCAECF,0xDEEEBBC3,0x0D1A23BF,0x83A72441,
|
||||
/*00000031*/0xD6055849,0xC0A53018,0xD6991503,0xB800BE40,0x7C270FAE,0x1839CE38,0x803C60E3,0x82C8292B,0xA14D5F0F,0x5822083C,0x6B6BA2C4,0x2C85E69B,0xD109D601,0x4D8AECFA,0xB9DAEE6F,0xD4557B67,
|
||||
/*00000032*/0x05972842,0x98282E79,0xE0519846,0x0369834A,0x2882BE46,0x07A4C014,0x2E087161,0x45641566,0xC64059D0,0x1A73AE18,0x06458044,0xF0610182,0xA6DAFAE8,0xAA5CE9CE,0x65748867,0xACB26EA3,
|
||||
/*00000033*/0xE56AFF5B,0x77BB63E6,0x8919DAEE,0xB63B0858,0x8252B15F,0x8B525D29,0x064E0569,0x5F20495C,0x221A5700,0x1944C024,0xBDBEE71C,0x2C944025,0x96073046,0x4221B6D7,0x093B7E08,0xD6374783,
|
||||
/*00000034*/0x9920792E,0x060EF64B,0xE175B24A,0xB47CDFEA,0x8793D575,0x575770BE,0xC8421C28,0x1176FC73,0x18DC80CC,0xA3702230,0xF4A4E57D,0x2E03252D,0x9C579F84,0x5D5F1981,0x02120E70,0xE2990204,
|
||||
/*00000035*/0xC0DAD032,0x1A318218,0x528C135A,0x2B40DAD0,0x0604320D,0x638035C0,0x4EB46618,0x67B4657F,0x3EE8DE77,0xFEA6A3BE,0x97CBADDE,0x21C2B2EF,0xE4014E58,0x9E7ABE7A,0x1528C3E7,0xC7304A7C,
|
||||
/*00000036*/0x1C1B1C01,0xE0596104,0x02584382,0xAEAB0402,0x1DEDD60E,0x42B696B0,0x04210670,0x21595144,0x2D9EEA82,0x5071D2A2,0xC220044C,0xB4233081,0xEBF54285,0x0187D522,0x30E18484,0xCB1D10ED,
|
||||
/*00000037*/0x22AFD717,0x6B02C063,0xAFBA638B,0x1C73068C,0xA87D2930,0x0842C5E0,0xDBC06458,0x7C1FC0DA,0x5BADD110,0x003A3A61,0xBA9881C7,0x67ACD15A,0x43382F73,0x9F933E65,0x22009290,0xF6518C86,
|
||||
/*00000038*/0x4FC4E9CB,0x6213326D,0x8BF17A52,0x773399B9,0x6340E6B8,0xD212ED4D,0xBE7A4C06,0x7980C672,0x301DB012,0x32ADC1A3,0x343940B8,0x0F070337,0x883FD0A2,0xF6799EE7,0xF9332DDC,0xDC2FE6DA,
|
||||
/*00000039*/0x40EB8615,0xEDA552A4,0x0A22028E,0xF910C3AA,0xAA00737B,0x8311018C,0x627DDA4B,0x90FAF622,0x30063F74,0x63200029,0x2674EA74,0x66BD7275,0xAAAB9BFB,0x0869485B,0xF1C70125,0x07C18DF3,
|
||||
/*00000040*/0x7166DA2A,0x43400C58,0x3BB6E43D,0xC41E5DE1,0xD0BE2F13,0xA3D32FFD,0xF977BCAF,0x1776F0D2,0xD8EFEB1B,0xC2EB8512,0xE2FC65CA,0xC22C8728,0x1952B005,0xD0780318,0x62251FDE,0xE6E27EAF,
|
||||
/*00000041*/0x0A3005DF,0x336A5620,0x0FE9D239,0xDB53A933,0x20D3DD60,0x285D26AC,0xE7ED6840,0x611B5949,0x0C62C382,0xEF0B5B54,0x8350F5F6,0xFFE3F823,0x07FBAD78,0x0013E9D9,0xBFF48A58,0x7CB81F9F,
|
||||
/*00000042*/0x756D6EFA,0x8EAF5685,0x9C21290A,0xCFA02CC2,0x081117E6,0xCF182A52,0x7EED25C0,0x5AFFD13D,0x0027DC19,0x3A8D1572,0x267D2647,0x2D93F337,0x09BFB422,0x08013356,0x08628247,0x60CE2D00,
|
||||
/*00000043*/0x96705522,0x4C49832E,0x1C4F4FE0,0x532C7E3B,0x4F0D3231,0x891FE992,0x88DC5C0F,0xB9B46770,0xF4A5C225,0xA5BE311D,0x82220444,0x47682AE7,0x1DE521C2,0x7ABFF44D,0xCB80A9DE,0x62EA3456,
|
||||
/*00000044*/0x9E4E8D64,0x67FE67CE,0x81CD556B,0x0C803C25,0xE0A28287,0xBD82C230,0x4A9816A8,0x9EEF1BE3,0x33337EEA,0x80074C77,0x78B13201,0xF3E7B862,0x5C2BAABC,0x5AE5135D,0x6300C422,0x6780080C,
|
||||
/*00000045*/0x1779907B,0xE3EED1AE,0x0257FE89,0xDC3944B8,0x900080BC,0x51F33327,0xB6CEF321,0x362FDAEA,0x4444D130,0x30C34708,0x870C1404,0x67F0E4C8,0x7EE83EE7,0xCE6E12A3,0xA6443A3E,0xE899313F,
|
||||
/*00000046*/0xE9AE12DD,0xD0A234B4,0x6025960A,0x9CC85C17,0xF728DB0D,0xB5EC44F1,0x729EB832,0x02021BB8,0xF257C640,0xCD6896E4,0x5A2626BE,0x6D70D694,0xF87B6109,0xE385FF56,0x3BCDCA65,0x90631709,
|
||||
/*00000047*/0x9A912C4C,0x5912DDEC,0x647219DC,0x550D2954,0xE568E070,0x5EC4491D,0x5B1E78FD,0x00080417,0x1FD3A339,0xB6A73214,0x5DECD554,0x502D42C6,0x36317F1A,0x9F86FDD0,0x0FFEF373,0xD1A42F31,
|
||||
/*00000048*/0x74CCD1B1,0xFADA96CF,0xAA0CEB7B,0x8E154AD3,0xFD795D8E,0x5C00E0D3,0x20DEF237,0xAE358CC2,0x3C3D548D,0xB8E2F5A3,0x78012774,0x085C3E00,0x5AB4795C,0x43CBF5E1,0x3C064791,0x6AD49F3B,
|
||||
/*00000049*/0xCDC8C000,0x580C16E0,0xB4014B16,0xD6089800,0x801613AF,0xE3BBC1D5,0xBB37F200,0x3501FFF8,0x37399B81,0x005FDF78,0x49000000,0xAE444E45,0x00826042,
|
||||
};
|
||||
const BitmapType [!output PRO_NAME_PREFIX]_Bitmap_CloseSelected=
|
||||
{
|
||||
40,40, //imWidth,imHeight
|
||||
160, //imRowBytes
|
||||
0, //imAlign
|
||||
32 //imBits
|
||||
,BITMAP_FLAGS_COMPRESSED// imFlags
|
||||
,0// imReserve
|
||||
,0,NULL// imMemSize,imMemPtr
|
||||
,(UInt8 *)[!output PRO_NAME_PREFIX]_Bitmap_CloseSelected_bmp_data// imDataP
|
||||
,NULL// imColorTableP
|
||||
,0x0 //imTransparencyColor
|
||||
};
|
||||
const ResTBitmapStructType [!output PRO_NAME_PREFIX]_TBitmapStruct_CloseSelected=
|
||||
{
|
||||
(BitmapType *) &[!output PRO_NAME_PREFIX]_Bitmap_CloseSelected,//m_pBmp
|
||||
};
|
||||
|
||||
const ResourceLangRegisterEntry [!output PRO_NAME_PREFIX]_CHS_Resource[] =
|
||||
{
|
||||
{kProjectRscType,0,(void*)&[!output PRO_NAME_PREFIX]_project,sizeof([!output PRO_NAME_PREFIX]_project)}
|
||||
,{kTBitmapRscType,[!output PRO_NAME_PREFIX]_ID_BITMAP_CloseNormal,(void*)&[!output PRO_NAME_PREFIX]_TBitmapStruct_CloseNormal,sizeof([!output PRO_NAME_PREFIX]_TBitmapStruct_CloseNormal)}
|
||||
,{kTBitmapRscType,[!output PRO_NAME_PREFIX]_ID_BITMAP_CloseSelected,(void*)&[!output PRO_NAME_PREFIX]_TBitmapStruct_CloseSelected,sizeof([!output PRO_NAME_PREFIX]_TBitmapStruct_CloseSelected)}
|
||||
};
|
||||
|
||||
const ResourceLangRegisterEntry2 [!output PRO_NAME_PREFIX]_CHS_ResourceEntry =
|
||||
{
|
||||
tgresource_tag,
|
||||
11,//res version
|
||||
0,//subVersionValue
|
||||
0,//reserved1
|
||||
0,//reserved2
|
||||
[!output PRO_NAME_PREFIX]_CHS_Resource
|
||||
};
|
||||
|
||||
|
||||
/************************************************************
|
||||
* Language:ENU
|
||||
*************************************************************/
|
||||
|
||||
|
||||
const ResProjectType [!output PRO_NAME_PREFIX]_ENU_project=
|
||||
{
|
||||
320, //screenWidth
|
||||
480, //screenHeight
|
||||
165, //screenDPI
|
||||
};
|
||||
const ResourceLangRegisterEntry [!output PRO_NAME_PREFIX]_ENU_Resource[] =
|
||||
{
|
||||
{kProjectRscType,0,(void*)&[!output PRO_NAME_PREFIX]_ENU_project,sizeof([!output PRO_NAME_PREFIX]_ENU_project)}
|
||||
,{kTBitmapRscType,[!output PRO_NAME_PREFIX]_ID_BITMAP_CloseNormal,(void*)&[!output PRO_NAME_PREFIX]_TBitmapStruct_CloseNormal,sizeof([!output PRO_NAME_PREFIX]_TBitmapStruct_CloseNormal)}
|
||||
,{kTBitmapRscType,[!output PRO_NAME_PREFIX]_ID_BITMAP_CloseSelected,(void*)&[!output PRO_NAME_PREFIX]_TBitmapStruct_CloseSelected,sizeof([!output PRO_NAME_PREFIX]_TBitmapStruct_CloseSelected)}
|
||||
};
|
||||
|
||||
const ResourceLangRegisterEntry2 [!output PRO_NAME_PREFIX]_ENU_ResourceEntry =
|
||||
{
|
||||
tgresource_tag,
|
||||
11,//res version
|
||||
0,//subVersionValue
|
||||
0,//reserved1
|
||||
0,//reserved2
|
||||
[!output PRO_NAME_PREFIX]_ENU_Resource
|
||||
};
|
||||
|
||||
//资源定义
|
||||
#define TG_RESOURCE_DEFINE \
|
||||
{SYS_LANGUAGE_CHS,sizeof( [!output PRO_NAME_PREFIX]_CHS_Resource )/ sizeof(ResourceLangRegisterEntry), &[!output PRO_NAME_PREFIX]_CHS_ResourceEntry}, \
|
||||
{SYS_LANGUAGE_ENU,sizeof( [!output PRO_NAME_PREFIX]_ENU_Resource )/ sizeof(ResourceLangRegisterEntry), &[!output PRO_NAME_PREFIX]_ENU_ResourceEntry},
|
|
@ -1,9 +0,0 @@
|
|||
// Original file name: [!output PROJECT_NAME_LOWER]_Res.h
|
||||
// Generated by Cocos2d-wophone Wizard Date: [!output CC_CURRENT_DATE]
|
||||
|
||||
#ifndef __[!output PROJECT_NAME_UPPER]_RES_DEF_H__
|
||||
#define __[!output PROJECT_NAME_UPPER]_RES_DEF_H__
|
||||
|
||||
#define [!output PRO_NAME_PREFIX]_ID_BITMAP_CloseNormal 1073742826
|
||||
#define [!output PRO_NAME_PREFIX]_ID_BITMAP_CloseSelected 1073742827
|
||||
#endif
|
|
@ -1,18 +0,0 @@
|
|||
// Application application res_h file.
|
||||
|
||||
// Original file name: [!output PROJECT_NAME_LOWER]_Res.h
|
||||
// Generated by Cocos2d-wophone Wizard Date: [!output CC_CURRENT_DATE]
|
||||
|
||||
|
||||
#ifndef __[!output PROJECT_NAME_UPPER]_RES_H_H__
|
||||
#define __[!output PROJECT_NAME_UPPER]_RES_H_H__
|
||||
|
||||
#include "ResTypes.h"
|
||||
|
||||
#include "[!output PROJECT_NAME]_res_def.h"
|
||||
|
||||
extern const BitmapType [!output PRO_NAME_PREFIX]_Bitmap_CloseNormal;
|
||||
extern const BitmapType [!output PRO_NAME_PREFIX]_Bitmap_CloseSelected;
|
||||
|
||||
|
||||
#endif
|
|
@ -1,87 +0,0 @@
|
|||
#include "TG3.h"
|
||||
#include "[!output PROJECT_NAME]UnicodeScript_str.h"
|
||||
#include "TCOM.h"
|
||||
#include "TG3AppDllEntry.h"
|
||||
|
||||
// 提供IID的具体定义,在整个项目中只能包含一次
|
||||
[! if CC_USE_COCOS_DENSHION_SIMPLE_AUDIO_ENGINE]
|
||||
[! else]
|
||||
#include "TCOM_Generic_DataType_IIDs.h"
|
||||
#include "TCOM_Generic_Method_IIDs.h"
|
||||
[! endif]
|
||||
#include "TCOM_IIDs.h"
|
||||
|
||||
// 定义类工厂例子代码:
|
||||
// class Texample_MethodClassFactory; //仅仅为了代码编辑辅助工具正确显示
|
||||
// TCOM_DECLARE_CLASS_FACTORY(Texample_MethodClassFactory);
|
||||
// TCOM_IMPLEMENT_CLASS_FACTORY(Texample_MethodClassFactory,TexampleDataType);
|
||||
// 应用根据给出的CLSID和ClassFactory接口IID返回ClassFactory的接口
|
||||
// 返回值:参考TCOM_S_系列宏定义
|
||||
HRESULT TCOM_Srv_GetClassObject(TREFCLSID rclsid, TREFIID riid, LPVOID * ppv)
|
||||
{
|
||||
HRESULT result = TCOM_S_E_ERROR;
|
||||
// 构造出TCOM对象例子
|
||||
//if (rclsid == TCLSID_example_Method)
|
||||
//{
|
||||
// Texample_MethodClassFactory *pFactory = new Texample_MethodClassFactory();
|
||||
// if(pFactory)
|
||||
// {
|
||||
// result = pFactory->QueryInterface(riid, ppv);
|
||||
// if(TCOM_S_FAIL(result))
|
||||
// {
|
||||
// delete pFactory;
|
||||
// TCOM_DecClsidInstanceRefCount();
|
||||
// }
|
||||
// }
|
||||
//}
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
// 应用提供的把TCOM信息加入到注册表
|
||||
// 返回值:参考TCOM_S_系列宏定义
|
||||
HRESULT TCOM_Srv_RegisterServer(void)
|
||||
{
|
||||
TCOM_ApplicationRegister * pAppRegister = NULL;
|
||||
pAppRegister = new TCOM_ApplicationRegister( AppName_[!output PROJECT_NAME] );
|
||||
if(pAppRegister == NULL)
|
||||
{
|
||||
return TCOM_S_E_ERROR;
|
||||
}
|
||||
|
||||
// 注册例子:
|
||||
// pAppRegister->RegisterCLSID(TCLSID_example_Method, TCOM_CLSCTX_INPROC_SERVER);
|
||||
// pAppRegister->RegisterDataType( TTID_TCOM_PlugIn_DataType);
|
||||
// pAppRegister->RegisterMethod( TTID_TCOM_PlugIn_DataType, TIID_SYS_Method_Open,
|
||||
// TCLSID_example_Method, TCOM_METHOD_MASK_NORMAL, AppName_example );
|
||||
if(pAppRegister)
|
||||
{
|
||||
delete pAppRegister;
|
||||
pAppRegister = NULL;
|
||||
}
|
||||
return TCOM_S_OK;
|
||||
}
|
||||
|
||||
// 应用提供的把TCOM信息从注册表中删除
|
||||
// 返回值:参考TCOM_S_系列宏定义
|
||||
HRESULT TCOM_Srv_UnregisterServer(void)
|
||||
{
|
||||
TCOM_ApplicationRegister * pAppRegister = NULL;
|
||||
pAppRegister = new TCOM_ApplicationRegister( AppName_[!output PROJECT_NAME] );
|
||||
if(pAppRegister == NULL)
|
||||
{
|
||||
return TCOM_S_E_ERROR;
|
||||
}
|
||||
|
||||
// 注销例子
|
||||
// pAppRegister->UnregisterMethod(TTID_TCOM_PlugIn_DataType, TIID_SYS_Method_Open, TCLSID_example_Method);
|
||||
// pAppRegister->UnregisterDataType( TTID_TCOM_PlugIn_DataType );
|
||||
// pAppRegister->UnregisterCLSID(TCLSID_example_Method);
|
||||
if(pAppRegister)
|
||||
{
|
||||
delete pAppRegister;
|
||||
pAppRegister = NULL;
|
||||
}
|
||||
|
||||
return TCOM_S_OK;
|
||||
}
|
|
@ -1,231 +0,0 @@
|
|||
|
||||
#include "ssGlobal.h"
|
||||
#include "ssTsd.h"
|
||||
#include "TG3_Type.h"
|
||||
#include <stdio.h>
|
||||
#include "TCOM.h"
|
||||
#include "ssAppMgr.h"
|
||||
#include "TG3AppDllEntry.h"
|
||||
|
||||
#ifdef __TCOM_SUPPORT__
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
//实现TCOM所需要的DLL函数
|
||||
|
||||
//DLL提供的获取指定CLSID的指定接口
|
||||
SS_EXPORT HRESULT TDllGetClassObject(TREFCLSID rclsid, TREFIID riid, LPVOID * ppv);
|
||||
|
||||
//DLL提供的查询DLL能否被Unload
|
||||
SS_EXPORT HRESULT TDllCanUnloadNow(void);
|
||||
|
||||
//DLL提供的把DLL的TCOM信息加入到注册表
|
||||
SS_EXPORT HRESULT TDllRegisterServer(void);
|
||||
|
||||
//DLL提供的把DLL的TCOM信息从注册表中删除
|
||||
SS_EXPORT HRESULT TDllUnregisterServer(void);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifdef __TCOM_OUTPUT_DEBUG_INFO__
|
||||
#include <stdio.h>
|
||||
#endif
|
||||
|
||||
//TCOM实现中需要用到的函数和数据
|
||||
|
||||
//实例对象被引用的次数
|
||||
static Int32 __TCOM_ClsidInstanceRefCount;
|
||||
|
||||
//ClassFactory被Locked的次数
|
||||
static Int32 __TCOM_CalssFactoryLockedCount;
|
||||
|
||||
//做必要的初始化
|
||||
static Int32 __TCOM_Init()
|
||||
{
|
||||
__TCOM_ClsidInstanceRefCount = 0;
|
||||
__TCOM_CalssFactoryLockedCount = 0;
|
||||
return 0;
|
||||
}
|
||||
|
||||
//做必要的清除工作
|
||||
static Int32 __TCOM_DeInit()
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
//DLL全局使用:增加对象实例被引用次数
|
||||
Int32 TCOM_AddClsidInstanceRefCount()
|
||||
{
|
||||
__TCOM_ClsidInstanceRefCount++;
|
||||
#ifdef __TCOM_OUTPUT_DEBUG_INFO__
|
||||
SS_printf("[TCOM_SYSTEM] TCOM_AddClsidInstanceRefCount: address: %p, value: %d.\n",
|
||||
&__TCOM_ClsidInstanceRefCount, __TCOM_ClsidInstanceRefCount);
|
||||
#endif
|
||||
if(__TCOM_ClsidInstanceRefCount <= 0)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
return __TCOM_ClsidInstanceRefCount;
|
||||
}
|
||||
|
||||
//DLL全局使用:减少对象实例被引用次数
|
||||
Int32 TCOM_DecClsidInstanceRefCount()
|
||||
{
|
||||
__TCOM_ClsidInstanceRefCount--;
|
||||
#ifdef __TCOM_OUTPUT_DEBUG_INFO__
|
||||
SS_printf("[TCOM_SYSTEM] TCOM_DecClsidInstanceRefCount: address: %p, value: %d.\n",
|
||||
&__TCOM_ClsidInstanceRefCount, __TCOM_ClsidInstanceRefCount);
|
||||
#endif
|
||||
if(__TCOM_ClsidInstanceRefCount <= 0)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
return __TCOM_ClsidInstanceRefCount;
|
||||
}
|
||||
|
||||
//DLL全局使用:增加ClassFactory被Locked的次数
|
||||
Int32 TCOM_AddCalssFactoryLockedCount()
|
||||
{
|
||||
__TCOM_CalssFactoryLockedCount++;
|
||||
#ifdef __TCOM_OUTPUT_DEBUG_INFO__
|
||||
SS_printf("[TCOM_SYSTEM] TCOM_AddCalssFactoryLockedCount: address: %p, value: %d.\n",
|
||||
&__TCOM_CalssFactoryLockedCount, __TCOM_CalssFactoryLockedCount);
|
||||
#endif
|
||||
if(__TCOM_CalssFactoryLockedCount <= 0)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
return __TCOM_CalssFactoryLockedCount;
|
||||
}
|
||||
|
||||
//DLL全局使用:减少ClassFactory被Locked的次数
|
||||
Int32 TCOM_DecCalssFactoryLockedCount()
|
||||
{
|
||||
__TCOM_CalssFactoryLockedCount--;
|
||||
#ifdef __TCOM_OUTPUT_DEBUG_INFO__
|
||||
SS_printf("[TCOM_SYSTEM] TCOM_DecCalssFactoryLockedCount: address: %p, value: %d.\n",
|
||||
&__TCOM_CalssFactoryLockedCount, __TCOM_CalssFactoryLockedCount);
|
||||
#endif
|
||||
if(__TCOM_CalssFactoryLockedCount <= 0)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
return __TCOM_CalssFactoryLockedCount;
|
||||
}
|
||||
|
||||
//实现TCOM所需要的DLL函数
|
||||
|
||||
//DLL提供的获取指定CLSID的指定接口
|
||||
SS_EXPORT HRESULT TDllGetClassObject(TREFCLSID rclsid, TREFIID riid, LPVOID * ppv)
|
||||
{
|
||||
return TCOM_Srv_GetClassObject(rclsid, riid, ppv);
|
||||
}
|
||||
|
||||
//DLL提供的查询DLL能否被Unload
|
||||
SS_EXPORT HRESULT TDllCanUnloadNow(void)
|
||||
{
|
||||
#ifdef __TCOM_OUTPUT_DEBUG_INFO__
|
||||
SS_printf("[TCOM_SYSTEM] TDllCanUnloadNow: address1: %p, address2: %p, value1: %d, value2: %d.\n",
|
||||
&__TCOM_ClsidInstanceRefCount, &__TCOM_CalssFactoryLockedCount, __TCOM_ClsidInstanceRefCount,
|
||||
__TCOM_CalssFactoryLockedCount);
|
||||
#endif
|
||||
if((__TCOM_ClsidInstanceRefCount <= 0) && (__TCOM_CalssFactoryLockedCount <= 0))
|
||||
return TCOM_S_TRUE;
|
||||
return TCOM_S_FALSE;
|
||||
}
|
||||
|
||||
//DLL提供的把DLL的TCOM信息加入到注册表
|
||||
SS_EXPORT HRESULT TDllRegisterServer(void)
|
||||
{
|
||||
return TCOM_Srv_RegisterServer();
|
||||
}
|
||||
|
||||
//DLL提供的把DLL的TCOM信息从注册表中删除
|
||||
SS_EXPORT HRESULT TDllUnregisterServer(void)
|
||||
{
|
||||
return TCOM_Srv_UnregisterServer();
|
||||
}
|
||||
|
||||
#endif //__TCOM_SUPPORT__
|
||||
|
||||
#ifdef _WIN32
|
||||
|
||||
#ifndef SS_MAKEDLL
|
||||
#error Error!!! SS_MAKEDLL Must defined!
|
||||
#endif
|
||||
|
||||
BOOL APIENTRY DllMain(HANDLE hModule, DWORD ul_reason_for_call, LPVOID lpReserved)
|
||||
{
|
||||
switch (ul_reason_for_call)
|
||||
{
|
||||
case DLL_PROCESS_ATTACH:
|
||||
//进程加载动态库进行的操作
|
||||
#ifdef __TCOM_SUPPORT__
|
||||
__TCOM_Init();
|
||||
#endif
|
||||
break;
|
||||
case DLL_THREAD_ATTACH:
|
||||
//线程加载动态库进行的操作
|
||||
break;
|
||||
case DLL_THREAD_DETACH:
|
||||
//线程卸载动态库进行的操作
|
||||
break;
|
||||
case DLL_PROCESS_DETACH:
|
||||
//进程卸载动态库进行的操作
|
||||
#ifdef __TCOM_SUPPORT__
|
||||
__TCOM_DeInit();
|
||||
#endif
|
||||
break;
|
||||
}
|
||||
return TRUE;
|
||||
}
|
||||
#else //linux
|
||||
|
||||
#ifndef SS_SHARED
|
||||
#error Error!!! SS_SHARED Must defined!
|
||||
#endif
|
||||
|
||||
void __attribute((constructor)) TG3_Dll_Attach()
|
||||
{
|
||||
//进程加载动态库进行的操作
|
||||
#ifdef __TCOM_SUPPORT__
|
||||
__TCOM_Init();
|
||||
#endif
|
||||
}
|
||||
|
||||
void __attribute((destructor)) TG3_Dll_Detach()
|
||||
{
|
||||
//进程卸载动态库进行的操作
|
||||
#ifdef __TCOM_SUPPORT__
|
||||
__TCOM_DeInit();
|
||||
#endif
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
//如果不是作为TG3的动态库应用,请在VC项目中和TMK3文件中定义 __TG3_PURE_DLL__ 宏
|
||||
#ifndef __TG3_PURE_DLL__
|
||||
|
||||
//动态库应用使用的统一导出名字的入口函数
|
||||
SS_EXPORT Int32 TDllTG3AppMain(const TUChar * pAppID, UInt32 nCmd, void * pCmdParam)
|
||||
{
|
||||
Int32 retValue;
|
||||
|
||||
//初始化TCOM
|
||||
TCoInitialize(NULL);
|
||||
|
||||
retValue = TG3AppMain(pAppID, nCmd, pCmdParam);
|
||||
|
||||
//释放TCOM
|
||||
TCoUninitialize();
|
||||
|
||||
return retValue;
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
|
|
@ -1,53 +0,0 @@
|
|||
|
||||
#ifndef __TG3_APP_DLL_ENTRY_H__
|
||||
#define __TG3_APP_DLL_ENTRY_H__
|
||||
|
||||
#ifndef __cplusplus
|
||||
#error This file need C++ support
|
||||
#endif
|
||||
|
||||
#if TG3_APP_ENTRY_MINIMUM_VERSION > 200
|
||||
#error Please replace TG3AppDllEntry.h and TG3AppDllEntry.cpp to newest version!
|
||||
#endif
|
||||
|
||||
#ifdef __TCOM_SUPPORT__
|
||||
|
||||
#include "TCOM.h"
|
||||
|
||||
//提供给DLL实现者调用的函数,用于在全局记录实例和ClassFactory被引用的次数,
|
||||
//这两个计数影响DLL是否可能被从内存中卸载,请大家在实例中内部实现计数的同时更新全局计数,
|
||||
//否则DLL很有可能会在实例还存在的时候被系统自动强制卸载
|
||||
|
||||
//DLL全局使用:增加对象实例被引用次数
|
||||
Int32 TCOM_AddClsidInstanceRefCount();
|
||||
|
||||
//DLL全局使用:减少对象实例被引用次数
|
||||
Int32 TCOM_DecClsidInstanceRefCount();
|
||||
|
||||
//DLL全局使用:增加ClassFactory被Locked的次数
|
||||
Int32 TCOM_AddCalssFactoryLockedCount();
|
||||
|
||||
//DLL全局使用:减少ClassFactory被Locked的次数
|
||||
Int32 TCOM_DecCalssFactoryLockedCount();
|
||||
|
||||
|
||||
//应用DLL在支持TCOM的时候提供给导出函数使用的函数
|
||||
|
||||
//应用根据给出的CLSID和ClassFactory接口IID返回ClassFactory的接口
|
||||
//返回值:参考TCOM_S_系列宏定义
|
||||
HRESULT TCOM_Srv_GetClassObject(TREFCLSID rclsid, TREFIID riid, LPVOID * ppv);
|
||||
|
||||
//应用提供的把TCOM信息加入到注册表
|
||||
//返回值:参考TCOM_S_系列宏定义
|
||||
HRESULT TCOM_Srv_RegisterServer(void);
|
||||
|
||||
//应用提供的把TCOM信息从注册表中删除
|
||||
//返回值:参考TCOM_S_系列宏定义
|
||||
HRESULT TCOM_Srv_UnregisterServer(void);
|
||||
|
||||
#endif //__TCOM_SUPPORT__
|
||||
|
||||
#endif //__TG3_APP_DLL_ENTRY_H__
|
||||
|
||||
|
||||
|
|
@ -1,9 +0,0 @@
|
|||
#include "AppDelegate.h"
|
||||
|
||||
Int32 TG3AppMain(const TUChar * pAppID, UInt32 nCmd, void * pCmdParam)
|
||||
{
|
||||
AppDelegate app;
|
||||
|
||||
cocos2d::CCApplication::sharedApplication().Run();
|
||||
return 1;
|
||||
}
|
|
@ -1,5 +0,0 @@
|
|||
// Unicode string resource scrip file,DOT NOT include it.
|
||||
|
||||
#define TZD_CONV(x, y)
|
||||
TZD_CONV(AppName_[!output PROJECT_NAME], "[!output PROJECT_NAME]")
|
||||
|
|
@ -1,19 +0,0 @@
|
|||
#ifndef __[!output PROJECT_NAME]UNICODESCRIPT_STR_H__
|
||||
#define __[!output PROJECT_NAME]UNICODESCRIPT_STR_H__
|
||||
|
||||
|
||||
#define AppName_[!output PROJECT_NAME]__N \
|
||||
"c\x00o\x00\x63\x00o\x00s\x00T\x00\x65\x00m\x00p\x00l\x00\x61\x00t\x00\x65\x00"
|
||||
#define AppName_[!output PROJECT_NAME]__C \
|
||||
AppName_[!output PROJECT_NAME]__N"\x00\x00"
|
||||
#define AppName_[!output PROJECT_NAME] \
|
||||
((const unsigned short *)(AppName_[!output PROJECT_NAME]__C))
|
||||
#define AppName_[!output PROJECT_NAME]__N16 \
|
||||
0x0063,0x006f,0x0063,0x006f,0x0073,0x0054,0x0065,0x006d,0x0070,0x006c,0x0061,0x0074,0x0065
|
||||
#define AppName_[!output PROJECT_NAME]_16 \
|
||||
{AppName_[!output PROJECT_NAME]__N16,0x0000}
|
||||
// Ôʼ´®ÐÅÏ¢£º
|
||||
// [!output PROJECT_NAME]
|
||||
|
||||
|
||||
#endif //__[!output PROJECT_NAME]UNICODESCRIPT_STR_H__
|
|
@ -1,12 +0,0 @@
|
|||
<?xml version="1.0" encoding="Windows-1252"?>
|
||||
<VisualStudioProject ProjectType="Visual C++" Version="9.00">
|
||||
<Platforms>
|
||||
<Platform
|
||||
Name="Win32"/>
|
||||
</Platforms>
|
||||
<Configurations>
|
||||
<Configuration Name="Debug|Win32"></Configuration>
|
||||
<Configuration Name="Release|Win32"></Configuration>
|
||||
</Configurations>
|
||||
</VisualStudioProject>
|
||||
|
|
@ -3,9 +3,10 @@ Microsoft Visual Studio Solution File, Format Version 10.00
|
|||
# Visual Studio 2008
|
||||
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "CCAppWiz.win32", "CCAppWiz.win32\CCAppWiz.win32.vcproj", "{104F4414-0DA5-4982-A413-766DD1698469}"
|
||||
EndProject
|
||||
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "CCAppWiz.wophone", "CCAppWiz.wophone\CCAppWiz.wophone.vcproj", "{64CF0B7A-FC68-41D7-B3DC-2908D74BDAE9}"
|
||||
EndProject
|
||||
Global
|
||||
GlobalSection(DPCodeReviewSolutionGUID) = preSolution
|
||||
DPCodeReviewSolutionGUID = {00000000-0000-0000-0000-000000000000}
|
||||
EndGlobalSection
|
||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||
Debug|Win32 = Debug|Win32
|
||||
Release|Win32 = Release|Win32
|
||||
|
@ -15,10 +16,6 @@ Global
|
|||
{104F4414-0DA5-4982-A413-766DD1698469}.Debug|Win32.Build.0 = Debug|Win32
|
||||
{104F4414-0DA5-4982-A413-766DD1698469}.Release|Win32.ActiveCfg = Release|Win32
|
||||
{104F4414-0DA5-4982-A413-766DD1698469}.Release|Win32.Build.0 = Release|Win32
|
||||
{64CF0B7A-FC68-41D7-B3DC-2908D74BDAE9}.Debug|Win32.ActiveCfg = Debug|Win32
|
||||
{64CF0B7A-FC68-41D7-B3DC-2908D74BDAE9}.Debug|Win32.Build.0 = Debug|Win32
|
||||
{64CF0B7A-FC68-41D7-B3DC-2908D74BDAE9}.Release|Win32.ActiveCfg = Release|Win32
|
||||
{64CF0B7A-FC68-41D7-B3DC-2908D74BDAE9}.Release|Win32.Build.0 = Release|Win32
|
||||
EndGlobalSection
|
||||
GlobalSection(SolutionProperties) = preSolution
|
||||
HideSolutionNode = FALSE
|
||||
|
|
|
@ -99,11 +99,10 @@ function main() {
|
|||
}
|
||||
|
||||
// Wizard Info
|
||||
var nNumWizards = 2;
|
||||
var nNumWizards = 1;
|
||||
|
||||
var astrWizardName = new Array();
|
||||
astrWizardName[0] = "CCAppWiz.win32";
|
||||
astrWizardName[1] = "CCAppWiz.wophone";
|
||||
|
||||
var nCntr;
|
||||
for (nCntr = 0; nCntr < nNumWizards; nCntr++) {
|
||||
|
@ -197,7 +196,7 @@ function main() {
|
|||
return;
|
||||
}
|
||||
|
||||
// Read and write additional CCAppWiz.vsdir and CCAppWiz.uphone.vsdir, add path to the wizard location
|
||||
// Read and write additional CCAppWiz.vsdir, add path to the wizard location
|
||||
try {
|
||||
var strDest = FileSys.BuildPath(strDestCCFolder, "Cocos2d-x.vsdir");
|
||||
|
||||
|
|
|
@ -99,11 +99,10 @@ function main() {
|
|||
}
|
||||
|
||||
// Wizard Info
|
||||
var nNumWizards = 2;
|
||||
var nNumWizards = 1;
|
||||
|
||||
var astrWizardName = new Array();
|
||||
astrWizardName[0] = "CCAppWiz.win32";
|
||||
astrWizardName[1] = "CCAppWiz.wophone";
|
||||
|
||||
var nCntr;
|
||||
for (nCntr = 0; nCntr < nNumWizards; nCntr++) {
|
||||
|
@ -197,7 +196,7 @@ function main() {
|
|||
return;
|
||||
}
|
||||
|
||||
// Read and write additional CCAppWiz.vsdir and CCAppWiz.uphone.vsdir, add path to the wizard location
|
||||
// Read and write additional CCAppWiz.vsdir, add path to the wizard location
|
||||
try {
|
||||
var strDest = FileSys.BuildPath(strDestCCFolder, "Cocos2d-x.vsdir");
|
||||
|
||||
|
|
|
@ -99,11 +99,10 @@ function main() {
|
|||
}
|
||||
|
||||
// Wizard Info
|
||||
var nNumWizards = 2;
|
||||
var nNumWizards = 1;
|
||||
|
||||
var astrWizardName = new Array();
|
||||
astrWizardName[0] = "CCAppWiz.win32";
|
||||
astrWizardName[1] = "CCAppWiz.wophone";
|
||||
|
||||
var nCntr;
|
||||
for (nCntr = 0; nCntr < nNumWizards; nCntr++) {
|
||||
|
@ -194,7 +193,7 @@ function main() {
|
|||
return;
|
||||
}
|
||||
|
||||
// Read and write additional CCAppWiz.vsdir and CCAppWiz.uphone.vsdir, add path to the wizard location
|
||||
// Read and write additional CCAppWiz.vsdir, add path to the wizard location
|
||||
try {
|
||||
var strDest = FileSys.BuildPath(strDestCCFolder, "Cocos2d-x.vsdir");
|
||||
|
||||
|
|
|
@ -99,11 +99,10 @@ function main() {
|
|||
}
|
||||
|
||||
// Wizard Info
|
||||
var nNumWizards = 2;
|
||||
var nNumWizards = 1;
|
||||
|
||||
var astrWizardName = new Array();
|
||||
astrWizardName[0] = "CCAppWiz.win32";
|
||||
astrWizardName[1] = "CCAppWiz.wophone";
|
||||
|
||||
var nCntr;
|
||||
for (nCntr = 0; nCntr < nNumWizards; nCntr++) {
|
||||
|
@ -194,7 +193,7 @@ function main() {
|
|||
return;
|
||||
}
|
||||
|
||||
// Read and write additional CCAppWiz.vsdir and CCAppWiz.uphone.vsdir, add path to the wizard location
|
||||
// Read and write additional CCAppWiz.vsdir, add path to the wizard location
|
||||
try {
|
||||
var strDest = FileSys.BuildPath(strDestCCFolder, "Cocos2d-x.vsdir");
|
||||
|
||||
|
|
Loading…
Reference in New Issue