ko icon indicating copy to clipboard operation
ko copied to clipboard

Description needs to get added to UIImageTooltipDlg.cpp

Open UTengine opened this issue 1 year ago • 1 comments

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.

image

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!

UTengine avatar Nov 14 '24 16:11 UTengine

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++; }

UTengine avatar Nov 14 '24 17:11 UTengine