Пример #1
0
        public static AuxWindow Launch()
        {
            AuxWindow window = GetWindow <AuxWindow>(typeof(AuxWindow));

            window.Show();
            window.minSize = new Vector2(400, 400);
            window.SetTitle("Aux Window");
            return(window);
        }
Пример #2
0
        private static void ShowIntegrityWindow()
        {
            AuxWindow.Launch();
            AuxWindow window = EditorWindow.GetWindow(typeof(AuxWindow)) as AuxWindow;

            if (window != null)
            {
                window.SelectIntegrity();
            }
        }
Пример #3
0
        private static void ShowBanksWindow()
        {
            AuxWindow.Launch();
            AuxWindow window = EditorWindow.GetWindow(typeof(AuxWindow)) as AuxWindow;

            if (window != null)
            {
                window.SelectBankCreation();
            }
        }
Пример #4
0
        public static AuxWindow ShowIntegrityWindow()
        {
            AuxWindow.Launch();
            AuxWindow window = EditorWindow.GetWindow(typeof(AuxWindow)) as AuxWindow;

            if (window != null)
            {
                window.SelectIntegrity();
            }
            return(window);
        }
Пример #5
0
        public static AuxWindow ShowBanksWindow()
        {
            AuxWindow.Launch();
            AuxWindow window = EditorWindow.GetWindow <AuxWindow>();

            if (window != null)
            {
                window.SelectBankCreation();
            }
            return(window);
        }
Пример #6
0
        public static void SearchForActionTarget(AudioEventAction action)
        {
            var audioAction = action as InEventAudioAction;

            if (audioAction != null && audioAction.Node != null)
            {
                InAudioWindow.Launch().Find(audioAction.Node);
            }
            var bankAction = action as InEventBankLoadingAction;

            if (bankAction != null && bankAction.BankLink != null)
            {
                AuxWindow.Launch().FindBank(bankAction.BankLink);
            }
            var musicControl = action as InEventMusicControl;

            if (musicControl != null && musicControl.Target != null)
            {
                SearchFor(musicControl.MusicGroup);
            }
            var musicFade = action as InEventMusicFade;

            if (musicFade != null && musicFade.Target != null)
            {
                SearchFor(musicFade.To);
            }
            var mixerValue = action as InEventMixerValueAction;

            if (mixerValue != null && mixerValue.Target != null)
            {
                SearchFor(mixerValue.Mixer);
            }

            var soloMuteValue = action as InEventSoloMuteMusic;

            if (soloMuteValue != null && soloMuteValue.Target != null)
            {
                SearchFor(soloMuteValue.MusicGroup);
            }
        }
Пример #7
0
 public AudioBankCreatorGUI(AuxWindow window) : base(window)
 {
     this.window = window;
 }
Пример #8
0
 public static void SearchFor(InAudioBankLink bank)
 {
     AuxWindow.Launch().FindBank(bank);
 }