diff options
author | pauldubois <pauldubois@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-04-03 07:50:02 +0000 |
---|---|---|
committer | pauldubois <pauldubois@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-04-03 07:50:02 +0000 |
commit | 4f5d24c39a9fb20f44953732a793ba24b88b1252 (patch) | |
tree | e36ab0ba28ebc64b77c4baa8831970a17ffb9bb4 | |
parent | 30e35359e60798c94b5fa3720a1b7886e81f34dc (diff) | |
download | crawl-ref-4f5d24c39a9fb20f44953732a793ba24b88b1252.tar.gz crawl-ref-4f5d24c39a9fb20f44953732a793ba24b88b1252.zip |
A little less gaudy. Was going to make an option to compress MP/HP, but not tonight.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@4058 c06c8d41-db1a-0410-9941-cceddc491573
-rw-r--r-- | crawl-ref/source/output.cc | 26 |
1 files changed, 14 insertions, 12 deletions
diff --git a/crawl-ref/source/output.cc b/crawl-ref/source/output.cc index febcb8318e..1112a61c24 100644 --- a/crawl-ref/source/output.cc +++ b/crawl-ref/source/output.cc @@ -143,29 +143,32 @@ static int _draw_colour_bar(int val, int max_val, int old_val, int old_disp, textcolor(BLACK + default_colour * 16); else if (old_val > val && old_disp > disp && cx < old_disp) textcolor(BLACK + change_colour * 16); + putch(' '); #else - textbackground(empty_colour); - if (cx < disp) - textbackground(default_colour); - else if (old_val > val && old_disp > disp && cx < old_disp) - textbackground(change_colour); + if (cx < disp) { + textcolor(default_colour); + putch('-'); + } else if (old_val > val && old_disp > disp && cx < old_disp) { + textcolor(change_colour); + putch('-'); + } else { + textcolor(empty_colour); + putch('-'); + } #endif - putch(' '); } textcolor(LIGHTGREY); textbackground(BLACK); - return disp; } void draw_mp_bar(int ox, int oy, int val, int max_val) { const unsigned short default_colour = BLUE; - // DARKGRAY and LIGHTBLUE don't show up for me... :-( --pld - const unsigned short change = CYAN; - const unsigned short empty = LIGHTGRAY; + const unsigned short change = LIGHTBLUE; + const unsigned short empty = DARKGRAY; static int old_val = 0; static int old_disp = 0; @@ -179,8 +182,7 @@ void draw_hp_bar(int ox, int oy, int val, int max_val) { const unsigned short default_colour = GREEN; const unsigned short change = RED; - // DARKGRAY doesn't show up for me... :-( --pld - const unsigned short empty = LIGHTGRAY; + const unsigned short empty = DARKGRAY; static int old_val = 0; static int old_disp = 0; |