07-15-2022, 03:17 PM
6 hours ago, Andrein95 said:
Hi, could you share the fix applied on november source on UITool poject? I'm rellay curious, maybe ill solve also my issue
There is no great science, just:
// NICOLASG MARK (FIX UICheck attributes)
COLOR col;
pElement->SetAttribute("color_on", ConvertColorToString(pUI->GetTextColor((UICheckBtnState)0), strTmp));
pElement->SetAttribute("color_off", ConvertColorToString(pUI->GetTextColor((UICheckBtnState)1), strTmp));
//COLOR col;
//TiXmlElement* pChildEle = new TiXmlElement("color");
std:
tring strAtt[UCBS_TOTAL] = {"none", "check", "none_disable", "check_disable"};//for (int i = 0; i < UCBS_TOTAL; ++i)
//{
// col = pUI->GetTextColor((UICheckBtnState)i);
// pChildEle->SetAttribute(strAtt[i].c_str(), ConvertColorToString(col, strTmp));
//}
//pElement->LinkEndChild(pChildEle);
// NICOLASG MARK END

