diff options
Diffstat (limited to 'ToolSelector.h')
-rw-r--r-- | ToolSelector.h | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/ToolSelector.h b/ToolSelector.h index e3c77af..e2ce48a 100644 --- a/ToolSelector.h +++ b/ToolSelector.h @@ -26,10 +26,6 @@ class ToolSelector : public Tool, public EventHandler { return "ToolSelector"; } - virtual void activate() { - editManager->highlightHoveredObject(); - } - virtual const char *getName() const { return "Select"; } @@ -42,18 +38,16 @@ class ToolSelector : public Tool, public EventHandler { return image; } + virtual bool hoverFilter(const LevelObject &object) const { + return true; + } + virtual EventHandler *getEventHandler() { return this; } virtual bool buttonPress(unsigned int button, const Vertex *v); - virtual bool motion(const Vertex *v) { - editManager->highlightHoveredObject(); - - return true; - } - virtual Sidebar* getSidebar() { return &sidebar; } |