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/
|
|
|
|
* Copyright (c) 2013, 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
|
|
|
*/
|
|
|
|
// About/credits screen
|
|
|
|
|
|
|
|
#ifndef INC_C4StartupAboutDlg
|
|
|
|
#define INC_C4StartupAboutDlg
|
|
|
|
|
|
|
|
#include "C4Startup.h"
|
|
|
|
|
|
|
|
// webcode show time
|
|
|
|
const int32_t C4AboutWebCodeShowTime = 25; // seconds
|
|
|
|
|
|
|
|
// startup dialog: About
|
|
|
|
class C4StartupAboutDlg : public C4StartupDlg, private C4ApplicationSec1Timer
|
2010-03-28 17:58:21 +00:00
|
|
|
{
|
|
|
|
public:
|
|
|
|
C4StartupAboutDlg(); // ctor
|
|
|
|
~C4StartupAboutDlg(); // dtor
|
2009-05-08 13:28:41 +00:00
|
|
|
|
2010-03-28 17:58:21 +00:00
|
|
|
private:
|
|
|
|
class C4KeyBinding *pKeyBack;
|
|
|
|
C4GUI::Label *pWebCodeLbl;
|
|
|
|
int32_t iWebCodeTimer;
|
2009-05-08 13:28:41 +00:00
|
|
|
|
2010-03-28 17:58:21 +00:00
|
|
|
protected:
|
|
|
|
virtual int32_t GetMarginTop() { return iDlgMarginY + C4GUI_FullscreenDlg_TitleHeight/2; } // less top margin
|
2009-05-08 13:28:41 +00:00
|
|
|
|
2010-03-28 17:58:21 +00:00
|
|
|
virtual void MouseInput(C4GUI::CMouse &rMouse, int32_t iButton, int32_t iX, int32_t iY, DWORD dwKeyParam); // input: back on any button
|
|
|
|
virtual bool OnEnter() { DoBack(); return true; }
|
|
|
|
virtual bool OnEscape() { DoBack(); return true; }
|
|
|
|
virtual void DrawElement(C4TargetFacet &cgo);
|
|
|
|
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
|
|
|
|
2010-03-28 17:58:21 +00:00
|
|
|
public:
|
|
|
|
void OnSec1Timer();
|
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
|
|
|
|
|
|
|
//public:
|
2010-03-28 17:58:21 +00:00
|
|
|
// void RecreateDialog(bool fFade);
|
2009-05-08 13:28:41 +00:00
|
|
|
|
2010-03-28 17:58:21 +00:00
|
|
|
};
|
2009-05-08 13:28:41 +00:00
|
|
|
|
|
|
|
|
|
|
|
#endif // INC_C4StartupAboutDlg
|