diff options
author | Stijn Buys <ingar@osirion.org> | 2014-12-24 17:06:35 +0000 |
---|---|---|
committer | Stijn Buys <ingar@osirion.org> | 2014-12-24 17:06:35 +0000 |
commit | f330ae5ed3bd73c7b5b582cccde6cdd91d3c6e5b (patch) | |
tree | 339cb4f53afc7ac71c0865af61d4c539354ac179 /src/client/hudenginestatus.h | |
parent | e38ab774ed6a82e75069214c3169215b0b3638a9 (diff) |
Added autopilot and control lock HUD buttons.
Diffstat (limited to 'src/client/hudenginestatus.h')
-rw-r--r-- | src/client/hudenginestatus.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/client/hudenginestatus.h b/src/client/hudenginestatus.h index ff1c813..be1d322 100644 --- a/src/client/hudenginestatus.h +++ b/src/client/hudenginestatus.h @@ -9,6 +9,11 @@ #include "ui/widget.h" +namespace ui +{ +class IconButton; +} + namespace client { @@ -21,13 +26,26 @@ class HUDEngineStatus : public ui::Widget public: /// create a new HUD widget HUDEngineStatus(ui::Widget *parent = 0); + + /// destructor + virtual ~HUDEngineStatus(); protected: + /// rearrange child widgets + virtual void resize(); + /// draw hud elements virtual void draw(); /// receive keyboard events virtual bool on_keypress(const int key, const unsigned int modifier); + +private: + ui::Palette *_button_auto_palette; + ui::Palette *_button_lock_palette; + + ui::IconButton *_button_auto; + ui::IconButton *_button_lock; }; } |