openclonk/src/gui/C4StartupAboutDlg.h

52 lines
1.3 KiB
C
Raw Permalink Normal View History

2009-05-08 13:28:41 +00:00
/*
* OpenClonk, http://www.openclonk.org
*
* Copyright (c) 2001-2009, RedWolf Design GmbH, http://www.clonk.de/
2016-04-03 18:18:29 +00:00
* Copyright (c) 2013-2016, The OpenClonk Team and contributors
2009-05-08 13:28:41 +00:00
*
* Distributed under the terms of the ISC license; see accompanying file
* "COPYING" for details.
2009-05-08 13:28:41 +00:00
*
* "Clonk" is a registered trademark of Matthes Bender, used with permission.
* See accompanying file "TRADEMARK" for details.
2009-05-08 13:28:41 +00:00
*
* To redistribute this file separately, substitute the full license texts
* for the above references.
2009-05-08 13:28:41 +00:00
*/
// Credits screen
2009-05-08 13:28:41 +00:00
#ifndef INC_C4StartupAboutDlg
#define INC_C4StartupAboutDlg
#include "gui/C4Startup.h"
2009-05-08 13:28:41 +00:00
// startup dialog: credits
class C4StartupAboutDlg : public C4StartupDlg
{
public:
C4StartupAboutDlg();
~C4StartupAboutDlg() override;
2009-05-08 13:28:41 +00:00
protected:
bool OnEnter() override { DoBack(); return true; }
bool OnEscape() override { DoBack(); return true; }
void DrawElement(C4TargetFacet &cgo) override;
bool KeyBack() { DoBack(); return true; }
void OnBackBtn(C4GUI::Control *btn) { DoBack(); }
#ifdef WITH_AUTOMATIC_UPDATE
void OnUpdateBtn(C4GUI::Control *btn);
#endif
2009-05-08 13:28:41 +00:00
2017-12-20 23:02:28 +00:00
private:
void DrawPersonList(int title, struct PersonList&, C4Rect& rect);
bool SaveCredits();
std::unique_ptr<C4KeyBinding> keySaveCredits;
public:
2009-05-08 13:28:41 +00:00
void DoBack(); // back to main menu
};
2009-05-08 13:28:41 +00:00
#endif // INC_C4StartupAboutDlg