| 8 | const int GuiFastSelect::SCROLLDELAY = 507; |
| 9 | |
| 10 | GuiFastSelect::GuiFastSelect(Window* window, GuiGameList* parent, TextListComponent<FileData*>* list, char startLetter, ThemeComponent * theme) |
| 11 | : GuiComponent(window), mParent(parent), mList(list), mTheme(theme) |
| 12 | { |
| 13 | mLetterID = LETTERS.find(toupper(startLetter)); |
| 14 | if(mLetterID == std::string::npos) |
| 15 | mLetterID = 0; |
| 16 | |
| 17 | mScrollSound = mTheme->getSound("menuScroll"); |
| 18 | mTextColor = mTheme->getColor("fastSelect"); |
| 19 | |
| 20 | mScrolling = false; |
| 21 | mScrollTimer = 0; |
| 22 | mScrollOffset = 0; |
| 23 | |
| 24 | unsigned int sw = Renderer::getScreenWidth(), sh = Renderer::getScreenHeight(); |
| 25 | mBox = new GuiBox(window, sw * 0.2f, sh * 0.2f, sw * 0.6f, sh * 0.6f); |
| 26 | mBox->setData(mTheme->getBoxData()); |
| 27 | } |
| 28 | |
| 29 | GuiFastSelect::~GuiFastSelect() |
| 30 | { |
nothing calls this directly
no test coverage detected