This commit is contained in:
2026-03-02 16:18:48 +03:00
parent d87484393d
commit 0a55fef17c
5 changed files with 75 additions and 53 deletions
+3 -1
View File
@@ -7,7 +7,7 @@ class UI {
public:
UI();
void update(const Sorter& sorter, bool isPlaying, bool isFinished, float stepDelay, const Array& array);
void update(const Sorter& sorter, bool isPlaying, bool isFinished, int stepsPerFrame, const Array& array);
void draw(sf::RenderWindow& window);
private:
@@ -18,5 +18,7 @@ private:
sf::Text swapsText_;
sf::Text speedText_;
sf::Text controlsText_;
sf::RectangleShape leftBackground_;
sf::RectangleShape rightBackground_;
bool fontLoaded_;
};