Add these lines in -->
In CGUIListBox.h:
Code: Select all
//! sets the text of a particular index to something new
virtual void setSelectedText(s32 id, const wchar_t* text); Code: Select all
//! sets the text of the selected item
void setSelectedText(s32 id, const wchar_t* text);Code: Select all
void CGUIListBox::setSelectedText(irr::s32 id, const wchar_t *new_text){
Items[id].text = new_text;
}===========
P.S My first change to irrlicht! Wooot!