/src/gui/C4StartupAboutDlg.h

https://bitbucket.org/randrian/openclonk2 · C++ Header · 64 lines · 28 code · 13 blank · 23 comment · 0 complexity · 43186877b5866968f6d4ea9f317e8648 MD5 · raw file

  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. #ifndef INC_C4StartupAboutDlg
  21. #define INC_C4StartupAboutDlg
  22. #include "C4Startup.h"
  23. // webcode show time
  24. const int32_t C4AboutWebCodeShowTime = 25; // seconds
  25. // startup dialog: About
  26. class C4StartupAboutDlg : public C4StartupDlg, private C4ApplicationSec1Timer
  27. {
  28. public:
  29. C4StartupAboutDlg(); // ctor
  30. ~C4StartupAboutDlg(); // dtor
  31. private:
  32. class C4KeyBinding *pKeyBack;
  33. C4GUI::Label *pWebCodeLbl;
  34. int32_t iWebCodeTimer;
  35. protected:
  36. virtual int32_t GetMarginTop() { return iDlgMarginY + C4GUI_FullscreenDlg_TitleHeight/2; } // less top margin
  37. virtual void MouseInput(C4GUI::CMouse &rMouse, int32_t iButton, int32_t iX, int32_t iY, DWORD dwKeyParam); // input: back on any button
  38. virtual bool OnEnter() { DoBack(); return true; }
  39. virtual bool OnEscape() { DoBack(); return true; }
  40. virtual void DrawElement(C4TargetFacet &cgo);
  41. bool KeyBack() { DoBack(); return true; }
  42. void OnBackBtn(C4GUI::Control *btn) { DoBack(); }
  43. void OnRegisterBtn(C4GUI::Control *btn);
  44. void OnUpdateBtn(C4GUI::Control *btn);
  45. public:
  46. void OnSec1Timer();
  47. void DoBack(); // back to main menu
  48. //public:
  49. // void RecreateDialog(bool fFade);
  50. };
  51. #endif // INC_C4StartupAboutDlg