ES-DE/src/components/GuiFastSelect.h

47 lines
937 B
C
Raw Normal View History

#ifndef _GUIFASTSELECT_H_
#define _GUIFASTSELECT_H_
2013-04-08 16:52:40 +00:00
#include "../Gui.h"
#include "../SystemData.h"
#include "../FolderData.h"
#include "../Sound.h"
#include "GuiList.h"
#include "GuiBox.h"
2013-04-08 17:40:15 +00:00
class GuiGameList;
class GuiFastSelect : public Gui
{
public:
GuiFastSelect(Window* window, GuiGameList* parent, GuiList<FileData*>* list, char startLetter, GuiBoxData data, int textcolor, std::shared_ptr<Sound> & scrollsound, Font* font);
~GuiFastSelect();
2013-04-08 16:52:40 +00:00
void input(InputConfig* config, Input input);
void update(int deltaTime);
void render();
private:
static const std::string LETTERS;
static const int SCROLLSPEED;
static const int SCROLLDELAY;
void setListPos();
void scroll();
void setLetterID(int id);
GuiList<FileData*>* mList;
size_t mLetterID;
2013-04-08 17:40:15 +00:00
GuiGameList* mParent;
GuiBox* mBox;
int mTextColor;
int mScrollTimer, mScrollOffset;
bool mScrolling;
std::shared_ptr<Sound> mScrollSound;
2013-03-17 17:16:40 +00:00
Font* mFont;
};
#endif