29 lines
468 B
C++
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);
|
|
};
|
|
|
|
}
|