source: network-game/client/Client/RadioButtonList.h@ 7ca5d21

Last change on this file since 7ca5d21 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
9using namespace std;
10
11class RadioButtonList :
12 public GuiComponent
13{
14private:
15 string strLabel;
16 vector<string> vctRadioButtons;
17 int selectedButton;
18
19public:
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.