[Win32] Deleting vs template, please use 'tools/project-creator' to create multi-platform project instead.

This commit is contained in:
James Chen 2013-06-10 12:26:54 +08:00
parent d51c03da7e
commit 6986acf8a4
34 changed files with 0 additions and 3970 deletions

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

View File

@ -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

View File

@ -1,221 +0,0 @@
<?xml version="1.0" encoding="gb2312"?>
<VisualStudioProject
ProjectType="Visual C++"
Version="9.00"
Name="CCAppWiz.win32"
ProjectGUID="{104F4414-0DA5-4982-A413-766DD1698469}"
RootNamespace="CCXAppWiz.win32"
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"
>
<Filter
Name="win32"
>
<File
RelativePath=".\Templates\1033\win32\main.cpp"
>
</File>
<File
RelativePath=".\Templates\1033\win32\main.h"
>
</File>
<File
RelativePath=".\Templates\1033\win32\resource.h"
>
</File>
<File
RelativePath=".\Templates\1033\win32\root.rc"
>
</File>
<Filter
Name="res"
>
<File
RelativePath=".\Templates\1033\win32\res\root.ico"
>
</File>
</Filter>
</Filter>
<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
Name="cocos2dx_support"
>
<File
RelativePath="..\..\..\lua\cocos2dx_support\LuaCocos2d.cpp"
>
</File>
<File
RelativePath="..\..\..\lua\cocos2dx_support\LuaCocos2d.h"
>
</File>
<File
RelativePath="..\..\..\lua\cocos2dx_support\LuaEngine.cpp"
>
</File>
<File
RelativePath="..\..\..\lua\cocos2dx_support\LuaEngine.h"
>
</File>
<File
RelativePath="..\..\..\lua\cocos2dx_support\LuaEngineImpl.cpp"
>
</File>
<File
RelativePath="..\..\..\lua\cocos2dx_support\LuaEngineImpl.h"
>
</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.win32.ico"
>
</File>
<File
RelativePath=".\CCAppWiz.win32.vsdir"
>
</File>
<File
RelativePath=".\CCAppWiz.win32.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>

View File

@ -1 +0,0 @@
CCAppWiz.win32.vsz| |Cocos2d-win32 Application |1|An application that uses Cocos2d-x library for win32 platform.| |6777|4096|#1154

View File

@ -1,7 +0,0 @@
VSWIZARD 7.0
Wizard=VsWizard.VsWizardEngine
Param="WIZARD_VERSION = "
Param="WIZARD_NAME = Cocos2d-win32"
Param="ABSOLUTE_PATH = ."
Param="FALLBACK_LCID = 1033"

View File

@ -1,404 +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;odl;idl;hpj;bat;asm"></SYMBOL>
<SYMBOL NAME="INCLUDE_FILTER" TYPE="text" VALUE="h;hpp;hxx;hm;inl;inc"></SYMBOL>
<SYMBOL NAME="RESOURCE_FILTER" TYPE="text" VALUE="rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;jpg;jpeg;jpe;png;manifest"></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_USE_LUA' TYPE="checkbox" VALUE="false"></SYMBOL>
<SYMBOL NAME='CC_HAS_MAIN_FORM' TYPE="checkbox" VALUE="true"></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">
&nbsp;
</TD>
<TD VALIGN="top" HEIGHT="12">
&nbsp;
</TD>
<TD VALIGN="top" HEIGHT="12" WIDTH="12">
&nbsp;
</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">
&nbsp;
</TD>
</TR>
<TR>
<TD VALIGN="top" HEIGHT="65" WIDTH="12">
&nbsp;
</TD>
<TD VALIGN="top" HEIGHT="65">
<H4 CLASS="HEAD" ID="HEAD">Welcome to the Cocos2d-win32 Application Wizard</H4>
<P CLASS="SUBHEAD" ID="SUBHEAD">This wizard generates a cocos2d-win32 application project
with the properties you specify.</P>
</TD>
<TD VALIGN="top" HEIGHT="65" WIDTH="12">
&nbsp;
</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">
&nbsp;
</TD>
</TR>
<TR>
<TD VALIGN="top" HEIGHT="100%" WIDTH="12">
&nbsp;
</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 WIDTH="12"><COL WIDTH="398"><COL WIDTH="12">
<TR>
<TD VALIGN="TOP" HEIGHT="12" COLSPAN="3">
&nbsp;
</TD>
</TR>
<TR>
<TD VALIGN="TOP" WIDTH="12">
&nbsp;
</TD>
<TD VALIGN="TOP">
<SPAN CLASS="ItemTextTop" ID="PROJECT_SETTINGS">These are the current project settings:</SPAN>
<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>
<LI CLASS="LIST">
<SPAN CLASS="SideBtnHidden" ID="CC_LUA_SUMMARY" TITLE="">
<LABEL FOR="CC_LUA_SUMMARY"></LABEL>
</SPAN>
</LI>
</UL>
<SPAN CLASS="ItemText" ID="FinishText">Click <B>Finish</B> from any window to accept the current settings.</SPAN>
<P CLASS="ElementSpacer2">&nbsp;</P>
<!-- 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&nbsp; to cocos2d-x source&#39;s root directory,
otherwise,&nbsp; modify the include directory and library directory menually.</SPAN>
</TD>
<TD VALIGN="TOP" WIDTH="12">
&nbsp;
</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">
&nbsp;
</TD>
</TR>
<TR>
<TD VALIGN="center" HEIGHT="23" WIDTH="12">
&nbsp;
</TD>
<TD VALIGN="top" HEIGHT="23">
&nbsp;
</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">
&nbsp;
</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">
&nbsp;
</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">
&nbsp;
</TD>
</TR>
<TR>
<TD VALIGN="top" HEIGHT="12" COLSPAN="8">
&nbsp;
</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_LUA"))
{
CC_LUA_SUMMARY.innerText = "Lua Supportted: Yes";
}
else
{
CC_LUA_SUMMARY.innerText = "Lua Supportted: NO";
}
}
</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>

View File

