summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/tilereg.cc
diff options
context:
space:
mode:
authorj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2009-05-23 17:53:49 +0000
committerj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2009-05-23 17:53:49 +0000
commit4426d6e72f87e5d2b4b84c6d2196db21f638659d (patch)
tree01d0a676cc8977046ce18da1cd84f0b3de1badc2 /crawl-ref/source/tilereg.cc
parent966e7d165b4c33f5a00f0b718bb04e4f9df6090c (diff)
downloadcrawl-ref-4426d6e72f87e5d2b4b84c6d2196db21f638659d.tar.gz
crawl-ref-4426d6e72f87e5d2b4b84c6d2196db21f638659d.zip
Add an option that controls whether the tiles build displays tiles in
menus or not. (Defaults to true.) Tiled menus may seem like a great feature (and I love them) but they can also be a bit confusing/distracting (though much less so now than they used to be), and I respect that. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9799 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/tilereg.cc')
-rw-r--r--crawl-ref/source/tilereg.cc8
1 files changed, 5 insertions, 3 deletions
diff --git a/crawl-ref/source/tilereg.cc b/crawl-ref/source/tilereg.cc
index 04a3b08a82..4e5a2e06bb 100644
--- a/crawl-ref/source/tilereg.cc
+++ b/crawl-ref/source/tilereg.cc
@@ -2596,9 +2596,9 @@ void MenuRegion::place_entries()
{
m_dirty = false;
- const int heading_indent = 10;
- const int tile_indent = 20;
- const int text_indent = 58;
+ const int heading_indent = 10;
+ const int tile_indent = 20;
+ const int text_indent = (Options.tile_menu_icons ? 58 : 20);
const int max_tile_height = 32;
const int entry_buffer = 1;
const VColour selected_colour(50, 50, 10, 255);
@@ -2610,6 +2610,8 @@ void MenuRegion::place_entries()
m_tile_buf[t].clear();
int column = 0;
+ if (!Options.tile_menu_icons)
+ set_num_columns(1);
const int max_columns = std::min(2, m_max_columns);
const int column_width = mx / max_columns;