summaryrefslogtreecommitdiff
path: root/src/toolbar_gui.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2013-05-19 14:43:23 +0000
committerrubidium <rubidium@openttd.org>2013-05-19 14:43:23 +0000
commit50ae992b47f581d8a50892942438bfe7e3f62141 (patch)
treecd479cffb7344bc8409550dd7af21e6a32460481 /src/toolbar_gui.cpp
parent163dfdd34afe8020a207b8f0a1b58e29ce082c41 (diff)
downloadopenttd-50ae992b47f581d8a50892942438bfe7e3f62141.tar.xz
(svn r25263) -Add: legend for linkgraph overlay (fonsinchen)
Diffstat (limited to 'src/toolbar_gui.cpp')
-rw-r--r--src/toolbar_gui.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/toolbar_gui.cpp b/src/toolbar_gui.cpp
index 7cb18de3d..f8c6691f4 100644
--- a/src/toolbar_gui.cpp
+++ b/src/toolbar_gui.cpp
@@ -38,6 +38,7 @@
#include "smallmap_gui.h"
#include "graph_gui.h"
#include "textbuf_gui.h"
+#include "linkgraph/linkgraph_gui.h"
#include "newgrf_debug.h"
#include "hotkeys.h"
#include "engine_base.h"
@@ -409,10 +410,11 @@ static CallBackFunction MenuClickSaveLoad(int index = 0)
enum MapMenuEntries {
MME_SHOW_SMALLMAP = 0,
MME_SHOW_EXTRAVIEWPORTS,
+ MME_SHOW_LINKGRAPH,
MME_SHOW_SIGNLISTS,
MME_SHOW_TOWNDIRECTORY, ///< This entry is only used in Editor mode
- MME_MENUCOUNT_NORMAL = 3,
- MME_MENUCOUNT_EDITOR = 4,
+ MME_MENUCOUNT_NORMAL = 4,
+ MME_MENUCOUNT_EDITOR = 5,
};
static CallBackFunction ToolbarMapClick(Window *w)
@@ -438,6 +440,7 @@ static CallBackFunction MenuClickMap(int index)
switch (index) {
case MME_SHOW_SMALLMAP: ShowSmallMap(); break;
case MME_SHOW_EXTRAVIEWPORTS: ShowExtraViewPortWindow(); break;
+ case MME_SHOW_LINKGRAPH: ShowLinkGraphLegend(); break;
case MME_SHOW_SIGNLISTS: ShowSignList(); break;
case MME_SHOW_TOWNDIRECTORY: if (_game_mode == GM_EDITOR) ShowTownDirectory(); break;
}