mirror of
https://github.com/isledecomp/isle.git
synced 2025-10-24 17:04:17 +00:00
Rename Start/StopTimer to Pause/Resume (#1007)
* Rename Start/StopTimer to Pause/Resume * Fix
This commit is contained in:
committed by
GitHub
parent
9bc5c26bcc
commit
be4c351d7d
@@ -607,11 +607,11 @@ MxLong LegoNavController::Notify(MxParam& p_param)
|
||||
|
||||
switch (((LegoEventNotificationParam&) p_param).GetKey()) {
|
||||
case VK_PAUSE:
|
||||
if (Lego()->IsTimerRunning()) {
|
||||
Lego()->StopTimer();
|
||||
if (Lego()->IsPaused()) {
|
||||
Lego()->Resume();
|
||||
}
|
||||
else {
|
||||
Lego()->StartTimer();
|
||||
Lego()->Pause();
|
||||
}
|
||||
break;
|
||||
case VK_ESCAPE: {
|
||||
|
||||
@@ -370,7 +370,7 @@ MxBool LegoInputManager::ProcessOneEvent(LegoEventNotificationParam& p_param)
|
||||
MxBool processRoi;
|
||||
|
||||
if (p_param.GetType() == c_notificationKeyPress) {
|
||||
if (!Lego()->IsTimerRunning() || p_param.GetKey() == VK_PAUSE) {
|
||||
if (!Lego()->IsPaused() || p_param.GetKey() == VK_PAUSE) {
|
||||
if (p_param.GetKey() == VK_SHIFT) {
|
||||
if (m_unk0x195) {
|
||||
m_unk0x80 = FALSE;
|
||||
@@ -396,7 +396,7 @@ MxBool LegoInputManager::ProcessOneEvent(LegoEventNotificationParam& p_param)
|
||||
}
|
||||
}
|
||||
else {
|
||||
if (!Lego()->IsTimerRunning()) {
|
||||
if (!Lego()->IsPaused()) {
|
||||
processRoi = TRUE;
|
||||
|
||||
if (m_unk0x335 != 0) {
|
||||
|
||||
@@ -579,15 +579,15 @@ MxLong LegoOmni::Notify(MxParam& p_param)
|
||||
}
|
||||
|
||||
// FUNCTION: LEGO1 0x1005b640
|
||||
void LegoOmni::StartTimer()
|
||||
void LegoOmni::Pause()
|
||||
{
|
||||
MxOmni::StartTimer();
|
||||
MxOmni::Pause();
|
||||
SetAppCursor(e_cursorNo);
|
||||
}
|
||||
|
||||
// FUNCTION: LEGO1 0x1005b650
|
||||
void LegoOmni::StopTimer()
|
||||
void LegoOmni::Resume()
|
||||
{
|
||||
MxOmni::StopTimer();
|
||||
MxOmni::Resume();
|
||||
SetAppCursor(e_cursorArrow);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user