diff options
author | Robert Vollmert <rvollmert@gmx.net> | 2009-11-29 20:54:57 +0100 |
---|---|---|
committer | Robert Vollmert <rvollmert@gmx.net> | 2009-11-29 21:00:21 +0100 |
commit | 58ef5ce5a9573d732c3bd937d02bfddecdfb9134 (patch) | |
tree | 7c839b9fc36a2c09e891471de8023d0fa6c248d8 /crawl-ref/source/viewgeom.cc | |
parent | 8963333ffd03d1b0112628ad9ae0fdd577a55f4d (diff) | |
download | crawl-ref-58ef5ce5a9573d732c3bd937d02bfddecdfb9134.tar.gz crawl-ref-58ef5ce5a9573d732c3bd937d02bfddecdfb9134.zip |
Optionally display message window at top of terminal.
Set messages_at_top=true to use.
This is not quite aesthetically pleasing since character name
and title which form a kind of heading for the screen are now
in the middle. It might be better to display them in an extra
line across the top.
Also, the layout should really be moved out to lua and made
completely user configurable.
Diffstat (limited to 'crawl-ref/source/viewgeom.cc')
-rw-r--r-- | crawl-ref/source/viewgeom.cc | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/crawl-ref/source/viewgeom.cc b/crawl-ref/source/viewgeom.cc index 7c2c2bd156..784a402bcc 100644 --- a/crawl-ref/source/viewgeom.cc +++ b/crawl-ref/source/viewgeom.cc @@ -130,8 +130,16 @@ class _inline_layout : public _layout } // Finish off by doing the positions. - viewp = termp; - msgp = termp + coord_def(0, std::max(viewsz.y, hudsz.y+mlistsz.y)); + if (Options.messages_at_top) + { + msgp = termp; + viewp = termp + coord_def(0, msgsz.y); + } + else + { + viewp = termp; + msgp = termp + coord_def(0, std::max(viewsz.y, hudsz.y+mlistsz.y)); + } hudp = viewp + coord_def(viewsz.x+hud_gutter, 0); mlistp = hudp + coord_def(0, hudsz.y); |