Changeset 198:05c2c592ce2e for tools/area_editor.py
- Timestamp:
- 09/03/13 20:19:20 (9 years ago)
- Branch:
- default
- Phase:
- public
- Rebase:
- 32613730316237313763333632383838626365643430383736666164363530356431353739633962
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
tools/area_editor.py
r195 r198 24 24 from albow.root import RootWidget 25 25 from albow.widget import Widget 26 from albow.controls import Button 26 from albow.controls import Button, Label, CheckBox 27 27 from albow.dialogs import alert 28 28 … … 305 305 button_rect = pygame.rect.Rect(0, 0, MENU_WIDTH, MENU_BUTTON_HEIGHT) 306 306 307 check_rect = pygame.rect.Rect(0, 0, MENU_BUTTON_HEIGHT // 2, 308 MENU_BUTTON_HEIGHT // 2) 309 307 310 end_poly_but = PolyButton(None, self.level_widget) 308 311 end_poly_but.rect = button_rect.copy() … … 329 332 self.add(close_poly_but) 330 333 y += MENU_BUTTON_HEIGHT + MENU_PAD 334 335 white = pygame.color.Color("white") 336 self.show_objs = CheckBox(fg_color=white) 337 self.show_objs.rect = check_rect.copy() 338 self.show_objs.rect.move_ip(MENU_LEFT, y) 339 label = Label("Show Objects", fg_color=white) 340 label.rect.move_ip(MENU_LEFT + MENU_BUTTON_HEIGHT // 2 + MENU_PAD, y) 341 self.add(self.show_objs) 342 self.add(label) 343 y += label.rect.height + MENU_PAD 344 345 self.show_enemies = CheckBox(fg_color=white) 346 self.show_enemies.rect = check_rect.copy() 347 self.show_enemies.rect.move_ip(MENU_LEFT, y) 348 label = Label("Show enemy start pos", fg_color=white) 349 label.rect.move_ip(MENU_LEFT + MENU_BUTTON_HEIGHT // 2 + MENU_PAD, y) 350 self.add(self.show_enemies) 351 self.add(label) 352 y += label.rect.height + MENU_PAD 331 353 332 354 quit_but = Button('Quit', action=self.quit)
Note:
See TracChangeset
for help on using the changeset viewer.