131 self.slot[idx]["fuel"], |
131 self.slot[idx]["fuel"], |
132 self.slot[idx]["status"], |
132 self.slot[idx]["status"], |
133 ), |
133 ), |
134 curses.color_pair(11 + idx) ) |
134 curses.color_pair(11 + idx) ) |
135 """ |
135 """ |
|
136 if idx > 3: |
|
137 namesuffix = " (%i)" % self.slot[idx]["drive"] |
|
138 else: |
|
139 namesuffix = "" |
|
140 |
136 self.scr.addstr((3 + (self.slot[idx]["position"] * 2)), 0, |
141 self.scr.addstr((3 + (self.slot[idx]["position"] * 2)), 0, |
137 "%3i | %i %15s %48s" % ( |
142 "%3i | %i %15s %48s" % ( |
138 self.slot[idx]["position"], |
143 self.slot[idx]["position"], |
139 self.slot[idx]["car"] + 1, self.slot[idx]["name"], |
144 self.slot[idx]["car"] + 1, (self.slot[idx]["name"] + namesuffix), |
140 "", |
145 "", |
141 ), |
146 ), |
142 curses.color_pair(11 + idx) ) |
147 curses.color_pair(11 + idx) ) |
143 self.scr.addstr((4 + (self.slot[idx]["position"] * 2)), 4, |
148 self.scr.addstr((4 + (self.slot[idx]["position"] * 2)), 4, |
144 " %4i | %7.2fs | %7.2fs | %3i%% | %10s | %2i% 15s" % ( |
149 " %4i | %7.2fs | %7.2fs | %3i%% | %10s | %2i% 15s" % ( |