+ struct TooltipSpec {
+ TooltipSpec()
+ {
+ }
+ TooltipSpec(std::string a_tooltip, irr::video::SColor a_bgcolor,
+ irr::video::SColor a_color):
+ bgcolor(a_bgcolor),
+ color(a_color)
+ {
+ //tooltip = unescape_enriched(utf8_to_wide(a_tooltip));
+ tooltip = utf8_to_wide(a_tooltip);
+ }
+ std::wstring tooltip;
+ irr::video::SColor bgcolor;
+ irr::video::SColor color;
+ };
+
+ struct StaticTextSpec {
+ StaticTextSpec():
+ parent_button(NULL)
+ {
+ }
+ StaticTextSpec(const std::wstring &a_text,
+ const core::rect<s32> &a_rect):
+ rect(a_rect),
+ parent_button(NULL)
+ {
+ //text = unescape_enriched(a_text);
+ text = a_text;
+ }
+ StaticTextSpec(const std::wstring &a_text,
+ const core::rect<s32> &a_rect,
+ gui::IGUIButton *a_parent_button):
+ rect(a_rect),
+ parent_button(a_parent_button)
+ {
+ //text = unescape_enriched(a_text);
+ text = a_text;
+ }
+ std::wstring text;
+ core::rect<s32> rect;
+ gui::IGUIButton *parent_button;
+ };
+