comparison orpg/main.py @ 96:65c1604e7949 alpha

Traipse Alpha 'OpenRPG' {090924-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: 00: Update forwards to the 090909-02 Server code that now works. New default Lobby Map, designed for Traipse. Feel free to change it. Updates to Server GUI: * Admin can Ban from Backend. * Prework to modify Ban List in back end. * Server GUI finds your Lobby Name * New users default as Lurker unless a Role is set New Addition to Chat Die Roll commands. Math Ordering. Ex. [(X+Y)dZ]. Currently does pairs only, no nesting either. Cleaner TraipseSuiteAttention portability and clean up in Main (Beta!)
author sirebral
date Thu, 24 Sep 2009 02:05:08 -0500
parents af6bf998f425
children 95b5281e8d34
comparison
equal deleted inserted replaced
95:af6bf998f425 96:65c1604e7949
275 def TraipseSuiteWarn(self, menuitem): 275 def TraipseSuiteWarn(self, menuitem):
276 ### Beta ### Allows for the reuse of the 'Attention' menu. 276 ### Beta ### Allows for the reuse of the 'Attention' menu.
277 ### component.get('frame').TraipseSuiteWarn('item') ### Portable 277 ### component.get('frame').TraipseSuiteWarn('item') ### Portable
278 self.mainmenu.Replace(8, self.traipseSuite, '&Traipse Suite!') 278 self.mainmenu.Replace(8, self.traipseSuite, '&Traipse Suite!')
279 if menuitem == 'debug': 279 if menuitem == 'debug':
280 self.debugConsole.SetBitmap(wx.Bitmap(dir_struct["icon"] + 'spotlight.png')) 280 if self.debugger.IsShown() == True:
281 self.mainmenu.Replace(8, self.traipseSuite, '&Traipse Suite')
282 else:
283 self.debugConsole.SetBitmap(wx.Bitmap(dir_struct["icon"] + 'spotlight.png'))
284 self.traipseSuite.RemoveItem(self.debugConsole)
285 self.traipseSuite.AppendItem(self.debugConsole)
286
287 def TraipseSuiteWarnCleanup(self, menuitem):
288 ### Beta ### Allows for portable cleanup of the 'Attention' menu.
289 ### component.get('frame').TraipseSuiteWarnCleanup('item') ### Portable
290 self.mainmenu.Replace(8, self.traipseSuite, '&Traipse Suite')
291 if menuitem == 'debug':
281 self.traipseSuite.RemoveItem(self.debugConsole) 292 self.traipseSuite.RemoveItem(self.debugConsole)
293 self.debugConsole.SetBitmap(wx.Bitmap(dir_struct["icon"] + 'clear.gif'))
282 self.traipseSuite.AppendItem(self.debugConsole) 294 self.traipseSuite.AppendItem(self.debugConsole)
283 295
284 296
285 ################################# 297 #################################
286 ## All Menu Events 298 ## All Menu Events
481 if self.updateMana.IsShown() == True: self.updateMana.Hide() 493 if self.updateMana.IsShown() == True: self.updateMana.Hide()
482 else: self.updateMana.Show() 494 else: self.updateMana.Show()
483 495
484 @debugging 496 @debugging
485 def OnMB_DebugConsole(self, evt): 497 def OnMB_DebugConsole(self, evt):
486 ## Alpha ## 498 self.TraipseSuiteWarnCleanup('debug') ### Beta ###
487 self.traipseSuite.RemoveItem(self.debugConsole)
488 self.debugConsole.SetBitmap(wx.Bitmap(dir_struct["icon"] + 'clear.gif'))
489 self.traipseSuite.AppendItem(self.debugConsole)
490 self.mainmenu.Replace(8, self.traipseSuite, '&Traipse Suite')
491 ###########
492 if self.debugger.IsShown() == True: self.debugger.Hide() 499 if self.debugger.IsShown() == True: self.debugger.Hide()
493 else: self.debugger.Show() 500 else: self.debugger.Show()
494 501
495 @debugging 502 @debugging
496 def OnMB_ToolsLoggingLevelDebug(self): 503 def OnMB_ToolsLoggingLevelDebug(self):
605 wx.AboutBox(info) 612 wx.AboutBox(info)
606 613
607 @debugging 614 @debugging
608 def OnMB_HelpOnlineUserGuide(self): 615 def OnMB_HelpOnlineUserGuide(self):
609 wb = webbrowser.get() 616 wb = webbrowser.get()
610 wb.open("https://www.assembla.com/wiki/show/traipse/User_Manual") 617 wb.open("http://www.assembla.com/wiki/show/traipse/User_Manual")
611 618
612 @debugging 619 @debugging
613 def OnMB_HelpChangeLog(self): 620 def OnMB_HelpChangeLog(self):
614 wb = webbrowser.get() 621 wb = webbrowser.get()
615 wb.open("http://www.assembla.com/spaces/milestones/index/traipse_dev?spaces_tool_id=Milestones") 622 wb.open("http://www.assembla.com/spaces/milestones/index/traipse?spaces_tool_id=Milestones")
616 623
617 @debugging 624 @debugging
618 def OnMB_HelpReportaBug(self): 625 def OnMB_HelpReportaBug(self):
619 wb = webbrowser.get() 626 wb = webbrowser.get()
620 wb.open("http://www.assembla.com/spaces/tickets/index/traipse_dev?spaces_tool_id=Tickets") 627 wb.open("http://www.assembla.com/spaces/tickets/index/traipse_dev?spaces_tool_id=Tickets")