コード例 #1
0
void Bubble::onOutTimerTimeout()
{
    if (containsMouse()) {
        m_outTimer->stop();
        m_outTimer->start();
    } else {
        m_outAnimation->start();
    }
}
コード例 #2
0
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;
}