-
Notifications
You must be signed in to change notification settings - Fork 0
/
UIOptionsScreen.h
44 lines (35 loc) · 903 Bytes
/
UIOptionsScreen.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
/*
* UIOptionsScreen.h
* tractionedge
*
* Created by Steven Hamilton on 15/05/10.
* Copyright 2010 scorch.org. All rights reserved.
*
*/
#ifndef __UIOPTIONS_H__
#define __UIOPTIONS_H__
#include "UIView.h"
class UIOptionsScreen : public UIView {
private:
std::vector<std::string> strings;
std::vector<Position> positions;
std::vector<int> colors;
std::vector<int> sizes;
std::vector<fontStyle_t> styles;
std::vector<font_t> fonts;
void clearArrays();
void addToArrays(std::string, Position, int, font_t, fontStyle_t, int);
int defaultColor;
font_t defaultFont;
fontStyle_t defaultStyle;
int defaultSize;
std::vector<std::string> options;
std::vector<std::string>::iterator optionsIt;
std::vector<std::string>::iterator selectedOptionIt;
public:
UIOptionsScreen();
~UIOptionsScreen();
virtual void draw();
virtual event_t process(event_t);
};
#endif