|
|
|
@ -37,6 +37,18 @@ REGISTER_UI_CLASS(CViewBitmap)
|
|
|
|
|
namespace NLGUI
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
CViewBitmap::~CViewBitmap()
|
|
|
|
|
{
|
|
|
|
|
if (_HtmlDownload)
|
|
|
|
|
{
|
|
|
|
|
CGroupHTML *groupHtml = dynamic_cast<CGroupHTML*>(CWidgetManager::getInstance()->getElementFromId("ui:interface:webig:content:html"));
|
|
|
|
|
if (groupHtml) {
|
|
|
|
|
_HtmlDownload = false;
|
|
|
|
|
groupHtml->removeImageDownload(dynamic_cast<CViewBase*>(this));
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
std::string CViewBitmap::getProperty( const std::string &name ) const
|
|
|
|
|
{
|
|
|
|
|
if( name == "color" )
|
|
|
|
@ -461,6 +473,7 @@ namespace NLGUI
|
|
|
|
|
if (!CFile::fileExists(localname))
|
|
|
|
|
localname = "web_del.tga";
|
|
|
|
|
_TextureId.setTexture (localname.c_str(), _TxtOffsetX, _TxtOffsetY, _TxtWidth, _TxtHeight, false);
|
|
|
|
|
_HtmlDownload = true;
|
|
|
|
|
groupHtml->addImageDownload(TxName, dynamic_cast<CViewBase*>(this));
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|