mirror of https://github.com/axmolengine/axmol.git
To optimize the situation that source path is existed, but source is not existed.
This commit is contained in:
parent
afb06b5c42
commit
00bf9f5bfb
|
@ -602,7 +602,7 @@ namespace cocostudio
|
||||||
{
|
{
|
||||||
button->loadTextureNormal(normalTexturePath, (Widget::TextureResType)normalType);
|
button->loadTextureNormal(normalTexturePath, (Widget::TextureResType)normalType);
|
||||||
}
|
}
|
||||||
else
|
else if(normalTexturePath != "")
|
||||||
{
|
{
|
||||||
auto label = Label::create();
|
auto label = Label::create();
|
||||||
label->setString(__String::createWithFormat("%s missed", normalErrorFilePath.c_str())->getCString());
|
label->setString(__String::createWithFormat("%s missed", normalErrorFilePath.c_str())->getCString());
|
||||||
|
@ -666,7 +666,7 @@ namespace cocostudio
|
||||||
{
|
{
|
||||||
button->loadTexturePressed(pressedTexturePath, (Widget::TextureResType)pressedType);
|
button->loadTexturePressed(pressedTexturePath, (Widget::TextureResType)pressedType);
|
||||||
}
|
}
|
||||||
else
|
else if(pressedTexturePath != "")
|
||||||
{
|
{
|
||||||
auto label = Label::create();
|
auto label = Label::create();
|
||||||
label->setString(__String::createWithFormat("%s missed", pressedErrorFilePath.c_str())->getCString());
|
label->setString(__String::createWithFormat("%s missed", pressedErrorFilePath.c_str())->getCString());
|
||||||
|
@ -730,7 +730,7 @@ namespace cocostudio
|
||||||
{
|
{
|
||||||
button->loadTextureDisabled(disabledTexturePath, (Widget::TextureResType)disabledType);
|
button->loadTextureDisabled(disabledTexturePath, (Widget::TextureResType)disabledType);
|
||||||
}
|
}
|
||||||
else
|
else if(disabledTexturePath != "")
|
||||||
{
|
{
|
||||||
auto label = Label::create();
|
auto label = Label::create();
|
||||||
label->setString(__String::createWithFormat("%s missed", disabledErrorFilePath.c_str())->getCString());
|
label->setString(__String::createWithFormat("%s missed", disabledErrorFilePath.c_str())->getCString());
|
||||||
|
|
Loading…
Reference in New Issue