@ -1,454 +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
{
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">
&nbsp;
</TD>
<TD VALIGN="top" HEIGHT="12">
&nbsp;
</TD>
<TD VALIGN="top" HEIGHT="12" WIDTH="12">
&nbsp;
</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">
&nbsp;
</TD>
</TR>
<TR>
<TD VALIGN="top" HEIGHT="65" WIDTH="12">
&nbsp;
</TD>
<TD VALIGN="top" HEIGHT="65">
<H4 CLASS="HEAD" ID="HEAD">
Features</H4>
<P CLASS="SUBHEAD" ID="SUBHEAD">Specify features for the cocos2d-x application.</P>
</TD>
<TD VALIGN="top" HEIGHT="65" WIDTH="12">
&nbsp;
</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">
&nbsp;
</TD>
</TR>
<TR>
<TD VALIGN="top" HEIGHT="100%" WIDTH="12">
&nbsp;
</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">
&nbsp;
</TD>
</TR>
<TR VALIGN="top">
<TD VALIGN="top" WIDTH="12">
&nbsp;
</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 &quot;Box2d.h&quot; 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 &quot;chipmunk.h&quot; if needs."
ID="CC_USE_CHIPMUNK_LABEL">
<U>C</U>hipmunk</LABEL>
</DIV>
</SPAN>
<P CLASS="ElementSpacer">&nbsp;</P>
</TD>
<TD VALIGN="top" COLSPAN="3">
&nbsp;
</TD> </TR>
<TR>
<TD VALIGN="top" WIDTH="12">
&nbsp;
</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 &quot;SimpleAudioEngine.h&quot; if needs."
ID="CC_USE_COCOS_DENSHION_SIMPLE_AUDIO_ENGINE_LABEL">
<U>S</U>imple Audio Engine in Cocos Denshion</LABEL>
</DIV>
</SPAN>
<P CLASS="ElementSpacer">&nbsp;</P>
</TD>
</TR>
<TR>
<TD VALIGN="top" WIDTH="12">
&nbsp;
</TD>
<TD VALIGN="top" HEIGHT="100%" COLSPAN="7">
<SPAN CLASS="itemText">Select Lua support:
<br />
<br />
<INPUT CLASS="CheckBoxA" TYPE="checkbox" ID="CC_USE_LUA" ACCESSKEY="S" TITLE="Application uses liblua." value="ON" NAME="CC_USE_LUA onClick="OnUseLua();">
<DIV CLASS="itemTextCheckboxB" ID="CC_USE_LUA_DIV" TITLE="Application uses liblua.">
<LABEL FOR="CC_USE_LUA"
TITLE="Application uses liblua. Include &quot;LuaEngine.h&quot; if needs."
ID="CC_USE_LUA_LABEL">
<U>S</U>upport Lua</LABEL>
</DIV>
</SPAN>
</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">
&nbsp;
</TD>
</TR>
<TR>
<TD VALIGN="center" HEIGHT="23" WIDTH="12">
&nbsp;
</TD>
<TD VALIGN="top" HEIGHT="23">
&nbsp;
</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">
&nbsp;
</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">
&nbsp;
</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">
&nbsp;
</TD>
</TR>
<TR>
<TD VALIGN="top" HEIGHT="12" COLSPAN="8">
&nbsp;
</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;
CC_USE_LUA.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;
}
if (window.external.FindSymbol("CC_USE_LUA"))
{
CC_USE_LUA.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 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);
}
}
function OnUseLua()
{
if (CC_USE_LUA.checked)
{
window.external.AddSymbol("CC_USE_LUA", true);
}
else
{
window.external.AddSymbol("CC_USE_LUA", 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

View File

@ -1,453 +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');
// var WizardVersion = wizard.FindSymbol('WIZARD_VERSION');
// if(WizardVersion >= 8.0)
// {
// }
// Create symbols based on the project name
var strSafeProjectName = CreateSafeName(strProjectName);
wizard.AddSymbol("SAFE_PROJECT_NAME", strSafeProjectName);
wizard.AddSymbol("NICE_SAFE_PROJECT_NAME", strSafeProjectName.substr(0, 1).toUpperCase() + strSafeProjectName.substr(1))
wizard.AddSymbol("UPPERCASE_SAFE_PROJECT_NAME", strSafeProjectName.toUpperCase());
// 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 + ".win32.vcxproj.user";
else
strUserTarget = strProjectName + ".win32.vcproj.user";
var strUserPath = FileSys.BuildPath(strProjectPath+"\\proj.win32", 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 {
if (!FileSys.FolderExists(strPath)) {
FileSys.CreateFolder(strPath);
}
var strWin32ProjectPath = strPath + "\\proj.win32";
if (!FileSys.FolderExists(strWin32ProjectPath)) {
FileSys.CreateFolder(strWin32ProjectPath);
}
}
}
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>false</ShowAllFiles>\r\n"
+ " <LocalDebuggerWorkingDirectory Condition=\"'$(Configuration)|$(Platform)'=='Debug|Win32'\">$(ProjectDir)..\\Resources</LocalDebuggerWorkingDirectory>\r\n"
+ " <LocalDebuggerWorkingDirectory Condition=\"'$(Configuration)|$(Platform)'=='Release|Win32'\">$(ProjectDir)..\\Resources</LocalDebuggerWorkingDirectory>\r\n"
+ " <DebuggerFlavor Condition=\"'$(Configuration)|$(Platform)'=='Debug|Win32'\">WindowsLocalDebugger</DebuggerFlavor>\r\n"
+ " <DebuggerFlavor Condition=\"'$(Configuration)|$(Platform)'=='Release|Win32'\">WindowsLocalDebugger</DebuggerFlavor>\r\n"
+ " </PropertyGroup>\r\n"
+ "</Project>";
else
strUserValue = "<?xml version=\"1.0\" encoding=\"utf-8\"?>\r\n"
+ "<VisualStudioUserFile\r\n"
+ " ProjectType=\"Visual C++\"\r\n"
+ " Version=\"9.00\"\r\n"
+ " ShowAllFiles=\"false\"\r\n"
+ " >\r\n"
+ " <Configurations>\r\n"
+ " <Configuration\r\n"
+ " Name=\"Debug|Win32\"\r\n"
+ " >\r\n"
+ " <DebugSettings\r\n"
+ " WorkingDirectory=\"$(ProjectDir)..\\Resources\\\"\r\n"
+ " />\r\n"
+ " </Configuration>\r\n"
+ " <Configuration\r\n"
+ " Name=\"Release|Win32\"\r\n"
+ " >\r\n"
+ " <DebugSettings\r\n"
+ " WorkingDirectory=\"$(ProjectDir)..\\Resources\\\"\r\n"
+ " />\r\n"
+ " </Configuration>\r\n"
+ " </Configurations>\r\n"
+ "</VisualStudioUserFile>";
file.WriteLine(strUserValue);
file.Close();
// Create project file
var strProjectNameWithExt = '';
if(WizardVersion >= 10.0)
strProjectNameWithExt = strProjectName + '.win32.vcxproj';
else
strProjectNameWithExt = strProjectName + '.win32.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+"\\proj.win32\\", strProjectNameWithExt);
}
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('RESOURCE_FILTER');
group = proj.Object.AddFilter('resource');
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 {
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;
// General settings
var config = proj.Object.Configurations(astrConfigName[nCntr]);
// if(wizard.FindSymbol("CC_USE_UNICODE"))
config.CharacterSet = charSetUnicode;
// else
// config.CharacterSet = charSetMBCS;
var WizardVersion = wizard.FindSymbol('WIZARD_VERSION');
if(WizardVersion >= 10.0) {
config.OutputDirectory = '$(SolutionDir)$(Configuration).win32\\'
config.IntermediateDirectory = '$(Configuration).win32\\';
} else {
config.OutputDirectory = '$(SolutionDir)$(ConfigurationName).win32'
config.IntermediateDirectory = '$(ConfigurationName).win32';
}
// Compiler settings
var CLTool = config.Tools('VCCLCompilerTool');
// Additional Inlcude Directories
var strAddIncludeDir = '.;..\\Classes';
strAddIncludeDir += ';$(SolutionDir)cocos2dx';
strAddIncludeDir += ';$(SolutionDir)cocos2dx\\include';
strAddIncludeDir += ';$(SolutionDir)cocos2dx\\kazmath\\include';
strAddIncludeDir += ';$(SolutionDir)cocos2dx\\platform\\win32';
strAddIncludeDir += ';$(SolutionDir)cocos2dx\\platform\\third_party\\win32';
strAddIncludeDir += ';$(SolutionDir)cocos2dx\\platform\\third_party\\win32\\OGLES';
if (wizard.FindSymbol('CC_USE_BOX2D')) {
strAddIncludeDir += ';$(SolutionDir)external';
}
if (wizard.FindSymbol('CC_USE_CHIPMUNK')) {
strAddIncludeDir += ';$(SolutionDir)external\\chipmunk\\include\\chipmunk';
}
if (wizard.FindSymbol('CC_USE_COCOS_DENSHION_SIMPLE_AUDIO_ENGINE')) {
strAddIncludeDir += ';$(SolutionDir)CocosDenshion\\include';
}
if (wizard.FindSymbol('CC_USE_LUA')) {
strAddIncludeDir += ';$(SolutionDir)scripting\\lua\\cocos2dx_support';
strAddIncludeDir += ';$(SolutionDir)scripting\\lua\\tolua';
strAddIncludeDir += ';$(SolutionDir)scripting\\lua\\lua';
}
CLTool.AdditionalIncludeDirectories = strAddIncludeDir;
CLTool.UsePrecompiledHeader = pchNone; // pchUseUsingSpecific;
CLTool.WarningLevel = warningLevel_3;
if (bDebug) {
CLTool.RuntimeLibrary = rtMultiThreadedDebugDLL;
CLTool.MinimalRebuild = true;
CLTool.DebugInformationFormat = debugEditAndContinue;
CLTool.BasicRuntimeChecks = runtimeBasicCheckAll;
CLTool.Optimization = optimizeDisabled;
}
else {
CLTool.RuntimeLibrary = rtMultiThreadedDLL;
CLTool.ExceptionHandling = false;
CLTool.DebugInformationFormat = debugDisabled;
}
var strDefines = GetPlatformDefine(config);
strDefines += "_WINDOWS;STRICT;_CRT_SECURE_NO_WARNINGS;_SCL_SECURE_NO_WARNINGS";
if (bDebug)
strDefines += "_DEBUG;COCOS2D_DEBUG=1;";
else
strDefines += "NDEBUG";
CLTool.PreprocessorDefinitions = strDefines;
// Disable special warning
CLTool.DisableSpecificWarnings = "4267;4251;4244";
// Linker settings
var LinkTool = config.Tools('VCLinkerTool');
LinkTool.SubSystem = subSystemWindows;
LinkTool.TargetMachine = machineX86;
if (bDebug) {
LinkTool.LinkIncremental = linkIncrementalYes;
LinkTool.GenerateDebugInformation = true;
}
else {
LinkTool.LinkIncremental = linkIncrementalNo;
}
// Additional Library Directories
var strAddDepends = 'libcocos2d.lib opengl32.lib glew32.lib';
if (wizard.FindSymbol('CC_USE_BOX2D')) {
strAddDepends += ' libBox2d.lib';
}
if (wizard.FindSymbol('CC_USE_CHIPMUNK')) {
strAddDepends += ' libchipmunk.lib';
}
if (wizard.FindSymbol('CC_USE_COCOS_DENSHION_SIMPLE_AUDIO_ENGINE')) {
strAddDepends += ' libCocosDenshion.lib';
}
if (wizard.FindSymbol('CC_USE_LUA')) {
strAddDepends += ' liblua.lib';
}
LinkTool.AdditionalLibraryDirectories = '$(OutDir)';
LinkTool.AdditionalDependencies = strAddDepends;
// Resource settings
var RCTool = config.Tools("VCResourceCompilerTool");
RCTool.Culture = rcEnglishUS;
RCTool.AdditionalIncludeDirectories = "$(IntDir)";
if (bDebug)
RCTool.PreprocessorDefinitions = "_DEBUG";
else
RCTool.PreprocessorDefinitions = "NDEBUG";
// MIDL settings
var MidlTool = config.Tools("VCMidlTool");
MidlTool.MkTypLibCompatible = false;
if (IsPlatformWin32(config))
MidlTool.TargetEnvironment = midlTargetWin32;
if (bDebug)
MidlTool.PreprocessorDefinitions = "_DEBUG";
else
MidlTool.PreprocessorDefinitions = "NDEBUG";
MidlTool.HeaderFileName = strProjectName + ".h";
MidlTool.InterfaceIdentifierFileName = strProjectName + "_i.c";
MidlTool.ProxyFileName = strProjectName + "_p.c";
MidlTool.GenerateStublessProxies = true;
MidlTool.TypeLibraryName = "$(IntDir)/" + strProjectName + ".tlb";
MidlTool.DLLDataFileName = "";
// Post-build settings
// var PostBuildTool = config.Tools("VCPostBuildEventTool");
// PostBuildTool.Description = "Performing copy resource from Resource to OutDir...";
// PostBuildTool.CommandLine = "xcopy /E /Q /Y \"$(ProjectDir)Resource\\*.*\" \"$(OutDir)\"";
}
}
catch (e) {
throw e;
}
}
function AddPchSettings(proj) {
try {
// var files = proj.Object.Files;
// var fStdafx = files("StdAfx.cpp");
//
// var nCntr;
// for(nCntr = 0; nCntr < nNumConfigs; nCntr++)
// {
// var config = fStdafx.FileConfigurations(astrConfigName[nCntr]);
// config.Tool.UsePrecompiledHeader = pchCreateUsingSpecific;
// }
}
catch (e) {
throw e;
}
}
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 strWizTempFile = tfolder.Path + "\\" + 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) {
strTarget = strName.substring(0, nIndex) + strProjectName + strName.substring(nIndex + 4, strName.length);
}
var strTemp = "../../../../../scripting/lua";
nIndex = strTarget.indexOf(strTemp);
if (nIndex >= 0) {
strTarget = "Classes" + strTarget.substring(nIndex + strTemp.length, strTarget.length);
}
return strTarget;
}
catch (e) {
throw e;
}
}
function AddFilesToCustomProj(proj, strProjectName, strProjectPath, InfFile) {
try {
var strTemplatePath = wizard.FindSymbol('TEMPLATES_PATH');
var strTpl = '';
var strName = '';
var strTextStream = InfFile.OpenAsTextStream(1, -2);
while (!strTextStream.AtEndOfStream) {
strTpl = strTextStream.ReadLine();
if (strTpl != '') {
strName = strTpl;
var strTarget = GetTargetName(strName, strProjectName);
var strTemplate = strTemplatePath + '\\' + strTpl;
var strFile = strProjectPath + '\\' + strTarget;
var bCopyOnly = true; //"true" will only copy the file from strTemplate to strTarget without rendering/adding to the project
var strExt = strName.substr(strName.lastIndexOf("."));
if (strExt == ".h" || strExt == ".cpp" || strExt == ".c" || strExt == ".rc")
bCopyOnly = false;
wizard.RenderTemplate(strTemplate, strFile, bCopyOnly);
// don't add these files to the project
if (strTarget == strProjectName + ".h" ||
strTarget == strProjectName + "ps.mk" ||
strTarget == strProjectName + "ps.def")
continue;
proj.Object.AddFile(strFile);
}
}
strTextStream.Close();
}
catch (e) {
throw e;
}
}

