Changeset 422:6925f540a0c6


Ignore:
Timestamp:
09/07/13 11:00:31 (8 years ago)
Author:
Neil Muller <drnlmuller@…>
Branch:
default
Phase:
public
Rebase:
30383632386431306662323266333361373930306637386132626337366165303932663139333831
Message:

Tweak zoom button layout

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tools/area_editor.py

    r421 r422  
    994994        zoom_out = Button('Zoom out', action=self.level_widget.zoom_out)
    995995        zoom_out.rect = BUTTON_RECT.copy()
     996        zoom_out.rect.width = zoom_out.rect.width // 2
    996997        zoom_out.rect.move_ip(MENU_LEFT, y)
    997998        widgets.append(zoom_out)
    998         y += MENU_BUTTON_HEIGHT + MENU_PAD
    999999
    10001000        zoom_in = Button('Zoom in', action=self.level_widget.zoom_in)
    10011001        zoom_in.rect = BUTTON_RECT.copy()
    1002         zoom_in.rect.move_ip(MENU_LEFT, y)
     1002        zoom_in.width = zoom_in.width // 2
     1003        zoom_in.rect.move_ip(MENU_LEFT + zoom_out.width, y)
    10031004        widgets.append(zoom_in)
    10041005
     
    10761077        zoom_out = Button('Zoom out', action=self.level_widget.zoom_out)
    10771078        zoom_out.rect = BUTTON_RECT.copy()
     1079        zoom_out.rect.width = zoom_out.rect.width // 2
    10781080        zoom_out.rect.move_ip(MENU_LEFT, y)
    10791081        widgets.append(zoom_out)
    1080         y += MENU_BUTTON_HEIGHT + MENU_PAD
    10811082
    10821083        zoom_in = Button('Zoom in', action=self.level_widget.zoom_in)
    10831084        zoom_in.rect = BUTTON_RECT.copy()
    1084         zoom_in.rect.move_ip(MENU_LEFT, y)
     1085        zoom_in.width = zoom_in.width // 2
     1086        zoom_in.rect.move_ip(MENU_LEFT + zoom_out.width, y)
    10851087        widgets.append(zoom_in)
     1088        y += MENU_BUTTON_HEIGHT + MENU_PAD
    10861089
    10871090        y = SCREEN[1] - MENU_BUTTON_HEIGHT - MENU_PAD
Note: See TracChangeset for help on using the changeset viewer.