Mercurial > rinkhals
comparison gamelib/toolbar.py @ 520:3e19a7f5333e
Tweak controls dialog
author | Neil Muller <drnlmuller@gmail.com> |
---|---|
date | Fri, 27 Nov 2009 14:01:29 +0000 |
parents | f84ad10a9625 |
children | 93eab01a1e57 |
comparison
equal
deleted
inserted
replaced
519:f84ad10a9625 | 520:3e19a7f5333e |
---|---|
160 """Popup dialog of controls""" | 160 """Popup dialog of controls""" |
161 | 161 |
162 COMBOS = { | 162 COMBOS = { |
163 'Select Multiple chickens' : 'Shift & Left Click', | 163 'Select Multiple chickens' : 'Shift & Left Click', |
164 'Move selected chickens' : 'Ctrl & Left Click', | 164 'Move selected chickens' : 'Ctrl & Left Click', |
165 'Change to move tool' : 'Right Click', | 165 'Toggle between select and move' : 'Right Click', |
166 'Unselect current tool and all chickens' : 'Middle Click', | |
166 'Save selection' : 'Ctrl & 0 .. 9', | 167 'Save selection' : 'Ctrl & 0 .. 9', |
167 'Recall saved selection' : '0 .. 9', | 168 'Recall saved selection' : '0 .. 9', |
168 'Exit game' : 'Esc', | 169 'Exit game' : 'Esc', |
169 } | 170 } |
170 | 171 |
171 tbl = gui.Table() | 172 tbl = gui.Table() |
172 tbl.tr() | 173 tbl.tr() |
173 doc = gui.Document(width=410) | 174 doc = gui.Document(width=610) |
174 space = doc.style.font.size(" ") | 175 space = doc.style.font.size(" ") |
175 for header in ['Action', 'Combination']: | 176 for header in ['Action', 'Combination']: |
176 doc.add(misc.make_box(header)) | 177 doc.add(misc.make_box(header)) |
177 doc.br(space[1]) | 178 doc.br(space[1]) |
178 for command, combo in COMBOS.iteritems(): | 179 for command, combo in COMBOS.iteritems(): |