mirror of
https://github.com/luanti-org/luanti.git
synced 2025-08-06 17:41:04 +00:00
parent
ee63b94f2c
commit
8d68b2cd21
1 changed files with 4 additions and 1 deletions
|
@ -274,7 +274,10 @@ inline void setStaticText(irr::gui::IGUIStaticText *static_text, const EnrichedS
|
||||||
|
|
||||||
inline void setStaticText(irr::gui::IGUIStaticText *static_text, const wchar_t *text)
|
inline void setStaticText(irr::gui::IGUIStaticText *static_text, const wchar_t *text)
|
||||||
{
|
{
|
||||||
setStaticText(static_text, EnrichedString(text, static_text->getOverrideColor()));
|
auto color = static_text->isOverrideColorEnabled()
|
||||||
|
? static_text->getOverrideColor()
|
||||||
|
: irr::video::SColor(255, 255, 255, 255);
|
||||||
|
setStaticText(static_text, EnrichedString(text, color));
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif // _IRR_COMPILE_WITH_GUI_
|
#endif // _IRR_COMPILE_WITH_GUI_
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue