This repository has been archived on 2025-03-20. You can view files and clone it, but cannot push or open issues or pull requests.
The-Powder-Toy/src/gui/interface/ProgressBar.h

22 lines
459 B
C++

#pragma once
#include "Component.h"
namespace ui
{
class ProgressBar: public Component
{
int progress;
float intermediatePos;
String progressStatus;
public:
ProgressBar(Point position, Point size, int startProgress = 0, String startStatus = String());
void SetProgress(int progress);
int GetProgress();
void SetStatus(String status);
String GetStatus();
void Draw(const Point & screenPos) override;
void Tick(float dt) override;
};
}