mirror of https://github.com/axmolengine/axmol.git
fix windows compile and running error
This commit is contained in:
parent
eb97b9ad45
commit
a429182765
|
@ -72,7 +72,7 @@ namespace cocostudio
|
||||||
int ecr=0, ecg=0, ecb= 0;
|
int ecr=0, ecg=0, ecb= 0;
|
||||||
float bgcv1 = 0.0f, bgcv2= 0.0f;
|
float bgcv1 = 0.0f, bgcv2= 0.0f;
|
||||||
float capsx = 0.0f, capsy = 0.0, capsWidth = 0.0, capsHeight = 0.0f;
|
float capsx = 0.0f, capsy = 0.0, capsWidth = 0.0, capsHeight = 0.0f;
|
||||||
Layout::Type layoutType;
|
Layout::Type layoutType = Layout::Type::ABSOLUTE;
|
||||||
int bgColorOpacity = panel->getBackGroundColorOpacity();
|
int bgColorOpacity = panel->getBackGroundColorOpacity();
|
||||||
|
|
||||||
for (int i = 0; i < cocoNode->GetChildNum(); ++i) {
|
for (int i = 0; i < cocoNode->GetChildNum(); ++i) {
|
||||||
|
|
|
@ -69,7 +69,12 @@ namespace cocostudio
|
||||||
}else if(key == P_FontSize){
|
}else if(key == P_FontSize){
|
||||||
label->setFontSize(valueToInt(value));
|
label->setFontSize(valueToInt(value));
|
||||||
}else if(key == P_FontName){
|
}else if(key == P_FontName){
|
||||||
std::string fontFilePath = jsonPath.append(value);
|
std::string fontFilePath;
|
||||||
|
if(FileUtils::getInstance()->isFileExist(value)){
|
||||||
|
fontFilePath = jsonPath.append(value);
|
||||||
|
}else{
|
||||||
|
fontFilePath = value;
|
||||||
|
}
|
||||||
label->setFontName(fontFilePath);
|
label->setFontName(fontFilePath);
|
||||||
}else if(key == P_AreaWidth){
|
}else if(key == P_AreaWidth){
|
||||||
label->setTextAreaSize(Size(valueToFloat(value), label->getTextAreaSize().height));
|
label->setTextAreaSize(Size(valueToFloat(value), label->getTextAreaSize().height));
|
||||||
|
|
|
@ -77,7 +77,7 @@
|
||||||
<PrecompiledHeader>Use</PrecompiledHeader>
|
<PrecompiledHeader>Use</PrecompiledHeader>
|
||||||
<PrecompiledHeaderFile>pch.h</PrecompiledHeaderFile>
|
<PrecompiledHeaderFile>pch.h</PrecompiledHeaderFile>
|
||||||
<AdditionalUsingDirectories>$(WindowsSDK_MetadataPath);$(AdditionalUsingDirectories)</AdditionalUsingDirectories>
|
<AdditionalUsingDirectories>$(WindowsSDK_MetadataPath);$(AdditionalUsingDirectories)</AdditionalUsingDirectories>
|
||||||
<AdditionalIncludeDirectories>$(EngineRoot);$(EngineRoot)cocos;$(EngineRoot)cocos\audio\include;$(EngineRoot)cocos\editor-support;$(EngineRoot)external;$(EngineRoot)external\tinyxml2;$(EngineRoot)external\chipmunk\include\chipmunk;$(EngineRoot)extensions;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
<AdditionalIncludeDirectories>$(EngineRoot);$(EngineRoot)cocos;$(EngineRoot)cocos\audio\include;$(EngineRoot)cocos\editor-support;$(EngineRoot)external;$(EngineRoot)external\tinyxml2;$(EngineRoot)external\chipmunk\include\chipmunk;$(EngineRoot)external\wp8-specific\zlib\include;$(EngineRoot)extensions;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||||
<PreprocessorDefinitions>WP8;_DEBUG;_LIB;COCOS2DXWIN32_EXPORTS;GL_GLEXT_PROTOTYPES;COCOS2D_DEBUG=1;_CRT_SECURE_NO_WARNINGS;_SCL_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
<PreprocessorDefinitions>WP8;_DEBUG;_LIB;COCOS2DXWIN32_EXPORTS;GL_GLEXT_PROTOTYPES;COCOS2D_DEBUG=1;_CRT_SECURE_NO_WARNINGS;_SCL_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||||
<DisableSpecificWarnings>4267;4251;4244;%(DisableSpecificWarnings)</DisableSpecificWarnings>
|
<DisableSpecificWarnings>4267;4251;4244;%(DisableSpecificWarnings)</DisableSpecificWarnings>
|
||||||
<AdditionalOptions>/Zm200 %(AdditionalOptions)</AdditionalOptions>
|
<AdditionalOptions>/Zm200 %(AdditionalOptions)</AdditionalOptions>
|
||||||
|
|
Loading…
Reference in New Issue