Exemplo n.º 1
0
 public static void Postfix()
 {
     if (Control.mod_active)
     {
         // GameManager.m_audio = __instance.GetComponent<UnityAudio>();
         //GameManager.m_audio.PlayMusic(Control.OverloadAudioNames[Control.current_song_int], 0.35f, 0, false, false);
         RMMMethods.SwitchToNextSong();
     }
 }
Exemplo n.º 2
0
 static void _timer_Elapsed(object sender, ElapsedEventArgs e)
 {
     Debug.Log("[RMM] Timer .OnEvent(2)");
     Control.current_song_pointer += 2;
     //uConsole.Log("song time: "+Control.current_song_pointer);
     if (Control.current_song_pointer > Control.current_song_length)
     {
         TimerStop();
         uConsole.Log("[RMM] Timer .OnEvent(3)");
         Debug.Log("[RMM] Timer .OnEvent(3)");
         RMMMethods.SwitchToNextSong();
         uConsole.Log("[RMM] Timer .OnEvent(DONE)");
         Debug.Log("[RMM] Timer .OnEvent(DONE)");
     }
 }
Exemplo n.º 3
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);
 }
Exemplo n.º 4
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();
                        }
                    }
                }
            }
        }