• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

C++ GetName and add to the right

henkas

Well-Known Member
Joined
Jul 8, 2015
Messages
1,051
Solutions
5
Reaction score
62
Cant figure out how to achieve it but i want to make sure the icon is displayed to the right of the name because now it doesnt scale depending on the size of name because its hardcoded value .Anyone know how to make dynamic and place it depending on the name of person?
LUA:
        if (m_special != Otc::SpecialIconNone && m_pvpRankTexture) {
            Rect SpecialIconRect(backgroundRect.x() + 16.5 + 12 + 12, backgroundRect.y() - 19, m_pvpSpecialkTexture->getSize());
            g_drawQueue->addTexturedRect(SpecialIconNone, m_pvpSpecialTexture, Rect(0, 0, m_pvpSpecialTexture->getSize()));
        }
 
Back
Top