comparison orpg/networking/gsclient.py @ 114:bd6ca89e4cbb alpha

Traipse Alpha 'OpenRPG' {091011-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: Adds Bookmarks (Alpha) with cool Smiley Star and Plus Symbol images! Changes made to the map for increased portability. SnowDog has changes planned in Core, though. Added an initial push to the BCG. Not much to see, just shows off how it is re-writing Main code. Fix to remote admin commands Minor fix to texted based server, works in /System/ folder Some Core changes to gametree to correctly disply Pretty Print, thanks David! Fix to Splitter Nodes not being created. Added images to Plugin Control panel for Autostart feature Fix to massive amounts of images loading; from Core {091011} 00: fix to gsclient so with_statement imports Added 'boot' command to remote admin Prep work in Pass tool for remote admin rankings and different passwords, ei, Server, Admin, Moderator, etc.
author sirebral
date Sun, 11 Oct 2009 16:38:54 -0500
parents 5eac6e0308df
children 0f18d16f3fe7
comparison
equal deleted inserted replaced
113:f91b70c46908 114:bd6ca89e4cbb
24 # $Id: gsclient.py,v 1.53 2007/10/25 21:49:34 digitalxero Exp $ 24 # $Id: gsclient.py,v 1.53 2007/10/25 21:49:34 digitalxero Exp $
25 # 25 #
26 # Description: The file contains code for the game server browser 26 # Description: The file contains code for the game server browser
27 # 27 #
28 28
29 from __future__ import with_statement
29 __version__ = "$Id: gsclient.py,v 1.53 2007/10/25 21:49:34 digitalxero Exp $" 30 __version__ = "$Id: gsclient.py,v 1.53 2007/10/25 21:49:34 digitalxero Exp $"
30 31
31 from orpg.dirpath import dir_struct 32 from orpg.dirpath import dir_struct
32 from orpg.orpg_windows import * 33 from orpg.orpg_windows import *
33 import meta_server_lib 34 import meta_server_lib
101 self.svrList = [] 102 self.svrList = []
102 self.build_ctrls() 103 self.build_ctrls()
103 self.bookmarks() 104 self.bookmarks()
104 self.refresh_server_list() 105 self.refresh_server_list()
105 self.refresh_room_list() 106 self.refresh_room_list()
106 self.build_bookmark_menu() ## Not yet implemented 107 self.build_bookmark_menu()
107 #self.refresh_server_list()
108 #self.refresh_room_list()
109 108
110 def build_ctrls(self): 109 def build_ctrls(self):
111 ## Section Sizers (with frame edges and text captions) 110 ## Section Sizers (with frame edges and text captions)
112 self.box_sizers = {} 111 self.box_sizers = {}
113 self.box_sizers["server"] = wx.StaticBox(self, -1, "Server") 112 self.box_sizers["server"] = wx.StaticBox(self, -1, "Server")
248 for server in self.bookmarks.findall('server'): 247 for server in self.bookmarks.findall('server'):
249 for svr in self.svrList: 248 for svr in self.svrList:
250 name = svr.name 249 name = svr.name
251 if server.get('name') == name: self.server_list.SetItemImage(x, 1) 250 if server.get('name') == name: self.server_list.SetItemImage(x, 1)
252 x += 1 251 x += 1
253 #self.server_list.SetItemImage( self.server_list.FindItem(0, server.get('name')), 1 )
254 item = wx.MenuItem(self.bookmarks_menu, wx.ID_ANY, 252 item = wx.MenuItem(self.bookmarks_menu, wx.ID_ANY,
255 server.get('name'), server.get('name')) 253 server.get('name'), server.get('name'))
256 open_rpg.get_component('frame').Bind(wx.EVT_MENU, 254 open_rpg.get_component('frame').Bind(wx.EVT_MENU,
257 self.on_bookmarks_menu, item) 255 self.on_bookmarks_menu, item)
258 self.bookmarks_menu.AppendItem(item) 256 self.bookmarks_menu.AppendItem(item)