diff options
author | truebrain <truebrain@openttd.org> | 2011-12-15 22:22:55 +0000 |
---|---|---|
committer | truebrain <truebrain@openttd.org> | 2011-12-15 22:22:55 +0000 |
commit | 2aa774e831ad1cb7849c998759449ef777c5c664 (patch) | |
tree | 37293298be999cb3446fe4af7f11e107bfa17c3d /src/transparency_gui.cpp | |
parent | fd559171b4ab5ce09b67aa8c4e9f2d0482a09558 (diff) | |
download | openttd-2aa774e831ad1cb7849c998759449ef777c5c664.tar.xz |
(svn r23528) -Codechange: move widget enums to widgets/NNN_type.h
Diffstat (limited to 'src/transparency_gui.cpp')
-rw-r--r-- | src/transparency_gui.cpp | 21 |
1 files changed, 2 insertions, 19 deletions
diff --git a/src/transparency_gui.cpp b/src/transparency_gui.cpp index d7fcf082e..77247fa12 100644 --- a/src/transparency_gui.cpp +++ b/src/transparency_gui.cpp @@ -14,6 +14,8 @@ #include "transparency.h" #include "sound_func.h" +#include "widgets/transparency_widget.h" + #include "table/sprites.h" #include "table/strings.h" @@ -22,25 +24,6 @@ TransparencyOptionBits _transparency_lock; ///< Prevent these bits from flipping TransparencyOptionBits _invisibility_opt; ///< The bits that should be invisible. byte _display_opt; ///< What do we want to draw/do? -/** Widget numbers of the transparency window. */ -enum TransparencyToolbarWidgets { - /* Button row. */ - TTW_WIDGET_BEGIN, ///< First toggle button. - TTW_WIDGET_SIGNS = TTW_WIDGET_BEGIN, ///< Signs background transparency toggle button. - TTW_WIDGET_TREES, ///< Trees transparency toggle button. - TTW_WIDGET_HOUSES, ///< Houses transparency toggle button. - TTW_WIDGET_INDUSTRIES, ///< industries transparency toggle button. - TTW_WIDGET_BUILDINGS, ///< Company buildings and structures transparency toggle button. - TTW_WIDGET_BRIDGES, ///< Bridges transparency toggle button. - TTW_WIDGET_STRUCTURES, ///< Object structure transparency toggle button. - TTW_WIDGET_CATENARY, ///< Catenary transparency toggle button. - TTW_WIDGET_LOADING, ///< Loading indicators transparency toggle button. - TTW_WIDGET_END, ///< End of toggle buttons. - - /* Panel with buttons for invisibility */ - TTW_WIDGET_BUTTONS, ///< Panel with 'invisibility' buttons. -}; - class TransparenciesWindow : public Window { public: |