Fix tool buttons

This commit is contained in:
Simon Robertshaw 2012-08-14 14:00:39 +01:00
parent e420ee51b1
commit d5e57e04d0
2 changed files with 2 additions and 2 deletions

View File

@ -20,7 +20,7 @@ void ToolButton::OnMouseClick(int x, int y, unsigned int button)
isButtonDown = true; isButtonDown = true;
} }
void ToolButton::OnMouseUp(int x, int y, unsigned int button) void ToolButton::OnMouseUnclick(int x, int y, unsigned int button)
{ {
if(isButtonDown) if(isButtonDown)
{ {

View File

@ -14,7 +14,7 @@ class ToolButton: public ui::Button {
int currentSelection; int currentSelection;
public: public:
ToolButton(ui::Point position, ui::Point size, std::string text_, std::string toolTip = ""); ToolButton(ui::Point position, ui::Point size, std::string text_, std::string toolTip = "");
virtual void OnMouseUp(int x, int y, unsigned int button); virtual void OnMouseUnclick(int x, int y, unsigned int button);
virtual void OnMouseClick(int x, int y, unsigned int button); virtual void OnMouseClick(int x, int y, unsigned int button);
virtual void Draw(const ui::Point& screenPos); virtual void Draw(const ui::Point& screenPos);
void SetSelectionState(int state); void SetSelectionState(int state);