Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void StandardUKButtonController::CheckAutoplayButtons()
- {
- SCOPE_MEMBER();
- LOGMESSAGE(MSG_DBG, "CheckAutoplayButtons");
- switch (m_GameState.state)
- {
- case GameState::Unitialised:
- if (!m_DefaultAutoplayButtons)
- {
- SetAutoplayButtonsToDefault();
- }
- break;
- case GameState::Initialise:
- if (!m_DefaultAutoplayButtons)
- {
- SetAutoplayButtonsToDefault();
- }
- break;
- case GameState::WaitingToPlay:
- if (m_AutoplayIsActive)
- {
- m_DefaultAutoplayButtons = false;
- EnableAndShow(c_AutoplayToggleButton);
- EnableAndShow(c_AutoplayToggleCancelButton);
- DisableAndHide(c_AutoplayInactiveButton);
- DisableAndHide(c_AutoPlayStopButton);
- EnableAndShow(c_HardwareAutoplayCountSD);
- EnableAndShow(c_HardwareAutoplayStopSD);
- DisableAndHide(c_HardwareAutoplaySD);
- }
- else if (!m_DefaultAutoplayButtons)
- {
- SetAutoplayButtonsToDefault();
- }
- break;
- case GameState::PrePlay:
- if (m_AutoplayIsActive)
- {
- m_DefaultAutoplayButtons = false;
- EnableAndShow(c_AutoplayToggleButton);
- EnableAndShow(c_AutoplayToggleCancelButton);
- DisableAndHide(c_AutoplayInactiveButton);
- DisableAndHide(c_AutoPlayStopButton);
- EnableAndShow(c_HardwareAutoplayCountSD);
- EnableAndShow(c_HardwareAutoplayStopSD);
- DisableAndHide(c_HardwareAutoplaySD);
- }
- else if (!m_DefaultAutoplayButtons)
- {
- SetAutoplayButtonsToDefault();
- }
- break;
- case GameState::Playing:
- if (!m_AutoplayStopPressed)
- {
- m_DefaultAutoplayButtons = false;
- EnableAndShow(c_AutoPlayStopButton);
- DisableAndHide(c_AutoplayToggleButton);
- DisableAndHide(c_AutoplayInactiveButton);
- DisableAndHide(c_AutoplayToggleCancelButton);
- EnableAndShow(c_HardwareAutoplayStopSD);
- DisableAndHide(c_HardwareAutoplayCountSD);
- DisableAndHide(c_HardwareAutoplaySD);
- }
- else if (m_AutoplayStopPressed)
- {
- SetAutoplayButtonsToDisabled();
- }
- break;
- case GameState::PrePayingOut:
- if (!m_AutoplayStopPressed)
- {
- EnableAndShow(c_AutoPlayStopButton);
- DisableAndHide(c_AutoplayToggleButton);
- DisableAndHide(c_AutoplayInactiveButton);
- DisableAndHide(c_AutoplayToggleCancelButton);
- EnableAndShow(c_HardwareAutoplayStopSD);
- DisableAndHide(c_HardwareAutoplayCountSD);
- DisableAndHide(c_HardwareAutoplaySD);
- }
- else if (m_AutoplayStopPressed)
- {
- SetAutoplayButtonsToDisabled();
- }
- break;
- case GameState::PayingOut:
- if (!m_AutoplayStopPressed)
- {
- EnableAndShow(c_AutoPlayStopButton);
- DisableAndHide(c_AutoplayToggleButton);
- DisableAndHide(c_AutoplayInactiveButton);
- DisableAndHide(c_AutoplayToggleCancelButton);
- EnableAndShow(c_HardwareAutoplayStopSD);
- DisableAndHide(c_HardwareAutoplayCountSD);
- DisableAndHide(c_HardwareAutoplaySD);
- }
- else if (m_AutoplayStopPressed)
- {
- SetAutoplayButtonsToDisabled();
- }
- break;
- case GameState::PostPlaying:
- if (!m_AutoplayStopPressed)
- {
- EnableAndShow(c_AutoPlayStopButton);
- DisableAndHide(c_AutoplayToggleButton);
- DisableAndHide(c_AutoplayInactiveButton);
- DisableAndHide(c_AutoplayToggleCancelButton);
- EnableAndShow(c_HardwareAutoplayStopSD);
- DisableAndHide(c_HardwareAutoplayCountSD);
- DisableAndHide(c_HardwareAutoplaySD);
- }
- else if (m_AutoplayStopPressed)
- {
- SetAutoplayButtonsToDisabled();
- }
- break;
- case GameState::LowCredit:
- SetAutoplayButtonsToDisabled();
- break;
- default:
- LOGMESSAGE(MSG_DBG, "How the fuck did I get in here");
- SetAutoplayButtonsToDisabled();
- break;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement