Revision 514
graphical updates
trunk/code/projects/colonet/client/Colonet.java | ||
---|---|---|
220 | 220 |
panelRobotCommands.setLayout(new GridLayout(5,2)); |
221 | 221 |
cmbRobotNum = new JComboBox(); |
222 | 222 |
// Battery subset |
223 |
batteryIcon = new BatteryIcon(25);
|
|
223 |
batteryIcon = new BatteryIcon(0);
|
|
224 | 224 |
lblBattery = new JLabel(batteryIcon); |
225 | 225 |
lblSelected = new JLabel("None"); |
226 | 226 |
// Command subset |
... | ... | |
297 | 297 |
tabPaneControl.setPreferredSize(new Dimension(VECTOR_CONTROLLER_WIDTH, 0)); |
298 | 298 |
tabPaneControl.addTab("Connection", panelServerInterface); |
299 | 299 |
tabPaneControl.addTab("Robots", panelRobotControl); |
300 |
tabPaneControl.addTab("Tasks", panelTaskManager); |
|
300 |
//tabPaneControl.addTab("Tasks", panelTaskManager);
|
|
301 | 301 |
panelControl.add(tabPaneControl); |
302 | 302 |
|
303 | 303 |
// Set up elements in the south |
... | ... | |
1445 | 1445 |
*/ |
1446 | 1446 |
private int convert (int level) { |
1447 | 1447 |
// TODO: make this a forreals conversion. |
1448 |
return (int) (100.0 * level / 128);
|
|
1448 |
return (int) (100.0 * level / 160);
|
|
1449 | 1449 |
} |
1450 | 1450 |
|
1451 | 1451 |
} |
Also available in: Unified diff