Changeset 411:ddff1f8668d5
- Timestamp:
- 09/07/13 10:38:51 (9 years ago)
- Branch:
- default
- Phase:
- public
- Rebase:
- 31656439663263303961373164373865353835383638346564356664366236303531323562656163
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
tools/area_editor.py
r407 r411 182 182 mouse_pos for p in pointlist] 183 183 pygame.draw.lines(self._surface, color, False, pointlist, 2) 184 elif len(polygon) > 1: 184 break 185 if len(polygon) > 1: 185 186 pointlist = [self.point_to_pygame(p) for p in polygon] 186 187 pygame.draw.lines(self._surface, color, False, pointlist, 2) 187 elif index == mouse_poly and mouse_pos:188 if index == mouse_poly and mouse_pos: 188 189 endpoint = self.fix_poly_angle(index, mouse_pos) 189 190 pygame.draw.line(self._surface, color, … … 594 595 # find the current point 595 596 self._move_point = self.level.find_vertex(corrected_pos) 597 elif self.cur_poly and ev.button == 1: 598 # Add a point 599 self.level.add_point(self.cur_poly, 600 self._level_coordinates(corrected_pos)) 596 601 elif ev.button == 1: 597 602 if self._draw_lines: … … 613 618 elif ev.button == 7: # Scroll right 614 619 self._move_view((10, 0)) 615 elif self.cur_poly and ev.button == 1:616 # Add a point617 self.level.add_point(self.cur_poly,618 self._level_coordinates(ev.pos))619 620 elif ev.button == 3: 620 621 self._mouse_drag = True
Note:
See TracChangeset
for help on using the changeset viewer.