#ifndef _GUIFASTSELECT_H_ #define _GUIFASTSELECT_H_ #include "../GuiComponent.h" #include "../SystemData.h" #include "../FolderData.h" #include "../Sound.h" #include "TextListComponent.h" #include "GuiBox.h" class GuiGameList; class GuiFastSelect : public GuiComponent { public: GuiFastSelect(Window* window, GuiGameList* parent, TextListComponent* list, char startLetter, GuiBoxData data, int textcolor, std::shared_ptr & scrollsound, Font* font); ~GuiFastSelect(); bool 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); TextListComponent* mList; size_t mLetterID; GuiGameList* mParent; GuiBox* mBox; int mTextColor; int mScrollTimer, mScrollOffset; bool mScrolling; std::shared_ptr mScrollSound; Font* mFont; }; #endif