Formatting popup checkbox text

LyTning94

Dragonborn
Joined
Nov 10, 2010
Messages
397
Location
Skyrim
I have a popup which displays each unit's information as checkbox text like this:

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&#61505;, 1&#61505;, 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.
 
It is possible that formatting is only enabled in the popup "body string" and title.

Yeah, that's probably the case. I'm assuming there's no way to change this (in the DLL at least)???
 
Back
Top Bottom