Update of /cvsroot/wpdev/xmlscripts/scripts/commands
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv27671/commands
Modified Files:
who.py
Log Message:
fixes
Index: who.py
===================================================================
RCS file: /cvsroot/wpdev/xmlscripts/scripts/commands/who.py,v
retrieving revision 1.12
retrieving revision 1.13
diff -C2 -d -r1.12 -r1.13
*** who.py 4 Oct 2004 20:05:49 -0000 1.12
--- who.py 4 Oct 2004 20:36:22 -0000 1.13
***************
*** 26,29 ****
--- 26,31 ----
def showWhoGump(player, page):
+ current_page = page
+
# Collect the current list of sockets first
wholist = []
***************
*** 73,77 ****
offset = 22
! for char in wholist[:10]:
gump.addButton( 20, 40 + offset, 0xFA5, 0xFA7, 2 + char.serial )
gump.addText( 54, 40 + offset, tr("%s [%s]") % ( char.name, char.account.name ), 0x834 )
--- 75,80 ----
offset = 22
! wholist = wholist[:10]
! for char in wholist:
gump.addButton( 20, 40 + offset, 0xFA5, 0xFA7, 2 + char.serial )
gump.addText( 54, 40 + offset, tr("%s [%s]") % ( char.name, char.account.name ), 0x834 )
***************
*** 79,83 ****
offset += 24
! gump.setArgs( [ page ] )
gump.setCallback( "commands.who.callbackWho" )
gump.send( player.socket )
--- 82,86 ----
offset += 24
! gump.setArgs( [ current_page ] )
gump.setCallback( "commands.who.callbackWho" )
gump.send( player.socket )
|