diff options
author | pauldubois <pauldubois@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-04-07 07:42:30 +0000 |
---|---|---|
committer | pauldubois <pauldubois@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-04-07 07:42:30 +0000 |
commit | 8a70542a47a222233fae0382199d191388d602d8 (patch) | |
tree | 8740e01fce1cedc15ca97458fedcfcd206e71544 /crawl-ref/source/output.cc | |
parent | 2f63d14e46fcb39b0021fb209f85207cddf7b404 (diff) | |
download | crawl-ref-8a70542a47a222233fae0382199d191388d602d8.tar.gz crawl-ref-8a70542a47a222233fae0382199d191388d602d8.zip |
For FR 1934370
Add "classic_hud" option. Defaults to false. Removes hp bar, monster list.
Added some macros to reduce copy/paste in initfile.cc.
Renamed mlist_allow_inline to mlist_allow_alternate_layout so the sense is more accurate.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@4092 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/output.cc')
-rw-r--r-- | crawl-ref/source/output.cc | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/crawl-ref/source/output.cc b/crawl-ref/source/output.cc index 30734b8f91..a169dee5fa 100644 --- a/crawl-ref/source/output.cc +++ b/crawl-ref/source/output.cc @@ -256,7 +256,9 @@ static void _print_stats_mp(int x, int y) + _count_digits(you.max_magic_points) + 1; for (int i = 11-col; i > 0; i--) cprintf(" "); - draw_mp_bar(19, y, you.magic_points, you.max_magic_points); + + if (! Options.classic_hud) + draw_mp_bar(19, y, you.magic_points, you.max_magic_points); } // Helper for print_stats @@ -295,7 +297,8 @@ static void _print_stats_hp(int x, int y) for (int i = 14-col; i > 0; i--) cprintf(" "); - draw_hp_bar(19, y, you.hp, you.hp_max); + if (! Options.classic_hud) + draw_hp_bar(19, y, you.hp, you.hp_max); } // XXX: alters state! Does more than just print! |