Code: Select all
void guiClass::drawChat() {
chatHist = gui->addEditBox(L"", rect<s32>(20 ,700 ,300 ,990), true, 0 ,CHAT_HIST_BOX);
chatHist->setMultiLine(true);
chatHist->setAutoScroll(true);
chatHist->setEnabled(false);
chatHist->setWordWrap(true);
video::SColor col;
col.setBlue(30);
col.setRed(30);
col.setGreen(255);
col.setAlpha(20);
// this should work but it does not
chatHist->setOverrideColor(col);
// this should not even be needed since it's included in the previous function
chatHist->enableOverrideColor(true);
// it works if i comment out this, but then it's the whole gui that changes
//for (u32 i = 0; i < EGDC_COUNT; ++i) {
// gui->getSkin()->setColor((EGUI_DEFAULT_COLOR)i, col);
//}
chatEdit = gui->addEditBox(L"", rect<s32>(20 ,1000 ,300 ,1020), true, 0 ,CHAT_EDIT_BOX);
}
Many thanks for your time!