Exemple #1
0
 public static bool Prefix(string track)
 {
     if (Control.mod_active)
     {
         if (track.Equals("MENU_01"))
         {
             uConsole.Log("[RMM] denied default menu music call");
             if (!Control.is_Music_Playing2)
             {
                 uConsole.Log("[RMM] -> started playing ");
                 RMMMethods.StartPlayingMenuMusic();
                 Control.is_Music_Playing2 = true;
             }
             return(false);
         }
         return(true);
     }
     return(true);
 }
Exemple #2
0
        public static void Postfix()
        {
            if (Control.mod_active)
            {
                if (MenuManager.m_menu_sub_state == MenuSubState.ACTIVE)
                {
                    if (!Control.is_Music_Playing && Platform.IsSaveDataLoaded)
                    {
                        RMMMethods.StartPlayingMenuMusic();
                        Control.is_Music_Playing = true;
                    }

                    if (UIManager.PushedSelect(-1))
                    {
                        if (UIManager.m_menu_selection == 25)
                        {
                            RMMMethods.SwitchToNextSong();
                        }
                    }
                }
            }
        }