Fix tool buttons
This commit is contained in:
parent
e420ee51b1
commit
d5e57e04d0
@ -20,7 +20,7 @@ void ToolButton::OnMouseClick(int x, int y, unsigned int button)
|
||||
isButtonDown = true;
|
||||
}
|
||||
|
||||
void ToolButton::OnMouseUp(int x, int y, unsigned int button)
|
||||
void ToolButton::OnMouseUnclick(int x, int y, unsigned int button)
|
||||
{
|
||||
if(isButtonDown)
|
||||
{
|
||||
|
@ -14,7 +14,7 @@ class ToolButton: public ui::Button {
|
||||
int currentSelection;
|
||||
public:
|
||||
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 Draw(const ui::Point& screenPos);
|
||||
void SetSelectionState(int state);
|
||||
|
Loading…
Reference in New Issue
Block a user