comparison orpg/mapper/whiteboard.py @ 140:e842a5f1b775 beta

Traipse Beta 'OpenRPG' {091123-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 (Beta) Added Bookmarks Fix to Remote Admin Commands Minor fix to text based Server Fix to Pretty Print, from Core Fix to Splitter Nodes not being created Fix to massive amounts of images loading, from Core Added 'boot' command to remote admin Added confirmation window for sent nodes Minor changes to allow for portability to an OpenSUSE linux OS Miniatures Layer pop up box allows users to turn off Mini labels, from FlexiRPG Zoom Mouse plugin added Images added to Plugin UI Switching to Element Tree Map efficiency, from FlexiRPG Added Status Bar to Update Manager default_manifest.xml renamed to default_upmana.xml Cleaner clode for saved repositories New TrueDebug Class in orpg_log (See documentation for usage) Mercurial's hgweb folder is ported to upmana Pretty important update that can help remove thousands of dead children from your gametree. Children, <forms />, <group_atts />, <horizontal />, <cols />, <rows />, <height />, etc... are all tags now. Check your gametree and look for dead children!! New Gametree Recursion method, mapping, and context sensitivity. !Infinite Loops return error instead of freezing the software! New Syntax added for custom PC sheets Tip of the Day added, from Core and community Fixed Whiteboard ID to prevent random line or text deleting. Modified ID's to prevent non updated clients from ruining the fix.
author sirebral
date Mon, 23 Nov 2009 03:36:26 -0600
parents 449a8900f9ac
children 6081bdc2b8d5
comparison
equal deleted inserted replaced
135:dcf4fbe09b70 140:e842a5f1b775
285 285
286 def rollback_serial(self): 286 def rollback_serial(self):
287 self.serial_number -= 1 287 self.serial_number -= 1
288 288
289 def add_line(self, line_string="", upperleft=cmpPoint(0,0), lowerright=cmpPoint(0,0), color="#000000", width=1): 289 def add_line(self, line_string="", upperleft=cmpPoint(0,0), lowerright=cmpPoint(0,0), color="#000000", width=1):
290 id = 'line-' + str(self.next_serial()) 290 id = 'line ' + str(self.next_serial())
291 line = WhiteboardLine(id, line_string, upperleft, lowerright, color=self.color, width=self.width) 291 line = WhiteboardLine(id, line_string, upperleft, lowerright, color=self.color, width=self.width)
292 self.lines.append(line) 292 self.lines.append(line)
293 xml_str = "<map><whiteboard>" 293 xml_str = "<map><whiteboard>"
294 xml_str += line.toxml("new") 294 xml_str += line.toxml("new")
295 xml_str += "</whiteboard></map>" 295 xml_str += "</whiteboard></map>"
385 385
386 def set_font(self, font): 386 def set_font(self, font):
387 self.font = font 387 self.font = font
388 388
389 def add_text(self, text_string, pos, style, pointsize, weight, color="#000000"): 389 def add_text(self, text_string, pos, style, pointsize, weight, color="#000000"):
390 id = 'text-' + str(self.next_serial()) 390 id = 'text ' + str(self.next_serial())
391 text = WhiteboardText(id,text_string, pos, style, pointsize, weight, color) 391 text = WhiteboardText(id,text_string, pos, style, pointsize, weight, color)
392 self.texts.append(text) 392 self.texts.append(text)
393 xml_str = "<map><whiteboard>" 393 xml_str = "<map><whiteboard>"
394 xml_str += text.toxml("new") 394 xml_str += text.toxml("new")
395 xml_str += "</whiteboard></map>" 395 xml_str += "</whiteboard></map>"
442 children = xml_dom._get_childNodes() 442 children = xml_dom._get_childNodes()
443 for l in children: 443 for l in children:
444 nodename = l._get_nodeName() 444 nodename = l._get_nodeName()
445 action = l.getAttribute("action") 445 action = l.getAttribute("action")
446 id = l.getAttribute('id') 446 id = l.getAttribute('id')
447 if self.serial_number < int(id[5:]): self.serial_number = int(id[5:])
447 if action == "del": 448 if action == "del":
448 if nodename == 'line': 449 if nodename == 'line':
449 line = self.get_line_by_id(id) 450 line = self.get_line_by_id(id)
450 if line != None: self.lines.remove(line) 451 if line != None: self.lines.remove(line)
451 elif nodename == 'text': 452 elif nodename == 'text':