void Button::HandleMouseMove(uint32 x, uint32 y)
{
+ if (!visible)
+ return;
+
SaveStateVariables();
inside = Inside(x, y);
CheckStateAndRedrawIfNeeded();
void Button::HandleMouseButton(uint32 x, uint32 y, bool mouseDown)
{
+ if (!visible)
+ return;
+
SaveStateVariables();
if (inside)
#ifdef DEBUG_GUI_BUTTON
WriteLog("Button::Draw()...\n");
#endif
+ if (!visible)
+ return;
+
if (buttonUp == NULL)
return; // Bail out if no surface was created...