HoverRace  2.0
PaletteScene.h
Go to the documentation of this file.
1 
2 // PaletteScene.h
3 //
4 // Copyright (c) 2013-2015 Michael Imamura.
5 //
6 // Licensed under GrokkSoft HoverRace SourceCode License v1.0(the "License");
7 // you may not use this file except in compliance with the License.
8 //
9 // A copy of the license should have been attached to the package from which
10 // you have taken this file. If you can not find the license you can not use
11 // this file.
12 //
13 //
14 // The author makes no representations about the suitability of
15 // this software for any purpose. It is provided "as is" "AS IS",
16 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
17 // implied.
18 //
19 // See the License for the specific language governing permissions
20 // and limitations under the License.
21 
22 #pragma once
23 
24 #include "../../engine/Util/Config.h"
25 
26 #include "GameDirector.h"
27 
28 #include "UiScene.h"
29 
30 namespace HoverRace {
31  namespace Display {
32  class Display;
33  class Label;
34  }
35 }
36 
37 namespace HoverRace {
38 namespace Client {
39 
44 class PaletteScene : public UiScene
45 {
46  typedef UiScene SUPER;
47  public:
49  virtual ~PaletteScene();
50 
51  public:
52  bool IsMouseCursorEnabled() const override { return false; }
53 
54  protected:
55  virtual void OnOk();
56 
57  public:
58  void AttachController(Control::InputEventController &controller,
59  ConnList &conns) override;
60  void PrepareRender() override { }
61  void Render() override;
62 
63  private:
66 };
67 
68 } // namespace HoverScript
69 } // namespace Client
GameDirector & director
Definition: PaletteScene.h:64
Interface for game client shells.
Definition: GameDirector.h:57
Base class for UI-centric scenes.
Definition: UiScene.h:42
Display::Display & display
Definition: PaletteScene.h:65
GameDirector & director
Definition: TestLabScene.cpp:160
std::array< boost::signals2::scoped_connection, 2 > conns
Definition: ProfileEditScene.cpp:152
bool IsMouseCursorEnabled() const override
Determine if the mouse cursor is enabled for this scene.
Definition: PaletteScene.h:52
void PrepareRender() override
Definition: PaletteScene.h:60
Base class for display managers.
Definition: Display.h:73
Draws a color grid to debug the color palette of the legacy display.
Definition: PaletteScene.h:44
Tracks connections as a group.
Definition: Scene.h:69
Definition: Announcement.h:24
UiScene SUPER
Definition: PaletteScene.h:46
Translates input events into actions.
Definition: Controller.h:106