|
@@ -46,11 +46,12 @@ public:
|
|
|
/// Intercepts and handles key events.
|
|
/// Intercepts and handles key events.
|
|
|
void ProcessEvent(Rml::Event& event) override;
|
|
void ProcessEvent(Rml::Event& event) override;
|
|
|
|
|
|
|
|
- /// Receive notifications when child elements are added
|
|
|
|
|
- /// This will only get called when we're added to the tree,
|
|
|
|
|
- /// which allows us to bind to onload
|
|
|
|
|
|
|
+ /// This will get called when we're added to the tree, which allows us to bind to events.
|
|
|
void OnChildAdd(Rml::Element* element) override;
|
|
void OnChildAdd(Rml::Element* element) override;
|
|
|
|
|
|
|
|
|
|
+ /// This will get called when we're removed from the tree, which allows us to clean up the event listeners previously added.
|
|
|
|
|
+ void OnChildRemove(Element* element) override;
|
|
|
|
|
+
|
|
|
protected:
|
|
protected:
|
|
|
/// Updates the game.
|
|
/// Updates the game.
|
|
|
void OnUpdate() override;
|
|
void OnUpdate() override;
|