OpenTTD Source 20250612-master-gb012d9e3dc
newgrf_debug.h
Go to the documentation of this file.
1/*
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/>.
6 */
7
10#ifndef NEWGRF_DEBUG_H
11#define NEWGRF_DEBUG_H
12
13#include "core/flatset_type.hpp"
14#include "newgrf.h"
15#include "tile_type.h"
16#include "vehicle_type.h"
17
20 SPM_NONE,
21 SPM_WAIT_CLICK,
22 SPM_REDRAW,
23};
24
31
33
34bool IsNewGRFInspectable(GrfSpecFeature feature, uint index);
35void ShowNewGRFInspectWindow(GrfSpecFeature feature, uint index, const uint32_t grfid = 0);
36void InvalidateNewGRFInspectWindow(GrfSpecFeature feature, uint index);
38void DeleteNewGRFInspectWindow(GrfSpecFeature feature, uint index);
39void DeleteNewGRFInspectWindow(GrfSpecFeature feature, ConvertibleThroughBase auto index) { DeleteNewGRFInspectWindow(feature, index.base()); }
40
43
45
46#endif /* NEWGRF_DEBUG_H */
Flat set implementation that uses a sorted vector for storage.
A type is considered 'convertible through base()' when it has a 'base()' function that returns someth...
Flat set container implementation.
Base for the NewGRF implementation.
GrfSpecFeature
Definition newgrf.h:69
void ShowNewGRFInspectWindow(GrfSpecFeature feature, uint index, const uint32_t grfid=0)
Show the inspect window for a given feature and index.
void ShowSpriteAlignerWindow()
Show the window for aligning sprites.
GrfSpecFeature GetGrfSpecFeature(TileIndex tile)
Get the GrfSpecFeature associated with the tile.
void InvalidateNewGRFInspectWindow(GrfSpecFeature feature, uint index)
Invalidate the inspect window for a given feature and index.
bool IsNewGRFInspectable(GrfSpecFeature feature, uint index)
Can we inspect the data given a certain feature and index.
NewGrfDebugSpritePickerMode
Current state of spritepicker.
void DeleteNewGRFInspectWindow(GrfSpecFeature feature, uint index)
Delete inspect window for a given feature and index.
NewGrfDebugSpritePicker _newgrf_debug_sprite_picker
The sprite picker.
Spritepicker of SpriteAligner.
NewGrfDebugSpritePickerMode mode
Current state.
void * clicked_pixel
Clicked pixel (pointer to blitter buffer)
FlatSet< SpriteID > sprites
Sprites found.
Types related to tiles.
Types related to vehicles.
VehicleType
Available vehicle types.