Update of /cvsroot/wpdev/wolfpack/network
In directory sc8-pr-cvs1:/tmp/cvs-serv23467/network
Modified Files:
uosocket.cpp
Log Message:
Fixed some tooltip bugs.
Index: uosocket.cpp
===================================================================
RCS file: /cvsroot/wpdev/wolfpack/network/uosocket.cpp,v
retrieving revision 1.289
retrieving revision 1.290
diff -C2 -d -r1.289 -r1.290
*** uosocket.cpp 14 Sep 2003 16:09:01 -0000 1.289
--- uosocket.cpp 14 Sep 2003 16:31:48 -0000 1.290
***************
*** 1029,1034 ****
if( !pItem->onShowTooltip( this->player(), &tooltips ) ) // just for test if object haven't tooltip
{
! if( pItem->name().isNull() )
! tooltips.addLine( 0xF9060 + pItem->id(), "" );
else
tooltips.addLine( 0x1005bd, " \t" + pItem->name() + "\t " );
--- 1029,1039 ----
if( !pItem->onShowTooltip( this->player(), &tooltips ) ) // just for test if object haven't tooltip
{
! if( pItem->name().isNull() || pItem->name().isEmpty() )
! {
! if( pItem->amount() > 1 )
! tooltips.addLine( 0x1005bd, " \t#" + QString::number( 0xF9060 + pItem->id() ) + "\t: " + QString::number( pItem->amount() ) );
! else
! tooltips.addLine( 0xF9060 + pItem->id(), "" );
! }
else
tooltips.addLine( 0x1005bd, " \t" + pItem->name() + "\t " );
***************
*** 1591,1595 ****
--- 1596,1606 ----
for( P_ITEM pItem = tooltipItems.first(); pItem; pItem = tooltipItems.next() )
+ {
pItem->sendTooltip( this );
+
+ #if defined( _DEBUG )
+ log( QString( "Sending Tooltip for 0x%1 (%2).\n" ).arg( pItem->serial(), 0, 16 ).arg( pItem->name() ) );
+ #endif
+ }
}
}
|