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
24
class
C4StartupAboutDlg
:
public
C4StartupDlg
25
{
26
public
:
27
C4StartupAboutDlg
();
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
C4Startup.h
C4GUI::Control
Definition:
C4Gui.h:1047
C4Rect
Definition:
C4Rect.h:28
C4StartupAboutDlg
Definition:
C4StartupAboutDlg.h:25
C4StartupAboutDlg::DoBack
void DoBack()
Definition:
C4StartupAboutDlg.cpp:326
C4StartupAboutDlg::C4StartupAboutDlg
C4StartupAboutDlg()
Definition:
C4StartupAboutDlg.cpp:235
C4StartupAboutDlg::~C4StartupAboutDlg
~C4StartupAboutDlg() override
C4StartupAboutDlg::OnEnter
bool OnEnter() override
Definition:
C4StartupAboutDlg.h:31
C4StartupAboutDlg::OnLegalBtn
void OnLegalBtn(C4GUI::Control *btn)
Definition:
C4StartupAboutDlg.cpp:342
C4StartupAboutDlg::OnBackBtn
void OnBackBtn(C4GUI::Control *btn)
Definition:
C4StartupAboutDlg.h:35
C4StartupAboutDlg::DrawElement
void DrawElement(C4TargetFacet &cgo) override
Definition:
C4StartupAboutDlg.cpp:331
C4StartupAboutDlg::KeyBack
bool KeyBack()
Definition:
C4StartupAboutDlg.h:34
C4StartupAboutDlg::OnEscape
bool OnEscape() override
Definition:
C4StartupAboutDlg.h:32
C4StartupDlg
Definition:
C4Startup.h:96
C4TargetFacet
Definition:
C4Facet.h:160
PersonList
Definition:
C4StartupAboutDlg.cpp:28
openclonk
src
gui
C4StartupAboutDlg.h
Generated on Fri May 16 2025 04:33:17 for OpenClonk by
1.9.1