void Bubble::onOutTimerTimeout() { if (containsMouse()) { m_outTimer->stop(); m_outTimer->start(); } else { m_outAnimation->start(); } }
bool GUIButton::Update(){ state->used = false; if (isActive){ if (containsMouse()){ if (Game->INPUT.keyPressed[VK_LBUTTON]){ state->used = true; Game->INPUT.keyPressed[VK_LBUTTON] = false; return true; } } } return false; }