How to set text color?
How to set text color?
I know is function ...addStaticText(), but how change StaticText black color to another? Any suggestions?
"Teach yourself DISCIPLINE."
Your sincerely,
Saulius Šunauskas
Your sincerely,
Saulius Šunauskas
Grr, just look at the damn examples.
In Techdemo source:
In Techdemo source:
Code: Select all
// set new font color
device->getGUIEnvironment()->getSkin()->setColor(gui::EGDC_BUTTON_TEXT,
video::SColor(255,100,100,100));
Thanks bal! I change text color now. If anyone is interesting here is my code:
gui::IGUIFont* font = device->getGUIEnvironment()->getFont("font.bmp");
if (font)
{
font->draw(L"some text",
core::rect<s32>(10, 10, 500, 500),
video::SColor(0, 225, 0, 0));
}
gui::IGUIFont* font = device->getGUIEnvironment()->getFont("font.bmp");
if (font)
{
font->draw(L"some text",
core::rect<s32>(10, 10, 500, 500),
video::SColor(0, 225, 0, 0));
}
"Teach yourself DISCIPLINE."
Your sincerely,
Saulius Šunauskas
Your sincerely,
Saulius Šunauskas