Пример #1
0
        /// <inheritdoc />
        /// <summary>
        /// </summary>
        /// <param name="screen"></param>
        public EditorScreenView(Screen screen) : base(screen)
        {
            CreateBackground();
            CreateControlBar();
            MenuBar = new EditorMenuBar((EditorScreen)Screen);
            CreateLayerCompositor();
            CreateLayerEditor();
            CreateHitsoundEditor();
            CreateCompositionToolbox();
            CreateDetailsPanel();

            var editorScreen = (EditorScreen)Screen;

            ScrollVelocityChanger = new EditorScrollVelocityChanger(editorScreen.WorkingMap);
            GoToPanel             = new EditorGoToObjectsPanel();
            TimingPointChanger    = new EditorTimingChanger(editorScreen.WorkingMap);
            editorScreen.ActiveLayerInterface.ValueChanged += OnActiveLayerInterfaceChanged;
        }
Пример #2
0
        /// <summary>
        ///     Handles a quaver:// message.
        ///     <param name="message">the IPC message with quaver:// stripped</param>
        /// </summary>
        public static void HandleProtocolMessage(string message)
        {
            // Highlighting notes within the editor
            if (message.StartsWith("editor/"))
            {
                message = message.Replace("editor/", "");
                message = message.Replace("%7C", "|");

                var game = GameBase.Game as QuaverGame;

                if (game?.CurrentScreen is EditorScreen)
                {
                    EditorGoToObjectsPanel.HighlightObjects(message);
                }
                else
                {
                    NotificationManager.Show(NotificationLevel.Warning, "You must be in the editor to use this function!");
                }
            }
        }