2013-11-25 20:49:02 +00:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "../GuiComponent.h"
|
2013-12-22 22:16:01 +00:00
|
|
|
#include "../views/gamelist/IGameListView.h"
|
2013-11-25 20:49:02 +00:00
|
|
|
|
2014-03-01 00:52:32 +00:00
|
|
|
#include "../components/NinePatchComponent.h"
|
|
|
|
#include "../components/TextComponent.h"
|
2013-11-25 20:49:02 +00:00
|
|
|
|
|
|
|
class GuiFastSelect : public GuiComponent
|
|
|
|
{
|
|
|
|
public:
|
2013-12-22 22:16:01 +00:00
|
|
|
GuiFastSelect(Window* window, IGameListView* gamelist);
|
2013-11-25 20:49:02 +00:00
|
|
|
|
|
|
|
bool input(InputConfig* config, Input input);
|
|
|
|
void update(int deltaTime);
|
|
|
|
|
|
|
|
private:
|
|
|
|
void setScrollDir(int dir);
|
|
|
|
void scroll();
|
|
|
|
void updateGameListCursor();
|
|
|
|
void updateGameListSort();
|
|
|
|
void updateSortText();
|
|
|
|
|
|
|
|
int mSortId;
|
|
|
|
int mLetterId;
|
|
|
|
|
|
|
|
int mScrollDir;
|
|
|
|
int mScrollAccumulator;
|
|
|
|
|
|
|
|
NinePatchComponent mBackground;
|
|
|
|
TextComponent mSortText;
|
|
|
|
TextComponent mLetterText;
|
|
|
|
|
2013-12-22 22:16:01 +00:00
|
|
|
IGameListView* mGameList;
|
2013-11-25 20:49:02 +00:00
|
|
|
};
|