Mercurial > traipse_dev
diff orpg/networking/gsclient.py @ 195:b633f4c64aae alpha
Traipse Alpha 'OpenRPG' {100219-00}
Traipse is a distribution of OpenRPG that is designed to be easy to setup and go. Traipse also makes it easy for
developers to work on code without fear of sacrifice. 'Ornery-Orc' continues the trend of 'Grumpy' and adds fixes to
the code. 'Ornery-Orc's main goal is to offer more advanced features and enhance the productivity of the user.
Update Summary (Patch-2)
New Features:
New Namespace method with two new syntaxes
Fixes:
Fix to Server GUI startup errors
Fix to Server GUI Rooms tab updating
Fix to Chat and Settings if non existant die roller is picked
Fix to Dieroller and .open() used with .vs(). Successes are correctly calculated
Fix to Alias Lib's Export to Tree, Open, Save features
Fix to alias node, now works properly
Fix to Splitter node, minor GUI cleanup
author | sirebral |
---|---|
date | Sat, 24 Apr 2010 08:37:20 -0500 |
parents | 06f10429eedc |
children | f6aca9a7370b |
line wrap: on
line diff
--- a/orpg/networking/gsclient.py Fri Jan 15 22:45:51 2010 -0600 +++ b/orpg/networking/gsclient.py Sat Apr 24 08:37:20 2010 -0500 @@ -21,13 +21,13 @@ # Author: Chris Davis # Maintainer: # Version: -# $Id: gsclient.py,v 1.53 2007/10/25 21:49:34 digitalxero Exp $ +# $Id: gsclient.py,v Traipse 'Ornery-Orc' prof.ebral Exp $ # # Description: The file contains code for the game server browser # from __future__ import with_statement -__version__ = "$Id: gsclient.py,v 1.53 2007/10/25 21:49:34 digitalxero Exp $" +__version__ = "$Id: gsclient.py,v Traipse 'Ornery-Orc' prof.ebral Exp $" import meta_server_lib import orpg.tools.rgbhex @@ -269,7 +269,6 @@ address = self.svrList[item].addy port = self.svrList[item].port self.server_list.SetItemImage(item, 1) - for server in self.bookmarks.findall('server'): if server.get('name') == name: self.bookmarks_menu.Remove( @@ -298,8 +297,8 @@ except: pass address = self.texts["address"].GetValue() if self.session.is_connected(): - if self.session.host_server == address : return #currently connected to address. Do nothing. - else: self.frame.kill_mplay_session() #address differs, disconnect. + if self.session.host_server == address : return + else: self.frame.kill_mplay_session() self.do_connect(address) def on_room_dbclick(self, evt=None): @@ -307,13 +306,11 @@ try: self.on_select(evt) except: pass group_id = str(self.room_list.GetItemData(self.cur_room_index)) - if self.NoGroups: self.NoGroups = False self.session.group_id = group_id self.on_server_dbclick() return - if self.cur_room_index >= 0: if self.cur_room_index != 0: self.set_lobbybutton(1); else: self.set_lobbybutton(0); @@ -345,7 +342,6 @@ def on_text(self, evt): id = evt.GetId() if (id == self.texts["address"].GetValue()) and (self.cur_server_index >= 0): - #print "ADDRESS id = ", id, "index = ", self.cur_server_index self.cur_server_index = -1 evt.Skip() @@ -526,17 +522,13 @@ self.texts["address"].SetValue("127.0.0.1:6774") self.serverNameSet = 1 else: pass - # Allow xml_dom to be collected except Exception, e: print "Server List not available." traceback.print_exc() - - + def failed_connection(self): if(self.cur_server_index >= 0): server_index = self.servers[self.cur_server_index] - # post_failed_connection will return a non-zero if the server - # was removed. If it was, refresh the display if(meta_server_lib.post_failed_connection(server_index.get('id'), meta=server_index.get('meta'), address=server_index.get('address'), port=server_index.get('port'))): @@ -613,11 +605,9 @@ msg = "%s is creating room \'%s.\'" % (self.session.name, name) self.session.send(msg) self.session.send_create_group(name, pwd, boot_pwd, minversion) - self.set_lobbybutton(1); #enable the Lobby quickbutton + self.set_lobbybutton(1); def on_size(self, evt): - # set column widths for room list - # set column widths for server list pass def colorize_group_list(self, groups):