Mercurial > traipse_dev
comparison orpg/gametree/nodehandlers/core.py @ 243:3bbfd84619c0 beta
Traipse Beta 'OpenRPG' {101018-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 (Closing/Closed)
New Features:
New to Map, can re-order Grid, Miniatures, and Whiteboard layer draw order
New to Server GUI, can now clear log
New Earthdawn Dieroller
New IronClaw roller, sheet, and image
Updates:
Update to Warhammer PC Sheet. Rollers set as macros. Should work with little maintanence.
Update to Browser Server window. Display rooms with ' " & cleaner
Update to Server. Handles ' " & cleaner
Update to Dieroller. Cleaner, more effecient expression system
Update to Hidden Die plugin, allows for non standard dice rolls
Fixes:
Fix to InterParse that was causing an Infernal Loop with Namespace Internal
Fix to XML data, removed old Minidom and switched to Element Tree
Fix to Server that was causing eternal attempt to find a Server ID, in Register Rooms thread
Fix to metaservers.xml file not being created
Fix to Single and Double quotes in Whiteboard text
Fix to Background images not showing when using the Image Server
Fix to Duplicate chat names appearing
Fix to Server GUI's logging output
Fix to FNB.COLORFUL_TABS bug
Fix to Gametree for XSLT Sheets
Fix to Gametree for locating gametree files
Fix to Send to Chat from Gametree
Fix to Gametree, renaming and remapping operates correctly
author | sirebral |
---|---|
date | Mon, 18 Oct 2010 23:48:49 -0500 |
parents | 72e0cce81a47 |
children |
comparison
equal
deleted
inserted
replaced
242:72e0cce81a47 | 243:3bbfd84619c0 |
---|---|
255 else: parent_xml = self.tree.GetPyData(parent_node).xml | 255 else: parent_xml = self.tree.GetPyData(parent_node).xml |
256 parent_xml.remove(self.xml) | 256 parent_xml.remove(self.xml) |
257 self.tree.Delete(self.mytree_node) | 257 self.tree.Delete(self.mytree_node) |
258 return self.xml | 258 return self.xml |
259 | 259 |
260 def rename(self,name): | 260 def rename(self, name): |
261 if len(name): | 261 if len(name): |
262 self.tree.SetItemText(self.mytree_node,name) | 262 self.tree.SetItemText(self.mytree_node, name) |
263 old_name = self.xml.get('name') | |
263 self.xml.set('name', name) | 264 self.xml.set('name', name) |
265 family_tree = self.tree.get_tree_map(self.mytree_node) | |
266 family_tree.reverse() | |
267 self.remap_node(self.mytree_node) | |
268 if self.tree.tree_map.has_key(old_name): | |
269 del self.tree.tree_map[old_name] | |
270 self.tree.tree_map[self.xml.get('name')] = {} | |
271 self.tree.tree_map[self.xml.get('name')]['node'] = self.xml | |
272 | |
273 def remap_node(self, xml_root): | |
274 child, cookie = self.tree.GetFirstChild(xml_root) | |
275 while child.IsOk(): | |
276 family_tree = self.tree.get_tree_map(child) | |
277 family_tree.reverse(); family_tree.pop() | |
278 map_str = '::'.join(family_tree) | |
279 self.tree.GetPyData(child).xml.set('map', map_str) | |
280 self.remap_node(child) | |
281 child, cookie = self.tree.GetNextChild(xml_root, cookie) | |
264 | 282 |
265 def change_icon(self,icon): | 283 def change_icon(self,icon): |
266 self.xml.set("icon",icon) | 284 self.xml.set("icon",icon) |
267 self.tree.SetItemImage(self.mytree_node, self.tree.icons[icon]) | 285 self.tree.SetItemImage(self.mytree_node, self.tree.icons[icon]) |
268 self.tree.SetItemImage(self.mytree_node, self.tree.icons[icon], wx.TreeItemIcon_Selected) | 286 self.tree.SetItemImage(self.mytree_node, self.tree.icons[icon], wx.TreeItemIcon_Selected) |
343 if ord(c) < 128: u_txt += c | 361 if ord(c) < 128: u_txt += c |
344 else: bad_txt_found = 1 | 362 else: bad_txt_found = 1 |
345 if bad_txt_found: | 363 if bad_txt_found: |
346 wx.MessageBox("Some non 7-bit ASCII characters found and stripped","Warning!") | 364 wx.MessageBox("Some non 7-bit ASCII characters found and stripped","Warning!") |
347 txt = u_txt | 365 txt = u_txt |
348 print txt, self.handler, self.handler.xml | 366 #print txt, self.handler, self.handler.xml |
349 self.handler.text._set_nodeValue(txt) | 367 self.handler.text._set_nodeValue(txt) |
350 | 368 |
351 | 369 |
352 | 370 |
353 ########################## | 371 ########################## |