diff options
author | rubidium <rubidium@openttd.org> | 2010-04-24 13:39:11 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2010-04-24 13:39:11 +0000 |
commit | f56ebd81c35beb0094c487cc3dc45dc0427fae46 (patch) | |
tree | 36776a247dae7d416030b82239b506698c94ce29 /src/industry_gui.cpp | |
parent | 21883a84d7883df5feb25d6536ec8f67a053fe42 (diff) | |
download | openttd-f56ebd81c35beb0094c487cc3dc45dc0427fae46.tar.xz |
(svn r19709) -Feature: NewGRF debugging/inspecting of (primarily) enabled callbacks and values of variables
Diffstat (limited to 'src/industry_gui.cpp')
-rw-r--r-- | src/industry_gui.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/industry_gui.cpp b/src/industry_gui.cpp index d9fc30eb7..0f6d8ba62 100644 --- a/src/industry_gui.cpp +++ b/src/industry_gui.cpp @@ -23,6 +23,7 @@ #include "newgrf.h" #include "newgrf_industries.h" #include "newgrf_text.h" +#include "newgrf_debug.h" #include "strings_func.h" #include "company_func.h" #include "tilehighlight_func.h" @@ -834,6 +835,16 @@ public: UpdateIndustryProduction(i); this->SetDirty(); } + + virtual bool IsNewGRFInspectable() const + { + return ::IsNewGRFInspectable(GSF_INDUSTRIES, this->window_number); + } + + virtual void ShowNewGRFInspectWindow() const + { + ::ShowNewGRFInspectWindow(GSF_INDUSTRIES, this->window_number); + } }; static void UpdateIndustryProduction(Industry *i) @@ -850,6 +861,7 @@ static const NWidgetPart _nested_industry_view_widgets[] = { NWidget(NWID_HORIZONTAL), NWidget(WWT_CLOSEBOX, COLOUR_CREAM), NWidget(WWT_CAPTION, COLOUR_CREAM, IVW_CAPTION), SetDataTip(STR_INDUSTRY_VIEW_CAPTION, STR_TOOLTIP_WINDOW_TITLE_DRAG_THIS), + NWidget(WWT_DEBUGBOX, COLOUR_CREAM), NWidget(WWT_SHADEBOX, COLOUR_CREAM), NWidget(WWT_STICKYBOX, COLOUR_CREAM), EndContainer(), |