(svn r19706) -Add: support for the (NewGRF) debug box

This commit is contained in:
rubidium
2010-04-24 13:27:22 +00:00
parent fef77ca53e
commit e75e2648fc
5 changed files with 72 additions and 1 deletions

View File

@@ -65,6 +65,7 @@ enum WidgetType {
WWT_HSCROLLBAR, ///< Horizontal scrollbar
WWT_SHADEBOX, ///< Shade box (at top-right of a window, between caption and stickybox)
WWT_STICKYBOX, ///< Sticky box (normally at top-right of a window)
WWT_DEBUGBOX, ///< NewGRF debug box (between shade box and caption)
WWT_SCROLL2BAR, ///< 2nd vertical scrollbar
WWT_RESIZEBOX, ///< Resize box (normally at bottom-right of a window)
WWT_CLOSEBOX, ///< Close box (at top-left of a window)
@@ -480,6 +481,7 @@ public:
static void InvalidateDimensionCache();
private:
static Dimension shadebox_dimension; ///< Cached size of a shadebox widget.
static Dimension debugbox_dimension; ///< Cached size of a debugbox widget.
static Dimension stickybox_dimension; ///< Cached size of a stickybox widget.
static Dimension resizebox_dimension; ///< Cached size of a resizebox widget.
static Dimension closebox_dimension; ///< Cached size of a closebox widget.