comparison plugins/xxhiddendice.py @ 214:4dc11df853bf alpha

Traipse Alpha 'OpenRPG' {100429-0} 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 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
author sirebral
date Thu, 29 Apr 2010 23:33:53 -0500
parents b633f4c64aae
children 72e0cce81a47
comparison
equal deleted inserted replaced
211:f7e78e36de50 214:4dc11df853bf
1 import os, re, wx 1 import os, re, wx
2 import orpg.pluginhandler 2 import orpg.pluginhandler
3 from orpg.tools.InterParse import Parse
3 4
4 class Plugin(orpg.pluginhandler.PluginHandler): 5 class Plugin(orpg.pluginhandler.PluginHandler):
5 # Initialization subroutine. 6 # Initialization subroutine.
6 # 7 #
7 # !self : instance of self 8 # !self : instance of self
40 def pre_parse(self, text): 41 def pre_parse(self, text):
41 if self.toggle.IsChecked() == True: 42 if self.toggle.IsChecked() == True:
42 m = re.search(self.dicere, text) 43 m = re.search(self.dicere, text)
43 while m: 44 while m:
44 roll = "[" + m.group(1) + "]" 45 roll = "[" + m.group(1) + "]"
45 self.hiddenrolls += [self.chat.ParseDice(roll)] 46 self.hiddenrolls += [Parse.Dice(roll)]
46 text = text[:m.start()] + "(hidden roll)" + text[m.end():] 47 text = text[:m.start()] + "(hidden roll)" + text[m.end():]
47 m = re.search(self.dicere, text) 48 m = re.search(self.dicere, text)
48 return text 49 return text
49 50
50 def post_msg(self, text, myself): 51 def post_msg(self, text, myself):