Skip to content

Commit

Permalink
tab fix
Browse files Browse the repository at this point in the history
  • Loading branch information
DragonSlayer62 committed Jan 25, 2025
1 parent b19cc9e commit 40df40b
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions source/gumps.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -670,20 +670,20 @@ void BuildAddMenuGump( CSocket *s, UI16 m )
{
// Draw a frame for the item to make it stand out a touch more.
if( s->ClientVerShort() <= CVS_70160 )
{
// Fallback for older clients that don't support buttontileart
toSend.addCommand( oldstrutil::format("resizepic %u %u %u %u %u", xOffset, yOffset, 0x53, 65, 100 ));
toSend.addCommand( oldstrutil::format("checkertrans %u %u %u %u", xOffset + 7, yOffset + 9, 52, 82 ));
toSend.addCommand( oldstrutil::format("tilepic %u %u %i", xOffset + 5, yOffset + 10, std::stoi(tag, nullptr, 0) ));
toSend.addCommand( oldstrutil::format("croppedtext %u %u %u %u %u %u", xOffset, yOffset + 65, 65, 20, 55, linenum++ ));
}
else
{
toSend.addCommand( oldstrutil::format( "checkertrans %u %u %u %u", xOffset + 7, yOffset + 9, 110, 110 ));
toSend.addCommand( oldstrutil::format( "buttontileart %u %u 0x0a9f 0x0aa1 %u %u %u %u %u %u %u", xOffset, yOffset, 1, 0, buttonnum, std::stoi( tag, nullptr, 0 ), 0, 25, 25 ));
toSend.addCommand( oldstrutil::format( "tooltip 1042971 @%s@", data.c_str() ));
toSend.addCommand( oldstrutil::format( "croppedtext %u %u %u %u %u %u", xOffset + 15, yOffset + 85, 100, 20, 50, linenum++ ));
}
{
// Fallback for older clients that don't support buttontileart
toSend.addCommand( oldstrutil::format("resizepic %u %u %u %u %u", xOffset, yOffset, 0x53, 65, 100 ));
toSend.addCommand( oldstrutil::format("checkertrans %u %u %u %u", xOffset + 7, yOffset + 9, 52, 82 ));
toSend.addCommand( oldstrutil::format("tilepic %u %u %i", xOffset + 5, yOffset + 10, std::stoi(tag, nullptr, 0) ));
toSend.addCommand( oldstrutil::format("croppedtext %u %u %u %u %u %u", xOffset, yOffset + 65, 65, 20, 55, linenum++ ));
}
else
{
toSend.addCommand( oldstrutil::format( "checkertrans %u %u %u %u", xOffset + 7, yOffset + 9, 110, 110 ));
toSend.addCommand( oldstrutil::format( "buttontileart %u %u 0x0a9f 0x0aa1 %u %u %u %u %u %u %u", xOffset, yOffset, 1, 0, buttonnum, std::stoi( tag, nullptr, 0 ), 0, 25, 25 ));
toSend.addCommand( oldstrutil::format( "tooltip 1042971 @%s@", data.c_str() ));
toSend.addCommand( oldstrutil::format( "croppedtext %u %u %u %u %u %u", xOffset + 15, yOffset + 85, 100, 20, 50, linenum++ ));
}
toSend.addText( data );
xOffset += XOFFSET;
if( xOffset > 640 )
Expand Down

0 comments on commit 40df40b

Please sign in to comment.