| 465d2e3f |
sago007 |
2020-06-28 08:40 |
1 |
/* |
| 465d2e3f |
sago007 |
2020-06-28 08:40 |
2 |
=========================================================================== |
| 465d2e3f |
sago007 |
2020-06-28 08:40 |
3 |
blockattack - Block Attack - Rise of the Blocks |
| 465d2e3f |
sago007 |
2020-06-28 08:40 |
4 |
Copyright (C) 2005-2020 Poul Sander |
| 465d2e3f |
sago007 |
2020-06-28 08:40 |
5 |
|
| 465d2e3f |
sago007 |
2020-06-28 08:40 |
6 |
This program is free software: you can redistribute it and/or modify |
| 465d2e3f |
sago007 |
2020-06-28 08:40 |
7 |
it under the terms of the GNU General Public License as published by |
| 465d2e3f |
sago007 |
2020-06-28 08:40 |
8 |
the Free Software Foundation, either version 2 of the License, or |
| 465d2e3f |
sago007 |
2020-06-28 08:40 |
9 |
(at your option) any later version. |
| 465d2e3f |
sago007 |
2020-06-28 08:40 |
10 |
|
| 465d2e3f |
sago007 |
2020-06-28 08:40 |
11 |
This program is distributed in the hope that it will be useful, |
| 465d2e3f |
sago007 |
2020-06-28 08:40 |
12 |
but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 465d2e3f |
sago007 |
2020-06-28 08:40 |
13 |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 465d2e3f |
sago007 |
2020-06-28 08:40 |
14 |
GNU General Public License for more details. |
| 465d2e3f |
sago007 |
2020-06-28 08:40 |
15 |
|
| 465d2e3f |
sago007 |
2020-06-28 08:40 |
16 |
You should have received a copy of the GNU General Public License |
| 465d2e3f |
sago007 |
2020-06-28 08:40 |
17 |
along with this program. If not, see http://www.gnu.org/licenses/ |
| 465d2e3f |
sago007 |
2020-06-28 08:40 |
18 |
|
| 465d2e3f |
sago007 |
2020-06-28 08:40 |
19 |
Source information and contacts persons can be found at |
| 465d2e3f |
sago007 |
2020-06-28 08:40 |
20 |
https://blockattack.net |
| 465d2e3f |
sago007 |
2020-06-28 08:40 |
21 |
=========================================================================== |
| 465d2e3f |
sago007 |
2020-06-28 08:40 |
22 |
*/ |
| 465d2e3f |
sago007 |
2020-06-28 08:40 |
23 |
|
| d7f4a888 |
sago007 |
2020-06-28 09:22 |
24 |
|
| d7f4a888 |
sago007 |
2020-06-28 09:22 |
25 |
#ifndef _HELP_COMMON_HPP |
| d7f4a888 |
sago007 |
2020-06-28 09:22 |
26 |
#define _HELP_COMMON_HPP |
| d7f4a888 |
sago007 |
2020-06-28 09:22 |
27 |
|
| ec3f09de |
Poul Sander |
2022-01-29 14:33 |
28 |
#include "sago/GameStateInterface.hpp" |
| 465d2e3f |
sago007 |
2020-06-28 08:40 |
29 |
#include "sago/SagoTextBox.hpp" |
| 465d2e3f |
sago007 |
2020-06-28 08:40 |
30 |
#include "sago/SagoTextField.hpp" |
| 465d2e3f |
sago007 |
2020-06-28 08:40 |
31 |
|
| 465d2e3f |
sago007 |
2020-06-28 08:40 |
32 |
|
| 465d2e3f |
sago007 |
2020-06-28 08:40 |
33 |
void setHelp30Font(const sago::SagoDataHolder* holder, sago::SagoTextField& field, const char* text); |
| 465d2e3f |
sago007 |
2020-06-28 08:40 |
34 |
void setHelp30Font(const sago::SagoDataHolder* holder, sago::SagoTextBox& field, const char* text); |
| 46404443 |
sago007 |
2020-06-28 08:53 |
35 |
|
| 46404443 |
sago007 |
2020-06-28 08:53 |
36 |
void setHelpBoxFont(const sago::SagoDataHolder* holder, sago::SagoTextBox& field, const char* text); |
| d7f4a888 |
sago007 |
2020-06-28 09:22 |
37 |
|
| ec3f09de |
Poul Sander |
2022-01-29 14:33 |
38 |
class HelpCommonState : public sago::GameStateInterface { |
| ec3f09de |
Poul Sander |
2022-01-29 14:33 |
39 |
public: |
| ec3f09de |
Poul Sander |
2022-01-29 14:33 |
40 |
HelpCommonState(); |
| ec3f09de |
Poul Sander |
2022-01-29 14:33 |
41 |
HelpCommonState(const HelpCommonState& orig) = delete; |
| ec3f09de |
Poul Sander |
2022-01-29 14:33 |
42 |
virtual ~HelpCommonState(); |
| ec3f09de |
Poul Sander |
2022-01-29 14:33 |
43 |
|
| ec3f09de |
Poul Sander |
2022-01-29 14:33 |
44 |
bool IsActive() override; |
| ec3f09de |
Poul Sander |
2022-01-29 14:33 |
45 |
void ProcessInput(const SDL_Event& event, bool &processed) override; |
| ec3f09de |
Poul Sander |
2022-01-29 14:33 |
46 |
void Draw(SDL_Renderer* target) override; |
| ec3f09de |
Poul Sander |
2022-01-29 14:33 |
47 |
void Update() override; |
| ec3f09de |
Poul Sander |
2022-01-29 14:33 |
48 |
const int buttonOffset = 160; |
| ec3f09de |
Poul Sander |
2022-01-29 14:33 |
49 |
|
| ec3f09de |
Poul Sander |
2022-01-29 14:33 |
50 |
private: |
| ec3f09de |
Poul Sander |
2022-01-29 14:33 |
51 |
bool isActive = true; |
| ec3f09de |
Poul Sander |
2022-01-29 14:33 |
52 |
bool bMouseUp = true; |
| ec3f09de |
Poul Sander |
2022-01-29 14:33 |
53 |
}; |
| ec3f09de |
Poul Sander |
2022-01-29 14:33 |
54 |
|
| d7f4a888 |
sago007 |
2020-06-28 09:22 |
55 |
#endif //_HELP_COMMON_HPP |
|
|
1970-01-01 00:00 |
56 |
|