Nicer formatting in dfstatus.

develop
Petr Mrázek 2011-05-23 21:58:44 +02:00
parent d2e01ec579
commit a1a5df52a1
1 changed files with 12 additions and 12 deletions

@ -55,22 +55,22 @@ WINDOW *create_newwin(int height, int width, int starty, int startx){
* for the vertical and horizontal * for the vertical and horizontal
* lines */ * lines */
//first row //first row
mvwprintw(local_win,2,2,"Drinks: %d", drinkCount); mvwprintw(local_win,2 ,2,"Drinks : %d", drinkCount);
mvwprintw(local_win,4,2,"Meals : %d", mealsCount); mvwprintw(local_win,4 ,2,"Meals : %d", mealsCount);
mvwprintw(local_win,6,2,"Plants: %d", plantCount); mvwprintw(local_win,6 ,2,"Plants : %d", plantCount);
mvwprintw(local_win,7,4,"Fish: %d", fishCount); mvwprintw(local_win,7 ,2,"Fish : %d", fishCount);
mvwprintw(local_win,8,4,"Meat: %d", meatCount); mvwprintw(local_win,8 ,2,"Meat : %d", meatCount);
mvwprintw(local_win,10,2,"Logs: %d", logsCount); mvwprintw(local_win,10,2,"Logs : %d", logsCount);
mvwprintw(local_win,12,2,"Cloth: %d", clothCount); mvwprintw(local_win,12,2,"Cloth : %d", clothCount);
//second row //second row
mvwprintw(local_win,2,22,"Iron Bars: %d", ironBars); mvwprintw(local_win,2,22,"Iron Bars : %d", ironBars);
mvwprintw(local_win,3,22,"Gold Bars: %d", goldBars); mvwprintw(local_win,3,22,"Gold Bars : %d", goldBars);
mvwprintw(local_win,4,22,"Silver Bars: %d", silverBars); mvwprintw(local_win,4,22,"Silver Bars: %d", silverBars);
mvwprintw(local_win,5,22,"Copper Bars: %d", copperBars); mvwprintw(local_win,5,22,"Copper Bars: %d", copperBars);
mvwprintw(local_win,6,22,"Steel Bars: %d", steelBars); mvwprintw(local_win,6,22,"Steel Bars : %d", steelBars);
mvwprintw(local_win,9,22,"Fuel: %d", fuel); mvwprintw(local_win,9,22,"Fuel : %d", fuel);
total_time += end_time - start_time; total_time += end_time - start_time;
mvwprintw(local_win,14,2,"Time used: %d ms, Time total: %d ms", end_time - start_time, total_time); mvwprintw(local_win,14,2,"Time: %d ms last update, %d ms total", end_time - start_time, total_time);
wrefresh(local_win); // paint the screen and all components. wrefresh(local_win); // paint the screen and all components.