osb/source/frontend/StarSongbookInterface.hpp

29 lines
468 B
C++
Raw Normal View History

#pragma once
2023-06-20 04:33:09 +00:00
#include "StarSongbook.hpp"
#include "StarPane.hpp"
2024-03-15 10:29:14 +00:00
#include "StarListener.hpp"
2023-06-20 04:33:09 +00:00
namespace Star {
STAR_CLASS(Player);
STAR_CLASS(SongbookInterface);
class SongbookInterface : public Pane {
public:
SongbookInterface(PlayerPtr player);
2024-03-08 16:39:39 +00:00
void update(float dt) override;
2023-06-20 04:33:09 +00:00
private:
PlayerPtr m_player;
2024-03-08 16:39:39 +00:00
StringList m_files;
2024-03-15 10:29:14 +00:00
String m_lastSearch;
CallbackListenerPtr m_reloadListener;
2023-06-20 04:33:09 +00:00
bool play();
2024-03-15 10:29:14 +00:00
void refresh(bool reloadFiles = false);
2023-06-20 04:33:09 +00:00
};
}