openclonk/src/gui/C4StartupAboutDlg.h

65 lines
1.8 KiB
C
Raw Normal View History

2009-05-08 13:28:41 +00:00
/*
* OpenClonk, http://www.openclonk.org
*
* Copyright (c) 2007 Sven Eberhardt
* Copyright (c) 2007 Matthes Bender
2009-05-08 13:28:41 +00:00
* Copyright (c) 2001-2009, RedWolf Design GmbH, http://www.clonk.de
*
* Portions might be copyrighted by other authors who have contributed
* to OpenClonk.
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
* See isc_license.txt for full license and disclaimer.
*
* "Clonk" is a registered trademark of Matthes Bender.
* See clonk_trademark_license.txt for full license.
*/
// 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
{
public:
C4StartupAboutDlg(); // ctor
~C4StartupAboutDlg(); // dtor
private:
class C4KeyBinding *pKeyBack;
C4GUI::Label *pWebCodeLbl;
int32_t iWebCodeTimer;
protected:
virtual int32_t GetMarginTop() { return iDlgMarginY + C4GUI_FullscreenDlg_TitleHeight/2; } // less top margin
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(); }
void OnRegisterBtn(C4GUI::Control *btn);
void OnUpdateBtn(C4GUI::Control *btn);
public:
void OnSec1Timer();
void DoBack(); // back to main menu
//public:
// void RecreateDialog(bool fFade);
};
#endif // INC_C4StartupAboutDlg