19 lines
599 B
C++
19 lines
599 B
C++
|
#include "button.h"
|
|||
|
|
|||
|
GLGuiButton::GLGuiButton(int _eventid, int _x, int _y, bool _center, int _wrap) : GLGuiTextLabel(_x, _y, _center, _wrap) {
|
|||
|
highlightable = true;
|
|||
|
clickable = true;
|
|||
|
eventid = _eventid;
|
|||
|
highlightcol.set(1.0f, 0.0f, 0.0f, 1.0f);
|
|||
|
}
|
|||
|
GLGuiButton::GLGuiButton(int _eventid, std::string str, int _x, int _y, bool _center, int _wrap) : GLGuiTextLabel(str, _x, _y, _center, _wrap){
|
|||
|
highlightable = true;
|
|||
|
clickable = true;
|
|||
|
eventid = _eventid;
|
|||
|
highlightcol.set(1.0f, 0.0f, 0.0f, 1.0f);
|
|||
|
}
|
|||
|
|
|||
|
void GLGuiButton::onMouseOver(int m_x, int m_y) {
|
|||
|
// L<>ngste stelle finden, dann collision
|
|||
|
}
|