2 * This file is part of OpenTTD.
3 * OpenTTD is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, version 2.
4 * OpenTTD is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
5 * See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with OpenTTD. If not, see <http://www.gnu.org/licenses/>.
8 /** @file newgrf_debug.h Functions/types related to NewGRF debugging. */
10 #ifndef NEWGRF_DEBUG_H
11 #define NEWGRF_DEBUG_H
14 #include "tile_type.h"
15 #include "vehicle_type.h"
17 /** Current state of spritepicker */
18 enum NewGrfDebugSpritePickerMode
{
24 /** Spritepicker of SpriteAligner */
25 struct NewGrfDebugSpritePicker
{
26 NewGrfDebugSpritePickerMode mode
; ///< Current state
27 void *clicked_pixel
; ///< Clicked pixel (pointer to blitter buffer)
28 std::vector
<SpriteID
> sprites
; ///< Sprites found
31 extern NewGrfDebugSpritePicker _newgrf_debug_sprite_picker
;
33 bool IsNewGRFInspectable(GrfSpecFeature feature
, uint index
);
34 void ShowNewGRFInspectWindow(GrfSpecFeature feature
, uint index
, const uint32_t grfid
= 0);
35 void InvalidateNewGRFInspectWindow(GrfSpecFeature feature
, uint index
);
36 void DeleteNewGRFInspectWindow(GrfSpecFeature feature
, uint index
);
38 GrfSpecFeature
GetGrfSpecFeature(TileIndex tile
);
39 GrfSpecFeature
GetGrfSpecFeature(VehicleType type
);
41 void ShowSpriteAlignerWindow();
43 #endif /* NEWGRF_DEBUG_H */