mirror of
https://github.com/minetest/minetest.git
synced 2024-11-23 16:13:46 +01:00
parent
ee63b94f2c
commit
8d68b2cd21
@ -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…
Reference in New Issue
Block a user