This commit is contained in:
2026-03-02 15:48:49 +03:00
parent 7cdd2068be
commit d87484393d
21 changed files with 986 additions and 7 deletions
+22
View File
@@ -0,0 +1,22 @@
#pragma once
#include <SFML/Graphics.hpp>
#include "Sorter.hpp"
#include <string>
class UI {
public:
UI();
void update(const Sorter& sorter, bool isPlaying, bool isFinished, float stepDelay, const Array& array);
void draw(sf::RenderWindow& window);
private:
sf::Font font_;
sf::Text algorithmText_;
sf::Text stateText_;
sf::Text comparisonsText_;
sf::Text swapsText_;
sf::Text speedText_;
sf::Text controlsText_;
bool fontLoaded_;
};