Emergency 20 Dokumentation  4.2.0
MultiplayerHelpWindow.h
Go to the documentation of this file.
1 // Copyright (C) 2012-2018 Promotion Software GmbH
2 
3 
4 //[-------------------------------------------------------]
5 //[ Header guard ]
6 //[-------------------------------------------------------]
7 #pragma once
8 
9 
10 //[-------------------------------------------------------]
11 //[ Includes ]
12 //[-------------------------------------------------------]
14 
15 #include <vector>
16 
17 
18 //[-------------------------------------------------------]
19 //[ Forward declarations ]
20 //[-------------------------------------------------------]
21 namespace Rocket
22 {
23  namespace Core
24  {
25  class ElementText;
26  }
27 }
28 
29 
30 //[-------------------------------------------------------]
31 //[ Namespace ]
32 //[-------------------------------------------------------]
33 namespace em5
34 {
35 
36 
37  //[-------------------------------------------------------]
38  //[ Classes ]
39  //[-------------------------------------------------------]
45  {
46 
47 
48  //[-------------------------------------------------------]
49  //[ Public methods ]
50  //[-------------------------------------------------------]
51  public:
52  explicit MultiplayerHelpWindow(qsf::GuiContext& guiContext);
53  virtual ~MultiplayerHelpWindow();
54 
55  void showHelp(bool isPvPMode);
56 
57 
58  //[-------------------------------------------------------]
59  //[ Public virtual qsf::GuiDocument methods ]
60  //[-------------------------------------------------------]
61  public:
62  virtual void processEvent(const std::string& eventKey, Rocket::Core::Event& event) override;
63 
64 
65  //[-------------------------------------------------------]
66  //[ Protected virtual em5::GuiHotReloadSupport methods ]
67  //[-------------------------------------------------------]
68  protected:
69  virtual void onReloadGui() override;
70 
71 
72  //[-------------------------------------------------------]
73  //[ Private methods ]
74  //[-------------------------------------------------------]
75  private:
76  void setupUI();
77  void hideAllHelpPages();
78 
79 
80  //[-------------------------------------------------------]
81  //[ Private data ]
82  //[-------------------------------------------------------]
83  private:
84  std::vector<Rocket::Core::Element*> mCOOPHelpPages;
85  std::vector<Rocket::Core::Element*> mPVPHelpPages;
86  bool mIsPVPMode;
87  uint32 mCurrentHelpPage;
88  Rocket::Core::Element* mLobbyStatusElement;
89 
90 
91  };
92 
93 
94 //[-------------------------------------------------------]
95 //[ Namespace ]
96 //[-------------------------------------------------------]
97 } // em5
Definition: ActionPriority.h:13
unsigned int uint32
Definition: PlatformTypes.h:181
Multiplayer help window.
Definition: MultiplayerHelpWindow.h:44
A base class which adds GUI hot reloading support to an GUI document.
Definition: GuiHotReloadSupport.h:34
Definition: OverlayComponent.h:29
virtual void onReloadGui() override
Gets called when the GUI should be reloaded.
Ingame Graphical User Interface (GUI) context class.
Definition: GuiContext.h:62
MultiplayerHelpWindow(qsf::GuiContext &guiContext)
virtual void processEvent(const std::string &eventKey, Rocket::Core::Event &event) override
void showHelp(bool isPvPMode)