I have a popup which displays each unit's information as checkbox text like this:
However, the unit's info displays unformatted in the popup; something like the following:
When I set the unit's info to the popup text like this:
it formats fine. Does anyone know why this may be occuring and/or how to fix it?
Thanks in advance.
Code:
gDLL->getInterfaceIFace()->popupCreateCheckBoxes(pPopup, 1, iCheckBoxes, WIDGET_GENERAL, POPUP_LAYOUT_LEFT);
szBuffer.clear();
GAMETEXT.setUnitHelp(szBuffer, pLoopUnit, true);
gDLL->getInterfaceIFace()->popupSetCheckBoxText(pPopup, 0, CvWString(szBuffer.getCString()), iCheckBoxes);
However, the unit's info displays unformatted in the popup; something like the following:
<color=255,255,0,255>Swordsman</color>, 6, 1, etc.
When I set the unit's info to the popup text like this:
Code:
gDLL->getInterfaceIFace()->popupCreateCheckBoxes(pPopup, 1, iCheckBoxes, WIDGET_GENERAL, POPUP_LAYOUT_LEFT);
szBuffer.clear();
GAMETEXT.setUnitHelp(szBuffer, pLoopUnit, true);
gDLL->getInterfaceIFace()->popupSetBodyString(pPopup, CvWString(szBuffer.getCString()));
it formats fine. Does anyone know why this may be occuring and/or how to fix it?
Thanks in advance.