2009-05-08 13:28:41 +00:00
|
|
|
/*
|
|
|
|
* OpenClonk, http://www.openclonk.org
|
|
|
|
*
|
2013-12-17 20:01:09 +00:00
|
|
|
* 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
|
|
|
*
|
2013-12-17 20:01:09 +00:00
|
|
|
* Distributed under the terms of the ISC license; see accompanying file
|
|
|
|
* "COPYING" for details.
|
2009-05-08 13:28:41 +00:00
|
|
|
*
|
2013-12-17 20:01:09 +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
|
|
|
*
|
2013-12-17 20:01:09 +00:00
|
|
|
* To redistribute this file separately, substitute the full license texts
|
|
|
|
* for the above references.
|
2009-05-08 13:28:41 +00:00
|
|
|
*/
|
2014-01-24 08:33:47 +00:00
|
|
|
// Credits screen
|
2009-05-08 13:28:41 +00:00
|
|
|
|
|
|
|
#ifndef INC_C4StartupAboutDlg
|
|
|
|
#define INC_C4StartupAboutDlg
|
|
|
|
|
2016-04-03 18:07:56 +00:00
|
|
|
#include "gui/C4Startup.h"
|
2009-05-08 13:28:41 +00:00
|
|
|
|
2014-01-24 08:33:47 +00:00
|
|
|
// startup dialog: credits
|
|
|
|
class C4StartupAboutDlg : public C4StartupDlg
|
2010-03-28 17:58:21 +00:00
|
|
|
{
|
|
|
|
public:
|
2014-01-24 08:33:47 +00:00
|
|
|
C4StartupAboutDlg();
|
2017-05-07 11:50:00 +00:00
|
|
|
~C4StartupAboutDlg() override;
|
2009-05-08 13:28:41 +00:00
|
|
|
|
2010-03-28 17:58:21 +00:00
|
|
|
protected:
|
2017-05-07 11:50:00 +00:00
|
|
|
bool OnEnter() override { DoBack(); return true; }
|
|
|
|
bool OnEscape() override { DoBack(); return true; }
|
|
|
|
void DrawElement(C4TargetFacet &cgo) override;
|
2010-03-28 17:58:21 +00:00
|
|
|
bool KeyBack() { DoBack(); return true; }
|
|
|
|
void OnBackBtn(C4GUI::Control *btn) { DoBack(); }
|
2010-12-26 20:39:52 +00:00
|
|
|
#ifdef WITH_AUTOMATIC_UPDATE
|
2010-03-28 17:58:21 +00:00
|
|
|
void OnUpdateBtn(C4GUI::Control *btn);
|
2010-12-26 20:39:52 +00:00
|
|
|
#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);
|
2018-01-31 20:05:06 +00:00
|
|
|
bool SaveCredits();
|
|
|
|
|
|
|
|
std::unique_ptr<C4KeyBinding> keySaveCredits;
|
2010-03-28 17:58:21 +00:00
|
|
|
public:
|
2009-05-08 13:28:41 +00:00
|
|
|
|
2010-03-28 17:58:21 +00:00
|
|
|
void DoBack(); // back to main menu
|
|
|
|
};
|
2009-05-08 13:28:41 +00:00
|
|
|
|
|
|
|
|
|
|
|
#endif // INC_C4StartupAboutDlg
|