예제 #1
0
void MenuCursor::DrawCursor() {
	
	trail.draw();
	
	DrawOneCursor(GInput->getMousePosAbs());

	lFrameDiff += g_platformTime.lastFrameDuration();

	if(lFrameDiff > PlatformDurationMs(70)) {
		if(bMouseOver) {
			if(m_currentFrame < 4) {
				m_currentFrame++;
			} else {
				if(m_currentFrame > 4) {
					m_currentFrame--;
				}
			}
			bMouseOver=false;
		} else {
			if(m_currentFrame > 0) {
				m_currentFrame++;

				if(m_currentFrame > 7)
					m_currentFrame=0;
			}
		}

		lFrameDiff = PlatformDuration_ZERO;
	}

	GRenderer->SetRenderState(Renderer::AlphaBlending, false);
}
예제 #2
0
void MenuCursor::DrawCursor() {
	
	trail.draw();
	
	DrawOneCursor(GInput->getMousePosition());
	
	lFrameDiff += g_platformTime.lastFrameDuration();
	
	if(lFrameDiff > PlatformDurationMs(70)) {
		if(bMouseOver) {
			if(m_currentFrame < 4) {
				m_currentFrame++;
			} else {
				if(m_currentFrame > 4) {
					m_currentFrame--;
				}
			}
			bMouseOver = false;
		} else {
			if(m_currentFrame > 0) {
				m_currentFrame++;
				if(m_currentFrame > 7) {
					m_currentFrame = 0;
				}
			}
		}
		lFrameDiff = 0;
	}
	
}