mirror of https://github.com/axmolengine/axmol.git
Fix pull request #6894 merge conflicts
This commit is contained in:
parent
c4fac7b37d
commit
1c1d917620
|
@ -110,8 +110,12 @@ namespace cocostudio
|
||||||
|
|
||||||
const rapidjson::Value& imageFileNameDic = DICTOOL->getSubDictionary_json(options, P_FileNameData);
|
const rapidjson::Value& imageFileNameDic = DICTOOL->getSubDictionary_json(options, P_FileNameData);
|
||||||
int imageFileNameType = DICTOOL->getIntValue_json(imageFileNameDic, P_ResourceType);
|
int imageFileNameType = DICTOOL->getIntValue_json(imageFileNameDic, P_ResourceType);
|
||||||
std::string imageFileName = this->getResourcePath(imageFileNameDic, P_Path, (Widget::TextureResType)imageFileNameType);
|
const std::string& imageFilePath = DICTOOL->getStringValue_json(imageFileNameDic, P_Path);
|
||||||
imageView->loadTexture(imageFileName, (Widget::TextureResType)imageFileNameType);
|
|
||||||
|
if (!imageFilePath.empty()) {
|
||||||
|
std::string imageFileName = this->getResourcePath(imageFileNameDic, P_Path, (Widget::TextureResType)imageFileNameType);
|
||||||
|
imageView->loadTexture(imageFileName, (Widget::TextureResType)imageFileNameType);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
bool scale9EnableExist = DICTOOL->checkObjectExist_json(options, P_Scale9Enable);
|
bool scale9EnableExist = DICTOOL->checkObjectExist_json(options, P_Scale9Enable);
|
||||||
|
|
Loading…
Reference in New Issue