Changeset 426:275e0b4bd571


Ignore:
Timestamp:
09/07/13 11:34:55 (8 years ago)
Author:
Simon Cross <hodgestar@…>
Branch:
default
Phase:
public
Rebase:
39613265343234643664636262346232366333633431336461333134396530316632373463363061
Message:

Increment by 5.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tools/area_editor.py

    r425 r426  
    427427    def inc_grid_size(self, amount):
    428428        self.grid_size = max(1, self.grid_size + amount)
     429        if self.grid_size > 1:
     430            self.grid_size = self.grid_size - (self.grid_size % 5)
    429431
    430432    def snap_to_grid(self, pos):
     
    883885        widgets.append(grid_size_label)
    884886        y += grid_size_label.rect.height + MENU_PAD
    885         inc_snap_but = SnapButton(grid_size_label, self, 1)
     887        inc_snap_but = SnapButton(grid_size_label, self, 5)
    886888        inc_snap_but.rect = HALF_BUTTON_RECT.copy()
    887889        inc_snap_but.rect.move_ip(MENU_LEFT, y)
    888890        widgets.append(inc_snap_but)
    889         dec_snap_but = SnapButton(grid_size_label, self, -1)
     891        dec_snap_but = SnapButton(grid_size_label, self, -5)
    890892        dec_snap_but.rect = HALF_BUTTON_RECT.copy()
    891893        dec_snap_but.rect.move_ip(
Note: See TracChangeset for help on using the changeset viewer.