(svn r23528) -Codechange: move widget enums to widgets/NNN_type.h
This commit is contained in:
@@ -19,26 +19,14 @@
|
||||
#include "viewport_func.h"
|
||||
#include "window_gui.h"
|
||||
|
||||
#include "widgets/object_widget.h"
|
||||
|
||||
#include "table/strings.h"
|
||||
|
||||
static ObjectClassID _selected_object_class; ///< the currently visible object class
|
||||
static int _selected_object_index; ///< the index of the selected object in the current class or -1
|
||||
static uint8 _selected_object_view; ///< the view of the selected object
|
||||
|
||||
/** Object widgets in the object picker window. */
|
||||
enum BuildObjectWidgets {
|
||||
BOW_CLASS_LIST, ///< The list with classes.
|
||||
BOW_SCROLLBAR, ///< The scrollbar associated with the list.
|
||||
BOW_OBJECT_MATRIX, ///< The matrix with preview sprites.
|
||||
BOW_OBJECT_SPRITE, ///< A preview sprite of the object.
|
||||
BOW_OBJECT_SIZE, ///< The size of an object.
|
||||
BOW_INFO, ///< Other information about the object (from the NewGRF).
|
||||
|
||||
BOW_SELECT_MATRIX, ///< Selection preview matrix of objects of a given class.
|
||||
BOW_SELECT_IMAGE, ///< Preview image in the #BOW_SELECT_MATRIX.
|
||||
BOW_SELECT_SCROLL, ///< Scrollbar next to the #BOW_SELECT_MATRIX.
|
||||
};
|
||||
|
||||
/** The window used for building objects. */
|
||||
class BuildObjectWindow : public PickerWindowBase {
|
||||
static const int OBJECT_MARGIN = 4; ///< The margin (in pixels) around an object.
|
||||
|
Reference in New Issue
Block a user