Mercurial > traipse_dev
comparison orpg/networking/mplay_server_gui.py @ 218:b8091ede042a alpha
Traipse Alpha 'OpenRPG' {100430-01}
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
New Namespace Internal is context sensitive, always!
New Namespace External is 'as narrow as you make it'
New Namespace FutureCheck helps ensure you don't receive an incorrect node
New PluginDB access for URL2Link plugin
New to Forms, they now show their content in Design Mode
New to Update Manager, checks Repo for updates on software start
New to Mini Lin node, change title in design mode
New to Game Tree, never lose a node, appends a number to the end of corrupted trees
New to Server GUI, Traipse Suite's Debug Console
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
Fix to Backgrounds not loading through remote loader
Fix to Node name errors
Fix to rolling dice in chat Whispers
Fix to Splitters Sizing issues
Fix to URL2Link plugin, modified regex compilation should remove memory leak
Fix to mapy.py, a roll back due to zoomed grid issues
Fix to whiteboard_handler, Circles work by you clicking the center of the circle
Fix to Servers parse_incoming_dom which was outdated and did not respect XML
Fix to a broken link in the server welcome message
Fix to InterParse and logger requiring traceback
Fix to Update Manager Status Bar
Fix to failed image and erroneous pop up
Fix to Mini Lib node that was preventing use
Fix to plugins that parce dice but did not call InterParse
Fix to nodes for name changing by double click
Fix to Game Tree, node ordering on drag and drop corrected
Fix to Game Tree, corrupted error message was not showing
author | sirebral |
---|---|
date | Fri, 30 Apr 2010 11:37:37 -0500 |
parents | b633f4c64aae |
children | 29cf1a17ca16 |
comparison
equal
deleted
inserted
replaced
215:50af54dbd6a6 | 218:b8091ede042a |
---|---|
19 from meta_server_lib import post_server_data, remove_server | 19 from meta_server_lib import post_server_data, remove_server |
20 from mplay_server import mplay_server, server | 20 from mplay_server import mplay_server, server |
21 | 21 |
22 from xml.dom import minidom | 22 from xml.dom import minidom |
23 from orpg.orpgCore import component | 23 from orpg.orpgCore import component |
24 from orpg.tools.orpg_log import debug | 24 from orpg.tools.orpg_log import debug, DebugConsole |
25 from orpg.tools.orpg_settings import settings | 25 from orpg.tools.orpg_settings import settings |
26 | 26 |
27 from xml.etree.ElementTree import ElementTree, Element, iselement | 27 from xml.etree.ElementTree import ElementTree, Element, iselement |
28 from xml.etree.ElementTree import fromstring, tostring, parse | 28 from xml.etree.ElementTree import fromstring, tostring, parse |
29 | 29 |
382 cb["data_sent"] = self.OnDataSent | 382 cb["data_sent"] = self.OnDataSent |
383 cb["create_group"] = self.OnCreateGroup | 383 cb["create_group"] = self.OnCreateGroup |
384 cb["delete_group"] = self.OnDeleteGroup | 384 cb["delete_group"] = self.OnDeleteGroup |
385 cb["join_group"] = self.OnJoinGroup | 385 cb["join_group"] = self.OnJoinGroup |
386 cb['update_group'] = self.OnUpdateGroup | 386 cb['update_group'] = self.OnUpdateGroup |
387 cb['exception'] = self.OnException | |
387 cb["role"] = self.OnSetRole | 388 cb["role"] = self.OnSetRole |
388 self.callbacks = cb | 389 self.callbacks = cb |
389 | 390 |
390 # Misc. | 391 # Misc. |
391 self.conf = ServerConfig(self) | 392 self.conf = ServerConfig(self) |
437 self.Bind(wx.EVT_MENU, self.PingPlayers, id=7) | 438 self.Bind(wx.EVT_MENU, self.PingPlayers, id=7) |
438 self.Bind(wx.EVT_MENU, self.StopPingPlayers, id=8) | 439 self.Bind(wx.EVT_MENU, self.StopPingPlayers, id=8) |
439 self.Bind(wx.EVT_MENU, self.ConfigPingInterval, id=9) | 440 self.Bind(wx.EVT_MENU, self.ConfigPingInterval, id=9) |
440 self.Bind(wx.EVT_MENU, self.LogToggle, id=10) | 441 self.Bind(wx.EVT_MENU, self.LogToggle, id=10) |
441 self.mainMenu.Append( menu, '&Configuration') | 442 self.mainMenu.Append( menu, '&Configuration') |
443 | |
444 # Traipse Suite of Additions. | |
445 self.traipseSuite = wx.Menu() | |
446 self.debugger = DebugConsole(self) | |
447 self.mainMenu.Insert(3, self.traipseSuite, "&Traipse Suite") | |
448 | |
449 #Debugger Console | |
450 self.debugConsole = wx.MenuItem(self.traipseSuite, -1, "Debug Console", "Debug Console") | |
451 self.Bind(wx.EVT_MENU, self.OnMB_DebugConsole, self.debugConsole) | |
452 self.traipseSuite.AppendItem(self.debugConsole) | |
453 | |
442 self.SetMenuBar(self.mainMenu) | 454 self.SetMenuBar(self.mainMenu) |
443 | 455 |
444 self.mainMenu.Enable(2, False) | 456 self.mainMenu.Enable(2, False) |
445 self.mainMenu.Enable(4, False) | 457 self.mainMenu.Enable(4, False) |
446 self.mainMenu.Enable(5, False) | 458 self.mainMenu.Enable(5, False) |
454 self.mainMenu.Enable(11, False) | 466 self.mainMenu.Enable(11, False) |
455 self.mainMenu.Enable(14, False) | 467 self.mainMenu.Enable(14, False) |
456 self.mainMenu.Enable(12, False) | 468 self.mainMenu.Enable(12, False) |
457 self.mainMenu.Enable(13, False) | 469 self.mainMenu.Enable(13, False) |
458 self.mainMenu.Enable(15, False) | 470 self.mainMenu.Enable(15, False) |
471 | |
472 def OnException(self, error): | |
473 self.TraipseSuiteWarn('debug') | |
474 self.debugger.console.AppendText(".. " + str(error) +'\n') | |
475 | |
476 def OnMB_DebugConsole(self, evt): | |
477 self.TraipseSuiteWarnCleanup('debug') | |
478 if self.debugger.IsShown() == True: self.debugger.Hide() | |
479 else: self.debugger.Show() | |
480 | |
481 def TraipseSuiteWarn(self, menuitem): | |
482 print 'traipse warn' #logger.debug('traipse warn') | |
483 ### Allows for the reuse of the 'Attention' menu. | |
484 ### component.get('frame').TraipseSuiteWarn('item') ### Portable | |
485 self.mainMenu.Remove(3) | |
486 self.mainMenu.Insert(3, self.traipseSuite, "&Traipse Suite!") | |
487 if menuitem == 'debug': | |
488 if self.debugger.IsShown() == True: | |
489 self.mainMenu.Remove(3) | |
490 self.mainMenu.Insert(3, self.traipseSuite, "&Traipse Suite") | |
491 else: | |
492 self.debugConsole.SetBitmap(wx.Bitmap(dir_struct["icon"] + 'spotlight.png')) | |
493 self.traipseSuite.RemoveItem(self.debugConsole) | |
494 self.traipseSuite.AppendItem(self.debugConsole) | |
495 | |
496 def TraipseSuiteWarnCleanup(self, menuitem): | |
497 ### Allows for portable cleanup of the 'Attention' menu. | |
498 ### component.get('frame').TraipseSuiteWarnCleanup('item') ### Portable | |
499 self.mainMenu.Remove(3) | |
500 self.mainMenu.Insert(3, self.traipseSuite, "&Traipse Suite") | |
501 if menuitem == 'debug': | |
502 self.traipseSuite.RemoveItem(self.debugConsole) | |
503 self.debugConsole.SetBitmap(wx.Bitmap(dir_struct["icon"] + 'clear.gif')) | |
504 self.traipseSuite.AppendItem(self.debugConsole) | |
459 | 505 |
460 def build_body(self): | 506 def build_body(self): |
461 """ Create the ViewNotebook and logger. """ | 507 """ Create the ViewNotebook and logger. """ |
462 splitter = wx.SplitterWindow(self, -1, style=wx.NO_3D | wx.SP_3D) | 508 splitter = wx.SplitterWindow(self, -1, style=wx.NO_3D | wx.SP_3D) |
463 nb = wx.Notebook(splitter, -1) | 509 nb = wx.Notebook(splitter, -1) |