summaryrefslogtreecommitdiff
path: root/src/object_gui.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/object_gui.cpp')
-rw-r--r--src/object_gui.cpp16
1 files changed, 2 insertions, 14 deletions
diff --git a/src/object_gui.cpp b/src/object_gui.cpp
index 6b89c4784..83b2e276e 100644
--- a/src/object_gui.cpp
+++ b/src/object_gui.cpp
@@ -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.