diff options
author | rubidium <rubidium@openttd.org> | 2010-04-25 16:27:30 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2010-04-25 16:27:30 +0000 |
commit | c72e2dde603fe9ba0d57d2e6f259f32398b75a15 (patch) | |
tree | a4245990af5d20004a918d8b0131bd3a96e88613 /src/toolbar_gui.cpp | |
parent | 4868fb988ff7373ac0b436511464434a310273fd (diff) | |
download | openttd-c72e2dde603fe9ba0d57d2e6f259f32398b75a15.tar.xz |
(svn r19723) -Add: a simple sprite alignment helper. It does not store the new offsets anywhere so as soon as the sprite is reloaded the offsets are gone (use a bigger sprite cache if this happens). Also anything that reloads NewGRFs (new games, loading games or (re)applying NewGRFs) clears the sprite cache and as such resets the offsets.
Diffstat (limited to 'src/toolbar_gui.cpp')
-rw-r--r-- | src/toolbar_gui.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/toolbar_gui.cpp b/src/toolbar_gui.cpp index 700310c2f..a0d4427fa 100644 --- a/src/toolbar_gui.cpp +++ b/src/toolbar_gui.cpp @@ -44,6 +44,7 @@ #include "smallmap_gui.h" #include "graph_gui.h" #include "textbuf_gui.h" +#include "newgrf_debug.h" #include "network/network.h" #include "network/network_gui.h" @@ -759,7 +760,7 @@ static void MenuClickNewspaper(int index) static void ToolbarHelpClick(Window *w) { - PopupMainToolbMenu(w, TBN_HELP, STR_ABOUT_MENU_LAND_BLOCK_INFO, 7); + PopupMainToolbMenu(w, TBN_HELP, STR_ABOUT_MENU_LAND_BLOCK_INFO, _settings_client.gui.newgrf_developer_tools ? 8 : 7); } static void MenuClickSmallScreenshot() @@ -781,6 +782,7 @@ static void MenuClickHelp(int index) case 4: MenuClickSmallScreenshot(); break; case 5: MenuClickWorldScreenshot(); break; case 6: ShowAboutWindow(); break; + case 7: ShowSpriteAlignerWindow(); break; } } |