# HG changeset patch # User Jeremy Thurgood # Date 1259354679 0 # Node ID 93eab01a1e57d557eafadabb3b21dbd992470117 # Parent 04975aa3ec7048e976a99204d8ff93cbc268592d Updated (but no prettier) control dialog. diff -r 04975aa3ec70 -r 93eab01a1e57 gamelib/toolbar.py --- a/gamelib/toolbar.py Fri Nov 27 19:56:08 2009 +0000 +++ b/gamelib/toolbar.py Fri Nov 27 20:44:39 2009 +0000 @@ -159,15 +159,16 @@ def show_controls(self): """Popup dialog of controls""" - COMBOS = { - 'Select Multiple chickens' : 'Shift & Left Click', - 'Move selected chickens' : 'Ctrl & Left Click', - 'Toggle between select and move' : 'Right Click', - 'Unselect current tool and all chickens' : 'Middle Click', - 'Save selection' : 'Ctrl & 0 .. 9', - 'Recall saved selection' : '0 .. 9', - 'Exit game' : 'Esc', - } + COMBOS = [ + ('Select Multiple chickens', 'Shift & Left Click'), + ('Move selected chickens', 'Ctrl & Left Click'), + ('Toggle between select and move', 'Right Click'), + ('Unselect current tool and chickens', 'Middle Click'), + ('Save selection', 'Ctrl & 0 .. 9'), + (' or', 'Alt & 0 .. 9'), + ('Recall saved selection', '0 .. 9'), + ('Exit game', 'Esc'), + ] tbl = gui.Table() tbl.tr() @@ -176,7 +177,7 @@ for header in ['Action', 'Combination']: doc.add(misc.make_box(header)) doc.br(space[1]) - for command, combo in COMBOS.iteritems(): + for command, combo in COMBOS: doc.add(misc.make_box(command)) doc.add(misc.make_box(combo)) doc.br(space[1])