comparison orpg/mapper/fog_handler.py @ 18:97265586402b ornery-orc

Traipse 'OpenRPG' {090827-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: Update Manager is now in version 0.8. While not every button works, users can now browse the different revisions and their different changesets. The code has been refined some with feature from Core added to it. A Crash report is now created if the users software crashes. Update Manager has been moved to the Traipse Suite menu item, and a Debug Console as been added as well.
author sirebral
date Thu, 27 Aug 2009 01:04:43 -0500
parents 211ac836b6a0
children
comparison
equal deleted inserted replaced
17:265b987cce4f 18:97265586402b
69 self.main_menu.AppendItem(item) 69 self.main_menu.AppendItem(item)
70 70
71 def on_remove(self,evt): 71 def on_remove(self,evt):
72 session=self.canvas.frame.session 72 session=self.canvas.frame.session
73 if (session.my_role() != session.ROLE_GM): 73 if (session.my_role() != session.ROLE_GM):
74 open_rpg.get_component("chat").InfoPost("You must be a GM to use this feature") 74 component.get("chat").InfoPost("You must be a GM to use this feature")
75 return 75 return
76 self.canvas.layers['fog'].remove_fog() 76 self.canvas.layers['fog'].remove_fog()
77 self.canvas.Refresh(False) 77 self.canvas.Refresh(False)
78 78
79 def on_showall(self,evt): 79 def on_showall(self,evt):
80 session=self.canvas.frame.session 80 session=self.canvas.frame.session
81 if (session.my_role() != session.ROLE_GM): 81 if (session.my_role() != session.ROLE_GM):
82 open_rpg.get_component("chat").InfoPost("You must be a GM to use this feature") 82 component.get("chat").InfoPost("You must be a GM to use this feature")
83 return 83 return
84 foglayer = self.canvas.layers['fog'] 84 foglayer = self.canvas.layers['fog']
85 foglayer.showall() 85 foglayer.showall()
86 self.canvas.Refresh(False) 86 self.canvas.Refresh(False)
87 87
97 dlg.Destroy() 97 dlg.Destroy()
98 98
99 def on_hideall(self,evt): 99 def on_hideall(self,evt):
100 session=self.canvas.frame.session 100 session=self.canvas.frame.session
101 if (session.my_role() != session.ROLE_GM): 101 if (session.my_role() != session.ROLE_GM):
102 open_rpg.get_component("chat").InfoPost("You must be a GM to use this feature") 102 component.get("chat").InfoPost("You must be a GM to use this feature")
103 return 103 return
104 foglayer=self.canvas.layers['fog'] 104 foglayer=self.canvas.layers['fog']
105 foglayer.clear() 105 foglayer.clear()
106 self.canvas.Refresh(False) 106 self.canvas.Refresh(False)
107 107
108 def on_color(self,evt): 108 def on_color(self,evt):
109 session=self.canvas.frame.session 109 session=self.canvas.frame.session
110 if (session.my_role() != session.ROLE_GM): 110 if (session.my_role() != session.ROLE_GM):
111 open_rpg.get_component("chat").InfoPost("You must be a GM to use this feature") 111 component.get("chat").InfoPost("You must be a GM to use this feature")
112 return 112 return
113 data = wx.ColourData() 113 data = wx.ColourData()
114 data.SetChooseFull(True) 114 data.SetChooseFull(True)
115 data.SetColour(self.canvas.layers['fog'].color) 115 data.SetColour(self.canvas.layers['fog'].color)
116 dlg = wx.ColourDialog(self.canvas, data) 116 dlg = wx.ColourDialog(self.canvas, data)
156 156
157 def on_left_up(self,evt): 157 def on_left_up(self,evt):
158 if self.drawing == True: 158 if self.drawing == True:
159 session=self.canvas.frame.session 159 session=self.canvas.frame.session
160 if (session.my_role() != session.ROLE_GM): 160 if (session.my_role() != session.ROLE_GM):
161 open_rpg.get_component("chat").InfoPost("You must be a GM to use this feature") 161 component.get("chat").InfoPost("You must be a GM to use this feature")
162 else: 162 else:
163 # This code sets the mode to either new or del 163 # This code sets the mode to either new or del
164 # depending on the action to function with the updated createregen code. 164 # depending on the action to function with the updated createregen code.
165 if (self.fogshow.GetValue() == 1): 165 if (self.fogshow.GetValue() == 1):
166 showmode = 'new' 166 showmode = 'new'