ko
ko copied to clipboard
Description needs to get added to UIImageTooltipDlg.cpp
Search before asking
- [X] I searched the issues and found no similar issues.
Description
m_pStr[iIndex]->SetStyle(UI_STR_TYPE_HALIGN, UISTYLE_STRING_ALIGNCENTER); sprintf(szBuff, spItem->pItemBasic->szRemark.c_str());
Description to unique, scrolls, stackable, quest items are missing in UIImageTooltipDlg.cpp I once added a check here once to see if the szRemark string had a size bigger than 0-1 then did index++. But since we want to stick to official behavior I will leave this to someone else.
Use case
Implement It's giving me ebola
Are you willing to work on and submit a PR to address the issue?
- [x] Yes I am willing to submit a PR!
if (!spItem->pItemBasic->szRemark.empty()) { // szRemark is not empty, proceed with setting it m_pStr[iIndex]->SetStyle(UI_STR_TYPE_HALIGN, UISTYLE_STRING_ALIGNCENTER); sprintf(szBuff, spItem->pItemBasic->szRemark.c_str()); m_pstdstr[iIndex] = szBuff; iIndex++; }