Allow to set custom colored border through ScalableFonts
This commit is contained in:
parent
1b17879313
commit
b7b2a60eff
@ -56,11 +56,22 @@ void ScalableFont::setShadow(const irr::video::SColor &col)
|
|||||||
void ScalableFont::disableShadow()
|
void ScalableFont::disableShadow()
|
||||||
{
|
{
|
||||||
m_font_settings->setShadow(false);
|
m_font_settings->setShadow(false);
|
||||||
} // setShadow
|
} // disableShadow
|
||||||
// ----------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
||||||
void ScalableFont::setBlackBorder(bool enabled)
|
void ScalableFont::setBlackBorder(bool enabled)
|
||||||
{
|
{
|
||||||
m_font_settings->setBlackBorder(enabled);
|
m_font_settings->setBlackBorder(enabled);
|
||||||
|
} // setBlackBorder
|
||||||
|
// ----------------------------------------------------------------------------
|
||||||
|
void ScalableFont::setColoredBorder(const irr::video::SColor &col)
|
||||||
|
{
|
||||||
|
m_font_settings->setColoredBorder(true);
|
||||||
|
m_font_settings->setBorderColor(col);
|
||||||
|
} // setColoredBorder
|
||||||
|
// ----------------------------------------------------------------------------
|
||||||
|
void ScalableFont::disableColoredBorder()
|
||||||
|
{
|
||||||
|
m_font_settings->setColoredBorder(false);
|
||||||
} // setShadow
|
} // setShadow
|
||||||
|
|
||||||
// ----------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
||||||
|
@ -59,6 +59,10 @@ public:
|
|||||||
// ------------------------------------------------------------------------
|
// ------------------------------------------------------------------------
|
||||||
void setBlackBorder(bool enabled);
|
void setBlackBorder(bool enabled);
|
||||||
// ------------------------------------------------------------------------
|
// ------------------------------------------------------------------------
|
||||||
|
void setColoredBorder(const irr::video::SColor &col);
|
||||||
|
// ------------------------------------------------------------------------
|
||||||
|
void disableColoredBorder();
|
||||||
|
// ------------------------------------------------------------------------
|
||||||
void updateRTL();
|
void updateRTL();
|
||||||
// ------------------------------------------------------------------------
|
// ------------------------------------------------------------------------
|
||||||
void draw(const core::stringw& text, const core::rect<s32>& position,
|
void draw(const core::stringw& text, const core::rect<s32>& position,
|
||||||
|
Loading…
Reference in New Issue
Block a user