osb/source/windowing/StarFuelWidget.hpp
Kae ca1426eabc Lua chat callbacks + better font styling
golly gee whiz!! i hope i didn't fuck something up
2024-04-22 06:07:59 +10:00

39 lines
582 B
C++

#pragma once
#include "StarWidget.hpp"
namespace Star {
STAR_CLASS(FuelWidget);
class FuelWidget : public Widget {
public:
FuelWidget();
virtual ~FuelWidget() {}
virtual void update(float dt);
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;
TextStyle m_textStyle;
private:
};
}