OpenClonk
C4StartupAboutDlg.h
Go to the documentation of this file.
1 /*
2  * OpenClonk, http://www.openclonk.org
3  *
4  * Copyright (c) 2001-2009, RedWolf Design GmbH, http://www.clonk.de/
5  * Copyright (c) 2013-2016, The OpenClonk Team and contributors
6  *
7  * Distributed under the terms of the ISC license; see accompanying file
8  * "COPYING" for details.
9  *
10  * "Clonk" is a registered trademark of Matthes Bender, used with permission.
11  * See accompanying file "TRADEMARK" for details.
12  *
13  * To redistribute this file separately, substitute the full license texts
14  * for the above references.
15  */
16 // Credits screen
17 
18 #ifndef INC_C4StartupAboutDlg
19 #define INC_C4StartupAboutDlg
20 
21 #include "gui/C4Startup.h"
22 
23 // startup dialog: credits
25 {
26 public:
28  ~C4StartupAboutDlg() override;
29 
30 protected:
31  bool OnEnter() override { DoBack(); return true; }
32  bool OnEscape() override { DoBack(); return true; }
33  void DrawElement(C4TargetFacet &cgo) override;
34  bool KeyBack() { DoBack(); return true; }
35  void OnBackBtn(C4GUI::Control *btn) { DoBack(); }
36  void OnLegalBtn(C4GUI::Control *btn);
37 #ifdef WITH_AUTOMATIC_UPDATE
38  void OnUpdateBtn(C4GUI::Control *btn);
39 #endif
40 
41 private:
42  void DrawPersonList(int title, struct PersonList&, C4Rect& rect);
43  bool SaveCredits();
44 
45  std::unique_ptr<C4KeyBinding> keySaveCredits;
46 public:
47 
48  void DoBack(); // back to main menu
49 };
50 
51 
52 #endif // INC_C4StartupAboutDlg
Definition: C4Rect.h:28
~C4StartupAboutDlg() override
bool OnEnter() override
void OnLegalBtn(C4GUI::Control *btn)
void OnBackBtn(C4GUI::Control *btn)
void DrawElement(C4TargetFacet &cgo) override
bool OnEscape() override