[Change] Being a bitch!

This commit is contained in:
Rtch90 2012-01-10 02:37:52 +00:00
parent dba8045011
commit 19d9f2e898
3 changed files with 11 additions and 11 deletions

Binary file not shown.

View File

@ -73,13 +73,13 @@ void Button::SetText(string textArg) {
bool Button::CheckMouseOver(void) { bool Button::CheckMouseOver(void) {
if(event.motion.x > _button.GetX() && event.motion.x < _button.GetX() + _button.GetWidth()) { if(event.motion.x > _button.GetX() && event.motion.x < _button.GetX() + _button.GetWidth()) {
if(event.motion.y > _button.GetY() && event.motion.y < _button.GetY() + _button.GetHeight()) { if(event.motion.y > _button.GetY() && event.motion.y < _button.GetY() + _button.GetHeight()) {
if (!_highlighted) { if(_highlighted) {
_button.SetRGB(_mouseOverColour.r, _mouseOverColour.g, _mouseOverColour.b); _button.SetRGB(_mouseOverColour.r, _mouseOverColour.g, _mouseOverColour.b);
} }
return true; return true;
} }
} }
if (!_highlighted) { if(!_highlighted) {
_button.SetRGB(_mouseOutColour); _button.SetRGB(_mouseOutColour);
} }
return false; return false;