Need to load image from SpriteFrameCache ( plist files ) with RichText::createWithXML function

Need to load image from SpriteFrameCache ( plist files ) with RichText::createWithXML function
0

Hi all,

I need a feature for RichText::createWithXML function regarding loading image !

Can we add attribute textureResType (local or plist ) in <img /> tag ?

Ex:

auto _richText = RichText::createWithXML("you should see an image here: <img src=‘cocosui/sliderballnormal.png’ textureResType=‘plist’ /> ");

And I found a bug in RichElementImage::create(…, ui::Widget::TextureResType::PLIST) function .

As you know , the image in PLIST file was not loaded. Can we fix it in V4 ?

Thanks !