diff --git a/nel/include/nel/gui/group_html.h b/nel/include/nel/gui/group_html.h index c94bec024..4315d8059 100644 --- a/nel/include/nel/gui/group_html.h +++ b/nel/include/nel/gui/group_html.h @@ -30,6 +30,7 @@ #include "nel/gui/html_element.h" #include "nel/gui/html_parser.h" #include "nel/gui/css_style.h" +#include "nel/gui/css_background_renderer.h" // forward declaration typedef void CURLM; @@ -148,6 +149,7 @@ namespace NLGUI // add image download (used by view_bitmap.cpp to load web images) ICurlDownloadCB *addImageDownload(const std::string &url, CViewBase *img, const CStyleParams &style = CStyleParams(), const TImageType type = NormalImage, const std::string &placeholder = "web_del.tga"); + ICurlDownloadCB *addTextureDownload(const std::string &url, sint32 &texId, CViewBase *view); void removeImageDownload(ICurlDownloadCB *handle, CViewBase *img); std::string localImageName(const std::string &url); @@ -178,6 +180,7 @@ namespace NLGUI std::string DefaultRadioButtonBitmapNormal; std::string DefaultRadioButtonBitmapPushed; std::string DefaultRadioButtonBitmapOver; + // TODO: remove from interface xml and code std::string DefaultBackgroundBitmapView; struct TFormField { @@ -342,6 +345,9 @@ namespace NLGUI const std::string &overBitmap, const char *actionHandler, const char *actionHandlerParams, const std::string &tooltip, const CStyleParams &style = CStyleParams()); + // Set the background color + void setupBackground(CSSBackgroundRenderer *bg); + // Set the background color void setBackgroundColor (const NLMISC::CRGBA &bgcolor); @@ -381,6 +387,10 @@ namespace NLGUI //