ES-DE/src/guis/GuiFastSelect.h
Aloshi 139fc720ac Moved Guis from src/components to src/guis.
Renamed ComponentListComponent to ComponentGrid.
Changed some older files' #ifdefs to #pragma once to be more consistent.
2014-02-28 19:00:38 -06:00

36 lines
693 B
C++

#pragma once
#include "../GuiComponent.h"
#include "../views/gamelist/IGameListView.h"
#include "../components/NinePatchComponent.h"
#include "../components/TextComponent.h"
class GuiFastSelect : public GuiComponent
{
public:
GuiFastSelect(Window* window, IGameListView* gamelist);
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;
IGameListView* mGameList;
};