Debug: Allow inspecting industry specs before industry is built
Add debug box to industry chains window
This commit is contained in:
@@ -216,6 +216,7 @@ public:
|
||||
virtual void ExtraInfo(uint index, NIExtraInfoOutput &output) const {}
|
||||
virtual void SpriteDump(uint index, DumpSpriteGroupPrinter print) const {}
|
||||
virtual bool ShowExtraInfoOnly(uint index) const { return false; };
|
||||
virtual bool ShowExtraInfoIncludingGRFIDOnly(uint index) const { return false; };
|
||||
virtual bool ShowSpriteDumpButton(uint index) const { return false; };
|
||||
|
||||
protected:
|
||||
@@ -618,6 +619,8 @@ struct NewGRFInspectWindow : Window {
|
||||
}
|
||||
}
|
||||
|
||||
if (nih->ShowExtraInfoIncludingGRFIDOnly(index)) return;
|
||||
|
||||
const_cast<NewGRFInspectWindow*>(this)->first_variable_line_index = i;
|
||||
|
||||
if (nif->variables != nullptr) {
|
||||
|
Reference in New Issue
Block a user