diff options
author | Kae <80987908+Novaenia@users.noreply.github.com> | 2023-06-20 14:33:09 +1000 |
---|---|---|
committer | Kae <80987908+Novaenia@users.noreply.github.com> | 2023-06-20 14:33:09 +1000 |
commit | 6352e8e3196f78388b6c771073f9e03eaa612673 (patch) | |
tree | e23772f79a7fbc41bc9108951e9e136857484bf4 /source/windowing/StarFuelWidget.hpp | |
parent | 6741a057e5639280d85d0f88ba26f000baa58f61 (diff) |
everything everywhere
all at once
Diffstat (limited to 'source/windowing/StarFuelWidget.hpp')
-rw-r--r-- | source/windowing/StarFuelWidget.hpp | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/source/windowing/StarFuelWidget.hpp b/source/windowing/StarFuelWidget.hpp new file mode 100644 index 0000000..5c9b78f --- /dev/null +++ b/source/windowing/StarFuelWidget.hpp @@ -0,0 +1,41 @@ +#ifndef STAR_FUEL_WIDGET_HPP +#define STAR_FUEL_WIDGET_HPP + +#include "StarWidget.hpp" + +namespace Star { + +STAR_CLASS(FuelWidget); + +class FuelWidget : public Widget { +public: + FuelWidget(); + virtual ~FuelWidget() {} + + virtual void update(); + + void setCurrentFuelLevel(float amount); + void setMaxFuelLevel(float amount); + void setPotentialFuelAmount(float amount); + void setRequestedFuelAmount(float amount); + + void ping(); + +protected: + virtual void renderImpl(); + + float m_fuelLevel; + float m_maxLevel; + float m_potential; + float m_requested; + + float m_pingTimeout; + + unsigned m_fontSize; + +private: +}; + +} + +#endif |