If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
-
johnjones
- Posts: 5
- Joined: Sun Sep 05, 2004 1:12 am
Post
by johnjones »
How do you change font size and font color in guienv?
-
brc-not-logged
Post
by brc-not-logged »
Use the Irrlicht font tool in the /tools/ directory in the 0.6 zip distrib. Then use the loadFont function in guienv and load your created bmp

-
johnjones
- Posts: 5
- Joined: Sun Sep 05, 2004 1:12 am
Post
by johnjones »
Thanks. That works for the font size, but what about color? Do I have to change the color in the bitmaps?
-
bal
- Posts: 829
- Joined: Fri Jun 18, 2004 5:19 pm
- Location: Geluwe, Belgium
Post
by bal »
Code: Select all
gui_env->getSkin()->setColor(irr::gui::EGDC_BUTTON_TEXT, irr::video::SColor(150,255,255,255));
where the last SColor is your color value. This sets the color for all gui text. To change it for one gui item only use
Code: Select all
gui_item->setOverrideColor(irr::video::SColor(255,255,255,255);