diff options
author | alberth <alberth@openttd.org> | 2012-11-25 15:24:02 +0000 |
---|---|---|
committer | alberth <alberth@openttd.org> | 2012-11-25 15:24:02 +0000 |
commit | fb892f4b2060344b1ca1dbcb9b120aa628fc4785 (patch) | |
tree | e2a734f9c08ae6ab494c55d2dfb58db31fce05f4 /src/toolbar_gui.cpp | |
parent | e67c717c2f167e5763ebc8dc730d8681ea768e6e (diff) | |
download | openttd-fb892f4b2060344b1ca1dbcb9b120aa628fc4785.tar.xz |
(svn r24763) -Feature: Add industry type and cargo dropdown selection for easier navigating in the industry chain window.
Diffstat (limited to 'src/toolbar_gui.cpp')
-rw-r--r-- | src/toolbar_gui.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/toolbar_gui.cpp b/src/toolbar_gui.cpp index a7548834d..0bc7a6245 100644 --- a/src/toolbar_gui.cpp +++ b/src/toolbar_gui.cpp @@ -634,7 +634,7 @@ static CallBackFunction MenuClickLeague(int index) static CallBackFunction ToolbarIndustryClick(Window *w) { /* Disable build-industry menu if we are a spectator */ - PopupMainToolbMenu(w, WID_TN_INDUSTRIES, STR_INDUSTRY_MENU_INDUSTRY_DIRECTORY, (_local_company == COMPANY_SPECTATOR) ? 1 : 2); + PopupMainToolbMenu(w, WID_TN_INDUSTRIES, STR_INDUSTRY_MENU_INDUSTRY_DIRECTORY, (_local_company == COMPANY_SPECTATOR) ? 2 : 3); return CBF_NONE; } @@ -647,8 +647,9 @@ static CallBackFunction ToolbarIndustryClick(Window *w) static CallBackFunction MenuClickIndustry(int index) { switch (index) { - case 0: ShowIndustryDirectory(); break; - case 1: ShowBuildIndustryWindow(); break; + case 0: ShowIndustryDirectory(); break; + case 1: ShowIndustryCargoesWindow(); break; + case 2: ShowBuildIndustryWindow(); break; } return CBF_NONE; } |