Mercurial > traipse_dev
comparison orpg/mapper/grid_handler.py @ 20:072ffc1d466f traipse_dev
2nd attempt. Still untested.
author | sirebral |
---|---|
date | Sat, 25 Jul 2009 19:23:25 -0500 |
parents | 78407d627cba |
children | c54768cffbd4 |
comparison
equal
deleted
inserted
replaced
19:78407d627cba | 20:072ffc1d466f |
---|---|
91 if (session.my_role() != session.ROLE_GM): | 91 if (session.my_role() != session.ROLE_GM): |
92 open_rpg.get_component("chat").InfoPost("You must be a GM to use this feature") | 92 open_rpg.get_component("chat").InfoPost("You must be a GM to use this feature") |
93 return | 93 return |
94 | 94 |
95 self.canvas.layers['grid'].set_grid(int(self.grid_size.GetValue()),self.grid_snap.GetValue(), | 95 self.canvas.layers['grid'].set_grid(int(self.grid_size.GetValue()),self.grid_snap.GetValue(), |
96 self.color_button.GetBackgroundColour(),self.grid_mode.GetSelection(),self.line_type.GetSelection(),float(self.grid_ratio.GetValue())) | 96 self.color_button.GetBackgroundColour(),self.grid_mode.GetSelection(), |
97 self.line_type.GetSelection(),float(self.grid_ratio.GetValue())) | |
97 self.update_info() | 98 self.update_info() |
98 self.canvas.send_map_data() | 99 self.canvas.send_map_data() |
99 self.canvas.Refresh() | 100 self.canvas.Refresh() |