comparison orpg/tools/aliaslib.py @ 27:51428d30c59e ornery-orc

Traipse 'OpenRPG' {091003-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 menu changes to draw attention to important updates, errors, or other events. Traipse URL is now included in the repos tab and is set as default. Fixes Copy for Windows and Linux (finally!!) users. Fixes incomplete update to Grid and List nodes. Fixes incomplete update to Chat Commands. Fixes problems with Remote Image Upload. Fixes Drop and Drag of Minis to Map. CherryPy can now use any image in the webfiles/ folder and sub-folders. CherryPy can now Drop and Drag Minis to the Map. Minor changes to Update Manager's GUI. Expert recommendation warning added to Revision Update. Step down compatibility with open_rpg & component added to orpgCore. Fixes CherryPit misspelling. Makes Traipse Suite 'Attention' item portable, and executes it on 'Critical' debug notices. Adds incomplete Shift + Enter to Text Entry, currently creates a 'Critical' warning. New default Lobby Map, designed for Traipse. Feel free to change it. Updates to Server GUI: * Admin can Ban from Backend. * Admin can Modify Ban List and Un Ban users. * Server GUI finds your Lobby Name * New users default as Lurker unless a Role is set Cleaner TraipseSuiteAttention portability and clean up in Main. Die Roll Commands addition from Core code allowing Math Ordering with ()'s New About Dialog. A more uniform About Dialog. Corrects image loading of duplicate images.
author sirebral
date Sat, 03 Oct 2009 18:49:37 -0500
parents 97265586402b
children ff154cf3350c
comparison
equal deleted inserted replaced
22:8b168989c344 27:51428d30c59e
323 players = self.session.get_players() 323 players = self.session.get_players()
324 if self.alias[1] != 'Default': 324 if self.alias[1] != 'Default':
325 defaultcolor = settings.get_setting("mytextcolor") 325 defaultcolor = settings.get_setting("mytextcolor")
326 settings.set_setting("mytextcolor", self.alias[1]) 326 settings.set_setting("mytextcolor", self.alias[1])
327 self.chat.set_colors() 327 self.chat.set_colors()
328 opts = [] 328 opts = []; idlist = []
329 myid = self.session.get_id() 329 myid = self.session.get_id()
330 for p in players: 330 for p in players:
331 if p[2] != myid: opts.append("(" + p[2] + ") " + self.chat.html_strip(p[0])) 331 if p[2] != myid: opts.append("(" + p[2] + ") " + self.chat.html_strip(p[0]))
332 if p[2] != myid: idlist.append(p[2])
332 dlg = orpgMultiCheckBoxDlg(self, opts, "Select Players:", "Whisper To", []) 333 dlg = orpgMultiCheckBoxDlg(self, opts, "Select Players:", "Whisper To", [])
333 sendto = [] 334 sendto = []
334 if dlg.ShowModal() == wx.ID_OK: 335 if dlg.ShowModal() == wx.ID_OK:
335 selections = dlg.get_selections() 336 selections = dlg.get_selections()
336 for s in selections: sendto.append(players[s][2]) 337 for s in selections: sendto.append(idlist[s])
337 line = self.textWnd.GetValue().replace("\n", "<br />") 338 line = self.textWnd.GetValue().replace("\n", "<br />")
338 if self.checkFilterText.IsChecked() and self.filter != self.chat.defaultFilterName: 339 if self.checkFilterText.IsChecked() and self.filter != self.chat.defaultFilterName:
339 for rule in self.filterRegEx: line = re.sub(rule[0], rule[1], line) 340 for rule in self.filterRegEx: line = re.sub(rule[0], rule[1], line)
340 if len(sendto): self.chat.whisper_to_players(line, sendto) 341 if len(sendto): self.chat.whisper_to_players(line, sendto)
341 if self.alias[1] != 'Default': 342 if self.alias[1] != 'Default':