Mercurial > traipse_dev
comparison orpg/mapper/whiteboard_handler.py @ 152:6081bdc2b8d5 beta
Traipse Beta 'OpenRPG' {091125-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 | Wed, 25 Nov 2009 06:16:35 -0600 |
parents | 449a8900f9ac |
children | dcae32e219f1 |
comparison
equal
deleted
inserted
replaced
150:6c5f46a5924b | 152:6081bdc2b8d5 |
---|---|
26 # Description: Whiteboard layer handler | 26 # Description: Whiteboard layer handler |
27 # | 27 # |
28 __version__ = "$Id: whiteboard_handler.py,v 1.37 2007/03/09 14:11:56 digitalxero Exp $" | 28 __version__ = "$Id: whiteboard_handler.py,v 1.37 2007/03/09 14:11:56 digitalxero Exp $" |
29 | 29 |
30 from base_handler import * | 30 from base_handler import * |
31 from math import floor | 31 from math import floor, sqrt |
32 from math import sqrt | |
33 | 32 |
34 class whiteboard_handler(base_layer_handler): | 33 class whiteboard_handler(base_layer_handler): |
35 def __init__(self, parent, id, canvas): | 34 def __init__(self, parent, id, canvas): |
36 self.drawing_mode = 'Freeform' | 35 self.drawing_mode = 'Freeform' |
37 self.line_string = "0,0;" | 36 self.line_string = "0,0;" |
335 elif self.drawing_mode == 'Circle': self.draw_temporary_circle(evt) | 334 elif self.drawing_mode == 'Circle': self.draw_temporary_circle(evt) |
336 | 335 |
337 # Added handling for double clicks within the map | 336 # Added handling for double clicks within the map |
338 # 05-09-2003 Snowdog | 337 # 05-09-2003 Snowdog |
339 def on_left_dclick(self, evt): | 338 def on_left_dclick(self, evt): |
340 if self.drawing_mode == 'Freeform': | 339 if self.drawing_mode == 'Freeform': pass #Freeform mode ignores the double click |
341 #Freeform mode ignores the double click | |
342 pass | |
343 elif self.drawing_mode == 'Polyline': self.polyline_last_point( evt ) | 340 elif self.drawing_mode == 'Polyline': self.polyline_last_point( evt ) |
344 elif self.drawing_mode == 'Text': pass | 341 elif self.drawing_mode == 'Text': pass |
345 elif self.drawing_mode == 'Circle' or self.drawing_mode == 'Cone': | 342 elif self.drawing_mode == 'Circle' or self.drawing_mode == 'Cone': |
346 self.canvas.layers['whiteboard'].del_temp_line(self.temp_circle) | 343 self.canvas.layers['whiteboard'].del_temp_line(self.temp_circle) |
347 #pointArray = self.temp_circle.line_string.split(";") | 344 #pointArray = self.temp_circle.line_string.split(";") |
571 session = self.canvas.frame.session | 568 session = self.canvas.frame.session |
572 if (session.my_role() != session.ROLE_GM) and (session.my_role()!=session.ROLE_PLAYER) and (session.use_roles()): | 569 if (session.my_role() != session.ROLE_GM) and (session.my_role()!=session.ROLE_PLAYER) and (session.use_roles()): |
573 component.get("chat").InfoPost("You must be either a player or GM to use this feature") | 570 component.get("chat").InfoPost("You must be either a player or GM to use this feature") |
574 self.canvas.Refresh(False) | 571 self.canvas.Refresh(False) |
575 return | 572 return |
576 #self.id +=1 | |
577 line = self.canvas.layers['whiteboard'].add_line(self.line_string,self.upperleft,self.lowerright) | 573 line = self.canvas.layers['whiteboard'].add_line(self.line_string,self.upperleft,self.lowerright) |
578 dc = self.create_dc() | 574 dc = self.create_dc() |
579 for m in range(30): | 575 for m in range(30): |
580 line.highlight() | 576 line.highlight() |
581 line.draw(self.wb,dc) | 577 line.draw(self.wb,dc) |