summaryrefslogtreecommitdiff
path: root/src/game/ToolButton.h
blob: db0cfac0cc1dab8841a2a3812baf0ffb5fdda14d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
/*
 * ToolButton.h
 *
 *  Created on: Jan 30, 2012
 *      Author: Simon
 */

#ifndef TOOLBUTTON_H_
#define TOOLBUTTON_H_

#include "interface/Button.h"

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 OnMouseClick(int x, int y, unsigned int button);
	virtual void Draw(const ui::Point& screenPos);
	void SetSelectionState(int state);
	int GetSelectionState();
	virtual ~ToolButton();
};

#endif /* TOOLBUTTON_H_ */