Last change
on this file since 6b641af was 5c95436, checked in by dportnoy <dmp1488@…>, 11 years ago |
Add a RadioButtonList gui control to the client, re-organize the login/registration screen into two separate screens, and allow the player to select their class during registration
|
-
Property mode
set to
100644
|
File size:
539 bytes
|
Line | |
---|
1 | #ifndef _RADIOBUTTONLIST_H
|
---|
2 | #define _RADIOBUTTONLIST_H
|
---|
3 |
|
---|
4 | #include "GuiComponent.h"
|
---|
5 |
|
---|
6 | #include <string>
|
---|
7 | #include <vector>
|
---|
8 |
|
---|
9 | using namespace std;
|
---|
10 |
|
---|
11 | class RadioButtonList :
|
---|
12 | public GuiComponent
|
---|
13 | {
|
---|
14 | private:
|
---|
15 | string strLabel;
|
---|
16 | vector<string> vctRadioButtons;
|
---|
17 | int selectedButton;
|
---|
18 |
|
---|
19 | public:
|
---|
20 | RadioButtonList(int x, int y, string strLabel, ALLEGRO_FONT *font);
|
---|
21 | ~RadioButtonList(void);
|
---|
22 |
|
---|
23 | void draw(ALLEGRO_DISPLAY *display);
|
---|
24 | bool handleEvent(ALLEGRO_EVENT& e);
|
---|
25 |
|
---|
26 | void addRadioButton(string s);
|
---|
27 | int getSelectedButton();
|
---|
28 | };
|
---|
29 |
|
---|
30 | #endif
|
---|
31 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.