A vid: http://www.youtube.com/watch?v=c5muWiDzehE
Hopefully you all won't judge me too harshly for this one, but I can't figure it out and searched a bit for the answer. How
can I display the "/" aka forward slash character in a cegui widget (eg: static text)?
Also is there a way to force a re-draw of a widget? For example I have a list box with list box text items in it, they are color coded (eg: enemy is red and friendly is green) I want to sometimes change the color of the item if the status changes, so I call it up and set the color
Code: Select all
CEGUI::Listbox* listBox = static_cast<CEGUI::Listbox*>(CEGUI::WindowManager::getSingleton().getWindow("Tactical/Targets/Tabs/Planets/ListBox"));
CEGUI::ListboxTextItem* itemListbox =static_cast<CEGUI::ListboxTextItem*>(listBox->findItemWithText(name, NULL));
itemListbox->setTextColours(Library::getCEGUIFactionColor(faction));However it doesn't re-draw the widget and thus doesn't change the color until I click on the widget (listbox), I suppose I could just delete all items and re-add them with the proper color, but I'm hoping there is some easier way to trigger a redraw or update.
thank you
