/src/gui/C4StartupAboutDlg.h
C++ Header | 64 lines | 28 code | 13 blank | 23 comment | 0 complexity | 43186877b5866968f6d4ea9f317e8648 MD5 | raw file
Possible License(s): WTFPL, 0BSD, LGPL-2.1, CC-BY-3.0
1/*
2 * OpenClonk, http://www.openclonk.org
3 *
4 * Copyright (c) 2007 Sven Eberhardt
5 * Copyright (c) 2007 Matthes Bender
6 * Copyright (c) 2001-2009, RedWolf Design GmbH, http://www.clonk.de
7 *
8 * Portions might be copyrighted by other authors who have contributed
9 * to OpenClonk.
10 *
11 * Permission to use, copy, modify, and/or distribute this software for any
12 * purpose with or without fee is hereby granted, provided that the above
13 * copyright notice and this permission notice appear in all copies.
14 * See isc_license.txt for full license and disclaimer.
15 *
16 * "Clonk" is a registered trademark of Matthes Bender.
17 * See clonk_trademark_license.txt for full license.
18 */
19// About/credits screen
20
21#ifndef INC_C4StartupAboutDlg
22#define INC_C4StartupAboutDlg
23
24#include "C4Startup.h"
25
26// webcode show time
27const int32_t C4AboutWebCodeShowTime = 25; // seconds
28
29// startup dialog: About
30class C4StartupAboutDlg : public C4StartupDlg, private C4ApplicationSec1Timer
31 {
32 public:
33 C4StartupAboutDlg(); // ctor
34 ~C4StartupAboutDlg(); // dtor
35
36 private:
37 class C4KeyBinding *pKeyBack;
38 C4GUI::Label *pWebCodeLbl;
39 int32_t iWebCodeTimer;
40
41 protected:
42 virtual int32_t GetMarginTop() { return iDlgMarginY + C4GUI_FullscreenDlg_TitleHeight/2; } // less top margin
43
44 virtual void MouseInput(C4GUI::CMouse &rMouse, int32_t iButton, int32_t iX, int32_t iY, DWORD dwKeyParam); // input: back on any button
45 virtual bool OnEnter() { DoBack(); return true; }
46 virtual bool OnEscape() { DoBack(); return true; }
47 virtual void DrawElement(C4TargetFacet &cgo);
48 bool KeyBack() { DoBack(); return true; }
49 void OnBackBtn(C4GUI::Control *btn) { DoBack(); }
50 void OnRegisterBtn(C4GUI::Control *btn);
51 void OnUpdateBtn(C4GUI::Control *btn);
52
53 public:
54 void OnSec1Timer();
55
56 void DoBack(); // back to main menu
57
58 //public:
59 // void RecreateDialog(bool fFade);
60
61 };
62
63
64#endif // INC_C4StartupAboutDlg