mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2024-11-24 07:05:39 +00:00
65701c58c1
Menu scroll sound now also applies to the fast select menu.
44 lines
872 B
C++
44 lines
872 B
C++
#ifndef _GUIFASTSELECT_H_
|
|
#define _GUIFASTSELECT_H_
|
|
|
|
#include "../GuiComponent.h"
|
|
#include "../SystemData.h"
|
|
#include "../FolderData.h"
|
|
#include "../Sound.h"
|
|
#include "GuiList.h"
|
|
#include "GuiBox.h"
|
|
|
|
class GuiFastSelect : GuiComponent
|
|
{
|
|
public:
|
|
GuiFastSelect(GuiComponent* parent, GuiList<FileData*>* list, char startLetter, GuiBoxData data, int textcolor, Sound* scrollsound);
|
|
~GuiFastSelect();
|
|
|
|
void onRender();
|
|
void onInput(InputManager::InputButton button, bool keyDown);
|
|
void onTick(int deltaTime);
|
|
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;
|
|
GuiComponent* mParent;
|
|
|
|
GuiBox* mBox;
|
|
int mTextColor;
|
|
|
|
int mScrollTimer, mScrollOffset;
|
|
bool mScrolling;
|
|
|
|
Sound* mScrollSound;
|
|
};
|
|
|
|
#endif
|