mirror of
https://github.com/HowestDAE/dae16-VerhulstBram.git
synced 2025-12-16 21:01:48 +01:00
Fix digging
This commit is contained in:
25
Game/Gui/GuiMeter.h
Normal file
25
Game/Gui/GuiMeter.h
Normal file
@@ -0,0 +1,25 @@
|
||||
#pragma once
|
||||
#include "GuiElement.h"
|
||||
#include "Texture.h"
|
||||
#include "Animations/Animation.h"
|
||||
|
||||
class TextureManager;
|
||||
|
||||
class GuiMeter : public GuiElement
|
||||
{
|
||||
public:
|
||||
GuiMeter() = default;
|
||||
GuiMeter(const std::string& filePath, Vector2f pos, Vector2f frameSize, int frameCount, TextureManager* manager);
|
||||
virtual ~GuiMeter();
|
||||
|
||||
virtual void Draw() const override;
|
||||
virtual void Update(float elapsedSec) override;
|
||||
|
||||
private:
|
||||
Animation* m_Animation{ nullptr };
|
||||
Vector2f m_Position;
|
||||
|
||||
float m_Value{ 0.0f };
|
||||
|
||||
int m_FrameCount;
|
||||
};
|
||||
Reference in New Issue
Block a user