PageRenderTime 33ms CodeModel.GetById 30ms app.highlight 2ms RepoModel.GetById 0ms app.codeStats 0ms

/src/MenuConfirm.h

http://github.com/clintbellanger/flare
C Header | 45 lines | 20 code | 9 blank | 16 comment | 0 complexity | 23007118a09c0c2849ae93289186e927 MD5 | raw file
Possible License(s): GPL-3.0
 1/*
 2Copyright 2011 Clint Bellanger
 3
 4This file is part of FLARE.
 5
 6FLARE is free software: you can redistribute it and/or modify it under the terms
 7of the GNU General Public License as published by the Free Software Foundation,
 8either version 3 of the License, or (at your option) any later version.
 9
10FLARE is distributed in the hope that it will be useful, but WITHOUT ANY
11WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
12PARTICULAR PURPOSE.  See the GNU General Public License for more details.
13
14You should have received a copy of the GNU General Public License along with
15FLARE.  If not, see http://www.gnu.org/licenses/
16*/
17
18#ifndef MENU_CONFIRM_H
19#define MENU_CONFIRM_H
20
21#include "Menu.h"
22#include "WidgetButton.h"
23#include <SDL_image.h>
24
25
26class MenuConfirm : public Menu {
27protected:
28	void loadGraphics();
29
30	WidgetButton *buttonConfirm;
31	WidgetButton *buttonClose;
32	WidgetLabel label;
33
34	std::string boxMsg;
35public:
36	MenuConfirm(const std::string&, const std::string&);
37	~MenuConfirm();
38
39	void logic();
40	virtual void render();
41
42	bool confirmClicked;
43};
44
45#endif