View File

@ -1,76 +0,0 @@
#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::applicationDidFinishLaunching()
{
// initialize director
CCDirector *pDirector = CCDirector::sharedDirector();
pDirector->setOpenGLView(CCEGLView::sharedOpenGLView());
// turn on display FPS
pDirector->setDisplayStats(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
CCLuaEngine* pEngine = CCLuaEngine::defaultEngine();
CCScriptEngineManager::sharedManager()->setScriptEngine(pEngine);
std::string path = CCFileUtils::sharedFileUtils()->fullPathForFilename("hello.lua");
pEngine->executeScriptFile(path.c_str());
[! 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()->stopAnimation();
[! 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()->startAnimation();
[! if CC_USE_COCOS_DENSHION_SIMPLE_AUDIO_ENGINE]
SimpleAudioEngine::sharedEngine()->resumeBackgroundMusic();
[! endif]
}

View File

@ -1,38 +0,0 @@
#ifndef __APP_DELEGATE_H__
#define __APP_DELEGATE_H__
#include "cocos2d.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 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__

View File

@ -1,97 +0,0 @@
#include "HelloWorldScene.h"
using namespace cocos2d;
CCScene* HelloWorld::scene()
{
CCScene * scene = NULL;
do
{
// 'scene' is an autorelease object
scene = CCScene::create();
CC_BREAK_IF(! scene);
// 'layer' is an autorelease object
HelloWorld *layer = HelloWorld::create();
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::create(
"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::create(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::create("Hello World", "Arial", 24);
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 - 50));
// 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::create("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();
}

View File

@ -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
void menuCloseCallback(CCObject* pSender);
// implement the "static node()" method manually
CREATE_FUNC(HelloWorld);
};
#endif // __HELLOWORLD_SCENE_H__

View File

@ -1 +0,0 @@
a09f5a5c10a2c292e53273fe9bb93c1b711a3787

View File

@ -1 +0,0 @@
aec1c0a8c8068377fddca5ddd32084d8c3c3c419

View File

@ -1 +0,0 @@
d7290c34702d1c6bdb368acb060d93b42d5deff8

View File

@ -1,203 +0,0 @@
-- for CCLuaEngine traceback
function __G__TRACKBACK__(msg)
print("----------------------------------------")
print("LUA ERROR: " .. tostring(msg) .. "\n")
print(debug.traceback())
print("----------------------------------------")
end
local function main()
-- avoid memory leak
collectgarbage("setpause", 100)
collectgarbage("setstepmul", 5000)
local cclog = function(...)
print(string.format(...))
end
require "hello2"
cclog("result is " .. myadd(3, 5))
---------------
local visibleSize = CCDirector:sharedDirector():getVisibleSize()
local origin = CCDirector:sharedDirector():getVisibleOrigin()
-- add the moving dog
local function creatDog()
local frameWidth = 105
local frameHeight = 95
-- create dog animate
local textureDog = CCTextureCache:sharedTextureCache():addImage("dog.png")
local rect = CCRectMake(0, 0, frameWidth, frameHeight)
local frame0 = CCSpriteFrame:createWithTexture(textureDog, rect)
rect = CCRectMake(frameWidth, 0, frameWidth, frameHeight)
local frame1 = CCSpriteFrame:createWithTexture(textureDog, rect)
local spriteDog = CCSprite:createWithSpriteFrame(frame0)
spriteDog.isPaused = false
spriteDog:setPosition(origin.x, origin.y + visibleSize.height / 4 * 3)
local animFrames = CCArray:create()
animFrames:addObject(frame0)
animFrames:addObject(frame1)
local animation = CCAnimation:createWithSpriteFrames(animFrames, 0.5)
local animate = CCAnimate:create(animation);
spriteDog:runAction(CCRepeatForever:create(animate))
-- moving dog at every frame
local function tick()
if spriteDog.isPaused then return end
local x, y = spriteDog:getPosition()
if x > origin.x + visibleSize.width then
x = origin.x
else
x = x + 1
end
spriteDog:setPositionX(x)
end
CCDirector:sharedDirector():getScheduler():scheduleScriptFunc(tick, 0, false)
return spriteDog
end
-- create farm
local function createLayerFarm()
local layerFarm = CCLayer:create()
-- add in farm background
local bg = CCSprite:create("farm.jpg")
bg:setPosition(origin.x + visibleSize.width / 2 + 80, origin.y + visibleSize.height / 2)
layerFarm:addChild(bg)
-- add land sprite
for i = 0, 3 do
for j = 0, 1 do
local spriteLand = CCSprite:create("land.png")
spriteLand:setPosition(200 + j * 180 - i % 2 * 90, 10 + i * 95 / 2)
layerFarm:addChild(spriteLand)
end
end
-- add crop
local frameCrop = CCSpriteFrame:create("crop.png", CCRectMake(0, 0, 105, 95))
for i = 0, 3 do
for j = 0, 1 do
local spriteCrop = CCSprite:createWithSpriteFrame(frameCrop);
spriteCrop:setPosition(10 + 200 + j * 180 - i % 2 * 90, 30 + 10 + i * 95 / 2)
layerFarm:addChild(spriteCrop)
end
end
-- add moving dog
local spriteDog = creatDog()
layerFarm:addChild(spriteDog)
-- handing touch events
local touchBeginPoint = nil
local function onTouchBegan(x, y)
cclog("onTouchBegan: %0.2f, %0.2f", x, y)
touchBeginPoint = {x = x, y = y}
spriteDog.isPaused = true
-- CCTOUCHBEGAN event must return true
return true
end
local function onTouchMoved(x, y)
cclog("onTouchMoved: %0.2f, %0.2f", x, y)
if touchBeginPoint then
local cx, cy = layerFarm:getPosition()
layerFarm:setPosition(cx + x - touchBeginPoint.x,
cy + y - touchBeginPoint.y)
touchBeginPoint = {x = x, y = y}
end
end
local function onTouchEnded(x, y)
cclog("onTouchEnded: %0.2f, %0.2f", x, y)
touchBeginPoint = nil
spriteDog.isPaused = false
end
local function onTouch(eventType, x, y)
if eventType == "began" then
return onTouchBegan(x, y)
elseif eventType == "moved" then
return onTouchMoved(x, y)
else
return onTouchEnded(x, y)
end
end
layerFarm:registerScriptTouchHandler(onTouch)
layerFarm:setTouchEnabled(true)
return layerFarm
end
-- create menu
local function createLayerMenu()
local layerMenu = CCLayer:create()
local menuPopup, menuTools, effectID
local function menuCallbackClosePopup()
-- stop test sound effect
SimpleAudioEngine:sharedEngine():stopEffect(effectID)
menuPopup:setVisible(false)
end
local function menuCallbackOpenPopup()
-- loop test sound effect
local effectPath = CCFileUtils:sharedFileUtils():fullPathForFilename("effect1.wav")
effectID = SimpleAudioEngine:sharedEngine():playEffect(effectPath)
menuPopup:setVisible(true)
end
-- add a popup menu
local menuPopupItem = CCMenuItemImage:create("menu2.png", "menu2.png")
menuPopupItem:setPosition(0, 0)
menuPopupItem:registerScriptTapHandler(menuCallbackClosePopup)
menuPopup = CCMenu:createWithItem(menuPopupItem)
menuPopup:setPosition(origin.x + visibleSize.width / 2, origin.y + visibleSize.height / 2)
menuPopup:setVisible(false)
layerMenu:addChild(menuPopup)
-- add the left-bottom "tools" menu to invoke menuPopup
local menuToolsItem = CCMenuItemImage:create("menu1.png", "menu1.png")
menuToolsItem:setPosition(0, 0)
menuToolsItem:registerScriptTapHandler(menuCallbackOpenPopup)
menuTools = CCMenu:createWithItem(menuToolsItem)
local itemWidth = menuToolsItem:getContentSize().width
local itemHeight = menuToolsItem:getContentSize().height
menuTools:setPosition(origin.x + itemWidth/2, origin.y + itemHeight/2)
layerMenu:addChild(menuTools)
return layerMenu
end
-- play background music, preload effect
-- uncomment below for the BlackBerry version
-- local bgMusicPath = CCFileUtils:sharedFileUtils():fullPathForFilename("background.ogg")
local bgMusicPath = CCFileUtils:sharedFileUtils():fullPathForFilename("background.mp3")
SimpleAudioEngine:sharedEngine():playBackgroundMusic(bgMusicPath, true)
local effectPath = CCFileUtils:sharedFileUtils():fullPathForFilename("effect1.wav")
SimpleAudioEngine:sharedEngine():preloadEffect(effectPath)
-- run
local sceneGame = CCScene:create()
sceneGame:addChild(createLayerFarm())
sceneGame:addChild(createLayerMenu())
CCDirector:sharedDirector():runWithScene(sceneGame)
end
xpcall(main, __G__TRACKBACK__)

View File

@ -1,3 +0,0 @@
function myadd(x, y)
return x + y
end

View File

@ -1,42 +0,0 @@
proj.win32/res/root.ico
proj.win32/root.rc
proj.win32/resource.h
proj.win32/main.h
proj.win32/main.cpp
Classes/AppDelegate.h
Classes/AppDelegate.cpp
[! if CC_USE_LUA]
../../../../../scripting/lua/cocos2dx_support/LuaCocos2d.cpp
../../../../../scripting/lua/cocos2dx_support/LuaCocos2d.h
../../../../../scripting/lua/cocos2dx_support/CCLuaEngine.cpp
../../../../../scripting/lua/cocos2dx_support/CCLuaEngine.h
../../../../../scripting/lua/cocos2dx_support/Cocos2dxLuaLoader.h
../../../../../scripting/lua/cocos2dx_support/Cocos2dxLuaLoader.cpp
../../../../../scripting/lua/cocos2dx_support/tolua_fix.c
../../../../../scripting/lua/cocos2dx_support/tolua_fix.h
[! else]
Classes/HelloWorldScene.h
Classes/HelloWorldScene.cpp
[! endif]
[! if CC_USE_LUA]
Resources/Default.png
Resources/crop.png
Resources/farm.jpg
Resources/land.png
Resources/menu2.png
Resources/Icon.png
Resources/dog.png
Resources/hello.lua
Resources/hello2.lua
Resources/menu1.png
Resources/background.mp3
Resources/effect1.wav
[! else]
Resources/CloseSelected.png
Resources/CloseNormal.png
Resources/HelloWorld.png
[! endif]

View File

@ -1,37 +0,0 @@
#include "main.h"
#include "AppDelegate.h"
#include "CCEGLView.h"
USING_NS_CC;
// 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;
CCEGLView* eglView = CCEGLView::sharedOpenGLView();
eglView->setFrameSize(480, 320);
int ret = CCApplication::sharedApplication()->run();
#ifdef USE_WIN32_CONSOLE
FreeConsole();
#endif
return ret;
}

View File

@ -1,13 +0,0 @@
#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__

Binary file not shown.

Before

Width:  |  Height:  |  Size: 46 KiB

View File

@ -1,22 +0,0 @@
//{{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

View File

@ -1,86 +0,0 @@
// Microsoft Visual C++ generated resource script.
//
#include "resource.h"
#define APSTUDIO_READONLY_SYMBOLS
/////////////////////////////////////////////////////////////////////////////
//
// Generated from the TEXTINCLUDE 2 resource.
//
#define APSTUDIO_HIDDEN_SYMBOLS
#include "windows.h"
#undef APSTUDIO_HIDDEN_SYMBOLS
/////////////////////////////////////////////////////////////////////////////
#undef APSTUDIO_READONLY_SYMBOLS
/////////////////////////////////////////////////////////////////////////////
// English (U.S.) resources
#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENU)
#ifdef _WIN32
LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US
#pragma code_page(1252)
#endif //_WIN32
#ifdef APSTUDIO_INVOKED
/////////////////////////////////////////////////////////////////////////////
//
// TEXTINCLUDE
//
1 TEXTINCLUDE
BEGIN
"resource.h\0"
END
#endif // APSTUDIO_INVOKED
/////////////////////////////////////////////////////////////////////////////
//
// Icon
//
// Icon with lowest ID value placed first to ensure application icon
// remains consistent on all systems.
IDR_MAINFRAME ICON "res\\[!output PROJECT_NAME].ico"
/////////////////////////////////////////////////////////////////////////////
//
// Version
//
VS_VERSION_INFO VERSIONINFO
FILEVERSION 1,0,0,1
PRODUCTVERSION 1,0,0,1
FILEFLAGSMASK 0x3fL
#ifdef _DEBUG
FILEFLAGS 0x1L
#else
FILEFLAGS 0x0L
#endif
FILEOS 0x4L
FILETYPE 0x2L
FILESUBTYPE 0x0L
BEGIN
BLOCK "StringFileInfo"
BEGIN
BLOCK "040904B0"
BEGIN
VALUE "CompanyName", "\0"
VALUE "FileDescription", "[!output PROJECT_NAME] Module\0"
VALUE "FileVersion", "1, 0, 0, 1\0"
VALUE "InternalName", "[!output PROJECT_NAME]\0"
VALUE "LegalCopyright", "Copyright [!output WTL_CURRENT_YEAR]\0"
VALUE "OriginalFilename", "[!output PROJECT_NAME].exe\0"
VALUE "ProductName", "[!output PROJECT_NAME] Module\0"
VALUE "ProductVersion", "1, 0, 0, 1\0"
END
END
BLOCK "VarFileInfo"
BEGIN
VALUE "Translation", 0x0409, 0x04B0
END
END
/////////////////////////////////////////////////////////////////////////////
#endif // !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENU)

View File

@ -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>

View File

@ -1,23 +0,0 @@

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
Global
GlobalSection(DPCodeReviewSolutionGUID) = preSolution
DPCodeReviewSolutionGUID = {00000000-0000-0000-0000-000000000000}
EndGlobalSection
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Win32 = Debug|Win32
Release|Win32 = Release|Win32
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{104F4414-0DA5-4982-A413-766DD1698469}.Debug|Win32.ActiveCfg = Debug|Win32
{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
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
EndGlobal

View File

@ -1,242 +0,0 @@
// Setup program for the Cocos2d-win32 App Wizard for VC++ 10.0 (VC2010)
main();
function EchoInfo(bQuiet, strMsg) {
if (! bQuiet) {
WScript.Echo(strMsg);
}
else {
var FileSys = new ActiveXObject("Scripting.FileSystemObject");
var strLogPath = "InstallWizardLog.txt"
var file = FileSys.OpenTextFile(strLogPath, 8, true);
file.WriteLine(strMsg);
file.Close();
}
}
function EchoError(bQuiet, strMsg) {
strMsg = "Error: " + strMsg;
if (! bQuiet) {
WScript.Echo(strMsg);
}
else {
var FileSys = new ActiveXObject("Scripting.FileSystemObject");
var strLogPath = "InstallWizardLog.txt"
var file = FileSys.OpenTextFile(strLogPath, 8, true);
file.WriteLine(strMsg);
file.Close();
}
}
function main() {
// Decode command line arguments
var bDebug = false;
var bQuiet = false;
var bElevated = true;
var Args = WScript.Arguments;
for (var i = 0; i < Args.length; i++) {
if (Args(i) == "/debug")
bDebug = true;
else if (Args(i) == "/elevated")
bElevated = true;
else if (Args(i) == "/quiet")
bQuiet = true;
}
// See if UAC is enabled
var Shell = WScript.CreateObject("Shell.Application");
if (!bElevated && Shell.IsRestricted("System", "EnableLUA")) {
// Check that the script is being run interactively.
if (!WScript.Interactive) {
EchoError(bQuiet, "(Windows LUA) Elevation required.");
return;
}
// Now relaunch the script, using the "RunAs" verb to elevate
var strParams = "\"" + WScript.ScriptFullName + "\"";
if (bDebug)
strParams += " /debug";
strParams += " /elevated";
Shell.ShellExecute(WScript.FullName, strParams, null, "RunAs");
return;
}
// Create shell object
var WSShell = WScript.CreateObject("WScript.Shell");
// Create file system object
var FileSys = WScript.CreateObject("Scripting.FileSystemObject");
// Get the folder containing the script file
var strScriptPath = FileSys.GetParentFolderName(WScript.ScriptFullName);
if (strScriptPath == null || strScriptPath == "")
strScriptPath = ".";
// Get the folder script files copy to
var strValue = "";
try {
var strVCKey = "HKLM\\Software\\Microsoft\\VCExpress\\10.0\\Setup\\VC\\ProductDir";
strValue = WSShell.RegRead(strVCKey);
}
catch (e) {
try {
var strVCKey_x64 = "HKLM\\Software\\Wow6432Node\\Microsoft\\VCExpress\\10.0\\Setup\\VC\\ProductDir";
strValue = WSShell.RegRead(strVCKey_x64);
}
catch (e) {
EchoError(bQuiet, "Cannot find where Visual C++ 2010 Express is installed.");
return;
}
}
var strDestFolder = FileSys.BuildPath(strValue, "Express\\vcprojects");
if (bDebug)
WScript.Echo("Destination: " + strDestFolder);
if (!FileSys.FolderExists(strDestFolder)) {
EchoError(bQuiet, "Cannot find destination folder (should be: " + strDestFolder + ")");
return;
}
// Wizard Info
var nNumWizards = 1;
var astrWizardName = new Array();
astrWizardName[0] = "CCAppWiz.win32";
var nCntr;
for (nCntr = 0; nCntr < nNumWizards; nCntr++) {
var strSourceFolder = FileSys.BuildPath(strScriptPath, astrWizardName[nCntr]);
if (bDebug)
WScript.Echo("Source: " + strSourceFolder);
if (!FileSys.FolderExists(strSourceFolder)) {
EchoError(bQuiet, "Cannot find Wizard folder (should be: " + strSourceFolder + ")");
return;
}
// Copy files
try {
var strSrc = FileSys.BuildPath(strSourceFolder, astrWizardName[nCntr] + ".ico");
var strDest = FileSys.BuildPath(strDestFolder, astrWizardName[nCntr] + ".ico");
FileSys.CopyFile(strSrc, strDest);
strSrc = FileSys.BuildPath(strSourceFolder, astrWizardName[nCntr] + ".vsdir");
strDest = FileSys.BuildPath(strDestFolder, astrWizardName[nCntr] + ".vsdir");
FileSys.CopyFile(strSrc, strDest);
}
catch (e) {
var strError = "no info";
if (e.description.length != 0)
strError = e.description;
EchoError(bQuiet, "Cannot copy file (" + strError + ")");
return;
}
// Read and write CCAppWiz.vsz, add engine version and replace path when found
try {
var strSrc = FileSys.BuildPath(strSourceFolder, astrWizardName[nCntr] + ".vsz");
var strDest = FileSys.BuildPath(strDestFolder, astrWizardName[nCntr] + ".vsz");
var ForReading = 1;
var fileSrc = FileSys.OpenTextFile(strSrc, ForReading);
if (fileSrc == null) {
EchoError(bQuiet, "Cannot open source file: " + strSrc);
return;
}
var ForWriting = 2;
var fileDest = FileSys.OpenTextFile(strDest, ForWriting, true);
if (fileDest == null) {
EchoError(bQuiet, " Cannot open destination file: " + strDest);
return;
}
while (!fileSrc.AtEndOfStream) {
var strLine = fileSrc.ReadLine();
if (strLine.indexOf("Wizard=VsWizard.VsWizardEngine") != -1)
strLine += ".10.0";
else if (strLine.indexOf("WIZARD_VERSION") != -1)
strLine = "Param=\"WIZARD_VERSION = 10.0\"";
else if (strLine.indexOf("ABSOLUTE_PATH") != -1)
strLine = "Param=\"ABSOLUTE_PATH = " + strSourceFolder + "\"";
fileDest.WriteLine(strLine);
}
fileDest.WriteLine("Param=\"VC_EXPRESS = 1\"");
fileSrc.Close();
fileDest.Close();
}
catch (e) {
var strError = "no info";
if (e.description.length != 0)
strError = e.description;
EchoError(bQuiet, "Cannot read and write CCAppWiz.vsz (" + strError + ")");
return;
}
}
// Create Cocos2d-x folder
var strDestCCFolder = "";
try {
strDestCCFolder = FileSys.BuildPath(strDestFolder, "Cocos2d-x");
if (!FileSys.FolderExists(strDestCCFolder))
FileSys.CreateFolder(strDestCCFolder);
if (bDebug)
WScript.Echo("Cocos2d-x Folder: " + strDestCCFolder);
}
catch (e) {
var strError = "no info";
if (e.description.length != 0)
strError = e.description;
EchoError(bQuiet, "Cannot create Cocos2d-x folder (" + strError + ")");
return;
}
// Read and write additional CCAppWiz.vsdir, add path to the wizard location
try {
var strDest = FileSys.BuildPath(strDestCCFolder, "Cocos2d-x.vsdir");
var ForWriting = 2;
var fileDest = FileSys.OpenTextFile(strDest, ForWriting, true);
if (fileDest == null) {
EchoError(bQuiet, "Cannot open destination file: " + strDest);
return;
}
var nCntr;
for (nCntr = 0; nCntr < nNumWizards; nCntr++) {
var strSourceFolder = FileSys.BuildPath(strScriptPath, astrWizardName[nCntr]);
var strSrc = FileSys.BuildPath(strSourceFolder, astrWizardName[nCntr] + ".vsdir");
var ForReading = 1;
var fileSrc = FileSys.OpenTextFile(strSrc, ForReading);
if (fileSrc == null) {
EchoError(bQuiet, "Cannot open source file: " + strSrc);
return;
}
while (!fileSrc.AtEndOfStream) {
var strLine = fileSrc.ReadLine();
if (strLine.indexOf(astrWizardName[nCntr] + ".vsz|") != -1)
strLine = "..\\" + strLine;
fileDest.WriteLine(strLine);
}
fileSrc.Close();
}
fileDest.Close();
}
catch (e) {
var strError = "no info";
if (e.description.length != 0)
strError = e.description;
EchoError(bQuiet, "Cannot read and write Cocos2d-x\\CCAppWiz.vsdir (" + strError + ")");
return;
}
EchoInfo(bQuiet, "App Wizard successfully installed for VC2010 Express!");
}

View File

@ -1,239 +0,0 @@
// Setup program for the Cocos2d-win32 App Wizard for VC++ 10.0 (VC2010)
main();
function EchoInfo(bQuiet, strMsg) {
if (! bQuiet) {
WScript.Echo(strMsg);
}
else {
var FileSys = new ActiveXObject("Scripting.FileSystemObject");
var strLogPath = "InstallWizardLog.txt"
var file = FileSys.OpenTextFile(strLogPath, 8, true);
file.WriteLine(strMsg);
file.Close();
}
}
function EchoError(bQuiet, strMsg) {
strMsg = "Error: " + strMsg;
if (! bQuiet) {
WScript.Echo(strMsg);
}
else {
var FileSys = new ActiveXObject("Scripting.FileSystemObject");
var strLogPath = "InstallWizardLog.txt"
var file = FileSys.OpenTextFile(strLogPath, 8, true);
file.WriteLine(strMsg);
file.Close();
}
}
function main() {
// Decode command line arguments
var bDebug = false;
var bQuiet = false;
var bElevated = true;
var Args = WScript.Arguments;
for (var i = 0; i < Args.length; i++) {
if (Args(i) == "/debug")
bDebug = true;
else if (Args(i) == "/elevated")
bElevated = true;
else if (Args(i) == "/quiet")
bQuiet = true;
}
// See if UAC is enabled
var Shell = WScript.CreateObject("Shell.Application");
if (!bElevated && Shell.IsRestricted("System", "EnableLUA")) {
// Check that the script is being run interactively.
if (!WScript.Interactive) {
EchoError(bQuiet, "(Windows LUA) Elevation required.");
return;
}
// Now relaunch the script, using the "RunAs" verb to elevate
var strParams = "\"" + WScript.ScriptFullName + "\"";
if (bDebug)
strParams += " /debug";
strParams += " /elevated";
Shell.ShellExecute(WScript.FullName, strParams, null, "RunAs");
return;
}
// Create shell object
var WSShell = WScript.CreateObject("WScript.Shell");
// Create file system object
var FileSys = WScript.CreateObject("Scripting.FileSystemObject");
// Get the folder containing the script file
var strScriptPath = FileSys.GetParentFolderName(WScript.ScriptFullName);
if (strScriptPath == null || strScriptPath == "")
strScriptPath = ".";
// Get the folder script files copy to
var strValue = "";
try {
var strVCKey = "HKLM\\Software\\Microsoft\\VisualStudio\\10.0\\Setup\\VC\\ProductDir";
strValue = WSShell.RegRead(strVCKey);
}
catch (e) {
try {
var strVCKey_x64 = "HKLM\\Software\\Wow6432Node\\Microsoft\\VisualStudio\\10.0\\Setup\\VC\\ProductDir";
strValue = WSShell.RegRead(strVCKey_x64);
}
catch (e) {
EchoError(bQuiet, "Cannot find where Visual Studio 2010 is installed.");
return;
}
}
var strDestFolder = FileSys.BuildPath(strValue, "vcprojects");
if (bDebug)
WScript.Echo("Destination: " + strDestFolder);
if (!FileSys.FolderExists(strDestFolder)) {
EchoError(bQuiet, "Cannot find destination folder (should be: " + strDestFolder + ")");
return;
}
// Wizard Info
var nNumWizards = 1;
var astrWizardName = new Array();
astrWizardName[0] = "CCAppWiz.win32";
var nCntr;
for (nCntr = 0; nCntr < nNumWizards; nCntr++) {
var strSourceFolder = FileSys.BuildPath(strScriptPath, astrWizardName[nCntr]);
if (bDebug)
WScript.Echo("Source: " + strSourceFolder);
if (!FileSys.FolderExists(strSourceFolder)) {
EchoError(bQuiet, "Cannot find Wizard folder (should be: " + strSourceFolder + ")");
return;
}
// Copy files
try {
var strSrc = FileSys.BuildPath(strSourceFolder, astrWizardName[nCntr] + ".ico");
var strDest = FileSys.BuildPath(strDestFolder, astrWizardName[nCntr] + ".ico");
FileSys.CopyFile(strSrc, strDest);
strSrc = FileSys.BuildPath(strSourceFolder, astrWizardName[nCntr] + ".vsdir");
strDest = FileSys.BuildPath(strDestFolder, astrWizardName[nCntr] + ".vsdir");
FileSys.CopyFile(strSrc, strDest);
}
catch (e) {
var strError = "no info";
if (e.description.length != 0)
strError = e.description;
EchoError(bQuiet, "Cannot copy file (" + strError + ")");
return;
}
// Read and write CCAppWiz.vsz, add engine version and replace path when found
try {
var strSrc = FileSys.BuildPath(strSourceFolder, astrWizardName[nCntr] + ".vsz");
var strDest = FileSys.BuildPath(strDestFolder, astrWizardName[nCntr] + ".vsz");
var ForReading = 1;
var fileSrc = FileSys.OpenTextFile(strSrc, ForReading);
if (fileSrc == null) {
EchoError(bQuiet, "Cannot open source file: " + strSrc);
return;
}
var ForWriting = 2;
var fileDest = FileSys.OpenTextFile(strDest, ForWriting, true);
if (fileDest == null) {
EchoError(bQuiet, " Cannot open destination file: " + strDest);
return;
}
while (!fileSrc.AtEndOfStream) {
var strLine = fileSrc.ReadLine();
if (strLine.indexOf("Wizard=VsWizard.VsWizardEngine") != -1)
strLine += ".10.0";
else if (strLine.indexOf("WIZARD_VERSION") != -1)
strLine = "Param=\"WIZARD_VERSION = 10.0\"";
else if (strLine.indexOf("ABSOLUTE_PATH") != -1)
strLine = "Param=\"ABSOLUTE_PATH = " + strSourceFolder + "\"";
fileDest.WriteLine(strLine);
}
fileSrc.Close();
fileDest.Close();
}
catch (e) {
var strError = "no info";
if (e.description.length != 0)
strError = e.description;
EchoError(bQuiet, "Cannot read and write CCAppWiz.vsz (" + strError + ")");
return;
}
}
// Create Cocos2d-x folder
var strDestCCFolder = "";
try {
strDestCCFolder = FileSys.BuildPath(strDestFolder, "Cocos2d-x");
if (!FileSys.FolderExists(strDestCCFolder))
FileSys.CreateFolder(strDestCCFolder);
if (bDebug)
WScript.Echo("Cocos2d-x Folder: " + strDestCCFolder);
}
catch (e) {
var strError = "no info";
if (e.description.length != 0)
strError = e.description;
EchoError(bQuiet, "Cannot create Cocos2d-x folder (" + strError + ")");
return;
}
// Read and write additional CCAppWiz.vsdir, add path to the wizard location
try {
var strDest = FileSys.BuildPath(strDestCCFolder, "Cocos2d-x.vsdir");
var ForWriting = 2;
var fileDest = FileSys.OpenTextFile(strDest, ForWriting, true);
if (fileDest == null) {
EchoError(bQuiet, "Cannot open destination file: " + strDest);
return;
}
var nCntr;
for (nCntr = 0; nCntr < nNumWizards; nCntr++) {
var strSourceFolder = FileSys.BuildPath(strScriptPath, astrWizardName[nCntr]);
var strSrc = FileSys.BuildPath(strSourceFolder, astrWizardName[nCntr] + ".vsdir");
var ForReading = 1;
var fileSrc = FileSys.OpenTextFile(strSrc, ForReading);
if (fileSrc == null) {
EchoError(bQuiet, "Cannot open source file: " + strSrc);
return;
}
while (!fileSrc.AtEndOfStream) {
var strLine = fileSrc.ReadLine();
if (strLine.indexOf(astrWizardName[nCntr] + ".vsz|") != -1)
strLine = "..\\" + strLine;
fileDest.WriteLine(strLine);
}
fileSrc.Close();
}
fileDest.Close();
}
catch (e) {
var strError = "no info";
if (e.description.length != 0)
strError = e.description;
EchoError(bQuiet, "Cannot read and write Cocos2d-x\\CCAppWiz.vsdir (" + strError + ")");
return;
}
EchoInfo(bQuiet, "App Wizard successfully installed for VS2010!");
}

View File

@ -1,239 +0,0 @@
// Setup program for the Cocos2d-win32 App Wizard for VC++ 11.0 (VC2012)
main();
function EchoInfo(bQuiet, strMsg) {
if (! bQuiet) {
WScript.Echo(strMsg);
}
else {
var FileSys = new ActiveXObject("Scripting.FileSystemObject");
var strLogPath = "InstallWizardLog.txt"
var file = FileSys.OpenTextFile(strLogPath, 8, true);
file.WriteLine(strMsg);
file.Close();
}
}
function EchoError(bQuiet, strMsg) {
strMsg = "Error: " + strMsg;
if (! bQuiet) {
WScript.Echo(strMsg);
}
else {
var FileSys = new ActiveXObject("Scripting.FileSystemObject");
var strLogPath = "InstallWizardLog.txt"
var file = FileSys.OpenTextFile(strLogPath, 8, true);
file.WriteLine(strMsg);
file.Close();
}
}
function main() {
// Decode command line arguments
var bDebug = false;
var bQuiet = false;
var bElevated = false;
var Args = WScript.Arguments;
for (var i = 0; i < Args.length; i++) {
if (Args(i) == "/debug")
bDebug = true;
else if (Args(i) == "/elevated")
bElevated = true;
else if (Args(i) == "/quiet")
bQuiet = true;
}
// See if UAC is enabled
var Shell = WScript.CreateObject("Shell.Application");
if (!bElevated && Shell.IsRestricted("System", "EnableLUA")) {
// Check that the script is being run interactively.
if (!WScript.Interactive) {
EchoError(bQuiet, "(Windows LUA) Elevation required.");
return;
}
// Now relaunch the script, using the "RunAs" verb to elevate
var strParams = "\"" + WScript.ScriptFullName + "\"";
if (bDebug)
strParams += " /debug";
strParams += " /elevated";
Shell.ShellExecute(WScript.FullName, strParams, null, "RunAs");
return;
}
// Create shell object
var WSShell = WScript.CreateObject("WScript.Shell");
// Create file system object
var FileSys = WScript.CreateObject("Scripting.FileSystemObject");
// Get the folder containing the script file
var strScriptPath = FileSys.GetParentFolderName(WScript.ScriptFullName);
if (strScriptPath == null || strScriptPath == "")
strScriptPath = ".";
// Get the folder script files copy to
var strValue = "";
try {
var strVCKey = "HKLM\\Software\\Microsoft\\VisualStudio\\11.0\\Setup\\VC\\ProductDir";
strValue = WSShell.RegRead(strVCKey);
}
catch (e) {
try {
var strVCKey_x64 = "HKLM\\Software\\Wow6432Node\\Microsoft\\VisualStudio\\11.0\\Setup\\VC\\ProductDir";
strValue = WSShell.RegRead(strVCKey_x64);
}
catch (e) {
EchoError(bQuiet, "Cannot find where Visual Studio 2012 is installed.");
return;
}
}
var strDestFolder = FileSys.BuildPath(strValue, "vcprojects");
if (bDebug)
WScript.Echo("Destination: " + strDestFolder);
if (!FileSys.FolderExists(strDestFolder)) {
EchoError(bQuiet, "Cannot find destination folder (should be: " + strDestFolder + ")");
return;
}
// Wizard Info
var nNumWizards = 1;
var astrWizardName = new Array();
astrWizardName[0] = "CCAppWiz.win32";
var nCntr;
for (nCntr = 0; nCntr < nNumWizards; nCntr++) {
var strSourceFolder = FileSys.BuildPath(strScriptPath, astrWizardName[nCntr]);
if (bDebug)
WScript.Echo("Source: " + strSourceFolder);
if (!FileSys.FolderExists(strSourceFolder)) {
EchoError(bQuiet, "Cannot find Wizard folder (should be: " + strSourceFolder + ")");
return;
}
// Copy files
try {
var strSrc = FileSys.BuildPath(strSourceFolder, astrWizardName[nCntr] + ".ico");
var strDest = FileSys.BuildPath(strDestFolder, astrWizardName[nCntr] + ".ico");
FileSys.CopyFile(strSrc, strDest);
strSrc = FileSys.BuildPath(strSourceFolder, astrWizardName[nCntr] + ".vsdir");
strDest = FileSys.BuildPath(strDestFolder, astrWizardName[nCntr] + ".vsdir");
FileSys.CopyFile(strSrc, strDest);
}
catch (e) {
var strError = "no info";
if (e.description.length != 0)
strError = e.description;
EchoError(bQuiet, "Cannot copy file (" + strError + ")");
return;
}
// Read and write CCAppWiz.vsz, add engine version and replace path when found
try {
var strSrc = FileSys.BuildPath(strSourceFolder, astrWizardName[nCntr] + ".vsz");
var strDest = FileSys.BuildPath(strDestFolder, astrWizardName[nCntr] + ".vsz");
var ForReading = 1;
var fileSrc = FileSys.OpenTextFile(strSrc, ForReading);
if (fileSrc == null) {
EchoError(bQuiet, "Cannot open source file: " + strSrc);
return;
}
var ForWriting = 2;
var fileDest = FileSys.OpenTextFile(strDest, ForWriting, true);
if (fileDest == null) {
EchoError(bQuiet, " Cannot open destination file: " + strDest);
return;
}
while (!fileSrc.AtEndOfStream) {
var strLine = fileSrc.ReadLine();
if (strLine.indexOf("Wizard=VsWizard.VsWizardEngine") != -1)
strLine += ".11.0";
else if (strLine.indexOf("WIZARD_VERSION") != -1)
strLine = "Param=\"WIZARD_VERSION = 11.0\"";
else if (strLine.indexOf("ABSOLUTE_PATH") != -1)
strLine = "Param=\"ABSOLUTE_PATH = " + strSourceFolder + "\"";
fileDest.WriteLine(strLine);
}
fileSrc.Close();
fileDest.Close();
}
catch (e) {
var strError = "no info";
if (e.description.length != 0)
strError = e.description;
EchoError(bQuiet, "Cannot read and write CCAppWiz.vsz (" + strError + ")");
return;
}
}
// Create Cocos2d-x folder
var strDestCCFolder = "";
try {
strDestCCFolder = FileSys.BuildPath(strDestFolder, "Cocos2d-x");
if (!FileSys.FolderExists(strDestCCFolder))
FileSys.CreateFolder(strDestCCFolder);
if (bDebug)
WScript.Echo("Cocos2d-x Folder: " + strDestCCFolder);
}
catch (e) {
var strError = "no info";
if (e.description.length != 0)
strError = e.description;
EchoError(bQuiet, "Cannot create Cocos2d-x folder (" + strError + ")");
return;
}
// Read and write additional CCAppWiz.vsdir, add path to the wizard location
try {
var strDest = FileSys.BuildPath(strDestCCFolder, "Cocos2d-x.vsdir");
var ForWriting = 2;
var fileDest = FileSys.OpenTextFile(strDest, ForWriting, true);
if (fileDest == null) {
EchoError(bQuiet, "Cannot open destination file: " + strDest);
return;
}
var nCntr;
for (nCntr = 0; nCntr < nNumWizards; nCntr++) {
var strSourceFolder = FileSys.BuildPath(strScriptPath, astrWizardName[nCntr]);
var strSrc = FileSys.BuildPath(strSourceFolder, astrWizardName[nCntr] + ".vsdir");
var ForReading = 1;
var fileSrc = FileSys.OpenTextFile(strSrc, ForReading);
if (fileSrc == null) {
EchoError(bQuiet, "Cannot open source file: " + strSrc);
return;
}
while (!fileSrc.AtEndOfStream) {
var strLine = fileSrc.ReadLine();
if (strLine.indexOf(astrWizardName[nCntr] + ".vsz|") != -1)
strLine = "..\\" + strLine;
fileDest.WriteLine(strLine);
}
fileSrc.Close();
}
fileDest.Close();
}
catch (e) {
var strError = "no info";
if (e.description.length != 0)
strError = e.description;
EchoError(bQuiet, "Cannot read and write Cocos2d-x\\CCAppWiz.vsdir (" + strError + ")");
return;
}
EchoInfo(bQuiet, "App Wizard successfully installed for VS2012!");
}

View File

@ -1,239 +0,0 @@
// Setup program for the Cocos2d-win32 App Wizard for VC++ 11.0 (VC2012)
main();
function EchoInfo(bQuiet, strMsg) {
if (! bQuiet) {
WScript.Echo(strMsg);
}
else {
var FileSys = new ActiveXObject("Scripting.FileSystemObject");
var strLogPath = "InstallWizardLog.txt"
var file = FileSys.OpenTextFile(strLogPath, 8, true);
file.WriteLine(strMsg);
file.Close();
}
}
function EchoError(bQuiet, strMsg) {
strMsg = "Error: " + strMsg;
if (! bQuiet) {
WScript.Echo(strMsg);
}
else {
var FileSys = new ActiveXObject("Scripting.FileSystemObject");
var strLogPath = "InstallWizardLog.txt"
var file = FileSys.OpenTextFile(strLogPath, 8, true);
file.WriteLine(strMsg);
file.Close();
}
}
function main() {
// Decode command line arguments
var bDebug = false;
var bQuiet = false;
var bElevated = false;
var Args = WScript.Arguments;
for (var i = 0; i < Args.length; i++) {
if (Args(i) == "/debug")
bDebug = true;
else if (Args(i) == "/elevated")
bElevated = true;
else if (Args(i) == "/quiet")
bQuiet = true;
}
// See if UAC is enabled
var Shell = WScript.CreateObject("Shell.Application");
if (!bElevated && Shell.IsRestricted("System", "EnableLUA")) {
// Check that the script is being run interactively.
if (!WScript.Interactive) {
EchoError(bQuiet, "(Windows LUA) Elevation required.");
return;
}
// Now relaunch the script, using the "RunAs" verb to elevate
var strParams = "\"" + WScript.ScriptFullName + "\"";
if (bDebug)
strParams += " /debug";
strParams += " /elevated";
Shell.ShellExecute(WScript.FullName, strParams, null, "RunAs");
return;
}
// Create shell object
var WSShell = WScript.CreateObject("WScript.Shell");
// Create file system object
var FileSys = WScript.CreateObject("Scripting.FileSystemObject");
// Get the folder containing the script file
var strScriptPath = FileSys.GetParentFolderName(WScript.ScriptFullName);
if (strScriptPath == null || strScriptPath == "")
strScriptPath = ".";
// Get the folder script files copy to
var strValue = "";
try {
var strVCKey = "HKLM\\Software\\Microsoft\\VisualStudio\\11.0\\Setup\\VC\\ProductDir";
strValue = WSShell.RegRead(strVCKey);
}
catch (e) {
try {
var strVCKey_x64 = "HKLM\\Software\\Wow6432Node\\Microsoft\\VisualStudio\\11.0\\Setup\\VC\\ProductDir";
strValue = WSShell.RegRead(strVCKey_x64);
}
catch (e) {
EchoError(bQuiet, "Cannot find where Visual Studio Express 2012 for Windows Desktop is installed.");
return;
}
}
var strDestFolder = FileSys.BuildPath(strValue, "vcprojects_WDExpress");
if (bDebug)
WScript.Echo("Destination: " + strDestFolder);
if (!FileSys.FolderExists(strDestFolder)) {
EchoError(bQuiet, "Cannot find destination folder (should be: " + strDestFolder + ")");
return;
}
// Wizard Info
var nNumWizards = 1;
var astrWizardName = new Array();
astrWizardName[0] = "CCAppWiz.win32";
var nCntr;
for (nCntr = 0; nCntr < nNumWizards; nCntr++) {
var strSourceFolder = FileSys.BuildPath(strScriptPath, astrWizardName[nCntr]);
if (bDebug)
WScript.Echo("Source: " + strSourceFolder);
if (!FileSys.FolderExists(strSourceFolder)) {
EchoError(bQuiet, "Cannot find Wizard folder (should be: " + strSourceFolder + ")");
return;
}
// Copy files
try {
var strSrc = FileSys.BuildPath(strSourceFolder, astrWizardName[nCntr] + ".ico");
var strDest = FileSys.BuildPath(strDestFolder, astrWizardName[nCntr] + ".ico");
FileSys.CopyFile(strSrc, strDest);
strSrc = FileSys.BuildPath(strSourceFolder, astrWizardName[nCntr] + ".vsdir");
strDest = FileSys.BuildPath(strDestFolder, astrWizardName[nCntr] + ".vsdir");
FileSys.CopyFile(strSrc, strDest);
}
catch (e) {
var strError = "no info";
if (e.description.length != 0)
strError = e.description;
EchoError(bQuiet, "Cannot copy file (" + strError + ")");
return;
}
// Read and write CCAppWiz.vsz, add engine version and replace path when found
try {
var strSrc = FileSys.BuildPath(strSourceFolder, astrWizardName[nCntr] + ".vsz");
var strDest = FileSys.BuildPath(strDestFolder, astrWizardName[nCntr] + ".vsz");
var ForReading = 1;
var fileSrc = FileSys.OpenTextFile(strSrc, ForReading);
if (fileSrc == null) {
EchoError(bQuiet, "Cannot open source file: " + strSrc);
return;
}
var ForWriting = 2;
var fileDest = FileSys.OpenTextFile(strDest, ForWriting, true);
if (fileDest == null) {
EchoError(bQuiet, " Cannot open destination file: " + strDest);
return;
}
while (!fileSrc.AtEndOfStream) {
var strLine = fileSrc.ReadLine();
if (strLine.indexOf("Wizard=VsWizard.VsWizardEngine") != -1)
strLine += ".11.0";
else if (strLine.indexOf("WIZARD_VERSION") != -1)
strLine = "Param=\"WIZARD_VERSION = 11.0\"";
else if (strLine.indexOf("ABSOLUTE_PATH") != -1)
strLine = "Param=\"ABSOLUTE_PATH = " + strSourceFolder + "\"";
fileDest.WriteLine(strLine);
}
fileSrc.Close();
fileDest.Close();
}
catch (e) {
var strError = "no info";
if (e.description.length != 0)
strError = e.description;
EchoError(bQuiet, "Cannot read and write CCAppWiz.vsz (" + strError + ")");
return;
}
}
// Create Cocos2d-x folder
var strDestCCFolder = "";
try {
strDestCCFolder = FileSys.BuildPath(strDestFolder, "Cocos2d-x");
if (!FileSys.FolderExists(strDestCCFolder))
FileSys.CreateFolder(strDestCCFolder);
if (bDebug)
WScript.Echo("Cocos2d-x Folder: " + strDestCCFolder);
}
catch (e) {
var strError = "no info";
if (e.description.length != 0)
strError = e.description;
EchoError(bQuiet, "Cannot create Cocos2d-x folder (" + strError + ")");
return;
}
// Read and write additional CCAppWiz.vsdir, add path to the wizard location
try {
var strDest = FileSys.BuildPath(strDestCCFolder, "Cocos2d-x.vsdir");
var ForWriting = 2;
var fileDest = FileSys.OpenTextFile(strDest, ForWriting, true);
if (fileDest == null) {
EchoError(bQuiet, "Cannot open destination file: " + strDest);
return;
}
var nCntr;
for (nCntr = 0; nCntr < nNumWizards; nCntr++) {
var strSourceFolder = FileSys.BuildPath(strScriptPath, astrWizardName[nCntr]);
var strSrc = FileSys.BuildPath(strSourceFolder, astrWizardName[nCntr] + ".vsdir");
var ForReading = 1;
var fileSrc = FileSys.OpenTextFile(strSrc, ForReading);
if (fileSrc == null) {
EchoError(bQuiet, "Cannot open source file: " + strSrc);
return;
}
while (!fileSrc.AtEndOfStream) {
var strLine = fileSrc.ReadLine();
if (strLine.indexOf(astrWizardName[nCntr] + ".vsz|") != -1)
strLine = "..\\" + strLine;
fileDest.WriteLine(strLine);
}
fileSrc.Close();
}
fileDest.Close();
}
catch (e) {
var strError = "no info";
if (e.description.length != 0)
strError = e.description;
EchoError(bQuiet, "Cannot read and write Cocos2d-x\\CCAppWiz.vsdir (" + strError + ")");
return;
}
EchoInfo(bQuiet, "App Wizard successfully installed for VS2012 Express!");
}