mirror of
https://github.com/HowestDAE/dae16-VerhulstBram.git
synced 2025-12-16 21:01:48 +01:00
Add Main UI, Fuel meter. Add particles to player digging
This commit is contained in:
@@ -5,23 +5,26 @@
|
||||
|
||||
class TextureManager;
|
||||
|
||||
class GuiMeter : public GuiElement
|
||||
class GuiMeter final : public GuiElement
|
||||
{
|
||||
public:
|
||||
GuiMeter() = default;
|
||||
GuiMeter(const std::string& filePath, Vector2f pos, Vector2f frameSize, int frameCount, TextureManager* manager);
|
||||
virtual ~GuiMeter();
|
||||
GuiMeter(const std::string& filePath, Vector2f pos, Vector2f frameSize, Vector2f drawSize, int frameCount, TextureManager* manager);
|
||||
GuiMeter(GuiMeter& other) = delete;
|
||||
GuiMeter& operator=(const GuiMeter& other) = delete;
|
||||
GuiMeter(GuiMeter&& other) = delete;
|
||||
GuiMeter& operator=(GuiMeter&& other) = delete;
|
||||
virtual ~GuiMeter() override;
|
||||
|
||||
virtual void Draw() const override;
|
||||
virtual void Update(float elapsedSec) override;
|
||||
|
||||
void SetValue(float value) {
|
||||
m_Value = value;
|
||||
}
|
||||
void SetValue(float value);
|
||||
|
||||
private:
|
||||
Animation* m_Animation{ nullptr };
|
||||
Animation* m_Animation{ nullptr };
|
||||
Vector2f m_Position;
|
||||
Vector2f m_DrawSize;
|
||||
|
||||
float m_Value{ 0.0f };
|
||||
const float m_MaxValue{ 100.0f };
|
||||
|
||||
Reference in New Issue
Block a user