Advertisement
NoSloppy

revert colorchange case

Sep 22nd, 2021
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.58 KB | None | 0 0
  1. // Quote
  2. // Revert colorchange witout saving (reset to Variation == 0)
  3. case EVENTID(BUTTON_POWER, EVENT_THIRD_SAVED_CLICK_SHORT, MODE_ON):
  4. if (SaberBase::GetColorChangeMode() != SaberBase::COLOR_CHANGE_MODE_NONE) {
  5. STDOUT << "Reset Color Variation" << "\n";
  6. SetVariation(0);
  7. STDOUT << "Color change mode done, variation = " << SaberBase::GetCurrentVariation() << "\n";
  8. SaberBase::SetColorChangeMode(SaberBase::COLOR_CHANGE_MODE_NONE);
  9. return true;
  10. } else {
  11. hybrid_font.PlayCommon(&SFX_quote);
  12. }
  13. return true;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement