osb/source/frontend/StarSongbookInterface.hpp
2024-03-15 21:29:14 +11:00

29 lines
468 B
C++

#pragma once
#include "StarSongbook.hpp"
#include "StarPane.hpp"
#include "StarListener.hpp"
namespace Star {
STAR_CLASS(Player);
STAR_CLASS(SongbookInterface);
class SongbookInterface : public Pane {
public:
SongbookInterface(PlayerPtr player);
void update(float dt) override;
private:
PlayerPtr m_player;
StringList m_files;
String m_lastSearch;
CallbackListenerPtr m_reloadListener;
bool play();
void refresh(bool reloadFiles = false);
};
}