Mercurial > traipse_dev
comparison orpg/mapper/whiteboard.py @ 163:565ab3d84430 alpha
Traipse Alpha 'OpenRPG' {091202-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 (Keeping up with Beta)
New Features:
Added Bookmarks
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
New TrueDebug Class in orpg_log (See documentation for usage)
Portable Mercurial
Tip of the Day added, from Core and community
New Reference Syntax added for custom PC sheets
New Child Reference for gametree
New Gametree Recursion method, mapping, context sensitivity, and
effeciency..
New Features node with bonus nodes and Node Referencing help added
Added 7th Sea die roller method; ie [7k3] =
[7d10.takeHighest(3).open(10)]
New 'Mythos' System die roller added
Added new vs. die roller method for WoD; ie [3v3] = [3d10.vs(3)].
Includes support for Mythos roller.
Fixes:
Fix to Text based Server
Fix to Remote Admin Commands
Fix to Pretty Print, from Core
Fix to Splitter Nodes not being created
Fix to massive amounts of images loading, from Core
Fix to Map from gametree not showing to all clients
Fix to gametree about menus
Fix to Password Manager check on startup
Fix to PC Sheets from tool nodes. They now use the tabber_panel
Fixed Whiteboard ID to prevent random line or text deleting.
Modified ID's to prevent non updated clients from ruining the fix.
default_manifest.xml renamed to default_upmana.xml
Fix to Update Manager; cleaner clode for saved repositories
Fixes made to Settings Panel and no reactive settings when Ok is
pressed.
author | sirebral |
---|---|
date | Wed, 02 Dec 2009 21:20:44 -0600 |
parents | 06f10429eedc |
children | b633f4c64aae 81d0bfd5e800 |
comparison
equal
deleted
inserted
replaced
161:a766e1cbcb7c | 163:565ab3d84430 |
---|---|
275 | 275 |
276 def rollback_serial(self): | 276 def rollback_serial(self): |
277 self.serial_number -= 1 | 277 self.serial_number -= 1 |
278 | 278 |
279 def add_line(self, line_string="", upperleft=cmpPoint(0,0), lowerright=cmpPoint(0,0), color="#000000", width=1): | 279 def add_line(self, line_string="", upperleft=cmpPoint(0,0), lowerright=cmpPoint(0,0), color="#000000", width=1): |
280 id = 'line ' + str(self.next_serial()) | 280 id = 'line-' + self.canvas.session.get_next_id() |
281 line = WhiteboardLine(id, line_string, upperleft, lowerright, color=self.color, width=self.width) | 281 line = WhiteboardLine(id, line_string, upperleft, lowerright, color=self.color, width=self.width) |
282 self.lines.append(line) | 282 self.lines.append(line) |
283 xml_str = "<map><whiteboard>" | 283 xml_str = "<map><whiteboard>" |
284 xml_str += line.toxml("new") | 284 xml_str += line.toxml("new") |
285 xml_str += "</whiteboard></map>" | 285 xml_str += "</whiteboard></map>" |
366 | 366 |
367 def set_font(self, font): | 367 def set_font(self, font): |
368 self.font = font | 368 self.font = font |
369 | 369 |
370 def add_text(self, text_string, pos, style, pointsize, weight, color="#000000"): | 370 def add_text(self, text_string, pos, style, pointsize, weight, color="#000000"): |
371 id = 'text ' + str(self.next_serial()) | 371 id = 'text-' + self.canvas.session.get_next_id() |
372 text = WhiteboardText(id,text_string, pos, style, pointsize, weight, color) | 372 text = WhiteboardText(id,text_string, pos, style, pointsize, weight, color) |
373 self.texts.append(text) | 373 self.texts.append(text) |
374 xml_str = "<map><whiteboard>" | 374 xml_str = "<map><whiteboard>" |
375 xml_str += text.toxml("new") | 375 xml_str += text.toxml("new") |
376 xml_str += "</whiteboard></map>" | 376 xml_str += "</whiteboard></map>" |
421 children = xml_dom._get_childNodes() | 421 children = xml_dom._get_childNodes() |
422 for l in children: | 422 for l in children: |
423 nodename = l._get_nodeName() | 423 nodename = l._get_nodeName() |
424 action = l.getAttribute("action") | 424 action = l.getAttribute("action") |
425 id = l.getAttribute('id') | 425 id = l.getAttribute('id') |
426 if self.serial_number < int(id[5:]): self.serial_number = int(id[5:]) | 426 try: |
427 if self.serial_number < int(id.split('-')[2]): self.serial_number = int(id.split('-')[2]) | |
428 except: pass | |
427 if action == "del": | 429 if action == "del": |
428 if nodename == 'line': | 430 if nodename == 'line': |
429 line = self.get_line_by_id(id) | 431 line = self.get_line_by_id(id) |
430 if line != None: self.lines.remove(line) | 432 if line != None: self.lines.remove(line) |
431 elif nodename == 'text': | 433 elif nodename == 'text': |
472 line = self.get_line_by_id(id) | 474 line = self.get_line_by_id(id) |
473 if line: line.takedom(l) | 475 if line: line.takedom(l) |
474 if nodename == "text": | 476 if nodename == "text": |
475 text = self.get_text_by_id(id) | 477 text = self.get_text_by_id(id) |
476 if text: text.takedom(l) | 478 if text: text.takedom(l) |
477 #self.canvas.send_map_data() | |
478 | 479 |
479 def add_temp_line(self, line_string): | 480 def add_temp_line(self, line_string): |
480 line = WhiteboardLine(0, line_string, wx.Point(0,0), wx.Point(0,0), | 481 line = WhiteboardLine(0, line_string, wx.Point(0,0), wx.Point(0,0), |
481 color=self.color, width=self.width) | 482 color=self.color, width=self.width) |
482 self.lines.append(line) | 483 self.lines.append(line) |