예제 #1
0
 /// <summary>
 /// </summary>
 /// <param name="ruleset"></param>
 /// <param name="workingMap"></param>
 /// <param name="time"></param>
 public EditorActionSetPreviewTime(EditorRuleset ruleset, Qua workingMap, int time)
 {
     Ruleset             = ruleset;
     WorkingMap          = workingMap;
     PreviousPreviewTime = WorkingMap.SongPreviewTime;
     Time = time;
 }
예제 #2
0
        /// <summary>
        /// </summary>
        /// <param name="type"></param>
        /// <param name="ruleset"></param>
        /// <param name="map"></param>
        public EditorVisualizationGraphContainer(EditorVisualizationGraphType type, EditorRuleset ruleset, Qua map)
        {
            Type = type;
            Ruleset = ruleset;

            switch (type)
            {
                case EditorVisualizationGraphType.Tick:
                    GraphRaw = new EditorTickGraph(this, map, ruleset);
                    break;
                case EditorVisualizationGraphType.Density:
                    GraphRaw = new EditorNoteDensityGraph(this, map, ruleset);
                    break;
                default:
                    throw new ArgumentOutOfRangeException(nameof(type), type, null);
            }
        }
        /// <inheritdoc />
        /// <summary>
        /// </summary>
        /// <param name="container"></param>
        /// <param name="qua"></param>
        /// <param name="ruleset"></param>
        protected EditorVisualizationGraph(EditorVisualizationGraphContainer container, Qua qua, EditorRuleset ruleset)
        {
            Container = container;
            Ruleset   = ruleset;
            Qua       = qua;

            var view = (EditorScreenView)ruleset.Screen.View;

            Size  = new ScalableVector2(50, WindowManager.Height - 38 - view.MenuBar.Height);
            Tint  = Color.Black;
            Alpha = 0.85f;

            Pixel = new Texture2D(GameBase.Game.GraphicsDevice, 1, 1);
            Pixel.SetData(new[] { Color.White });

            AddBorder(Color.White, 2);
            Border.Alpha = 0.45f;
        }
 /// <summary>
 /// </summary>
 public EditorActionBatchDeleteHitObjectKeys(EditorRuleset ruleset, EditorScrollContainerKeys container, List <DrawableEditorHitObject> hitObjects)
 {
     Ruleset    = ruleset;
     Container  = container;
     HitObjects = hitObjects;
 }
예제 #5
0
        /// <summary>
        /// </summary>
        /// <param name="ruleset"></param>
        /// <param name="layer"></param>
        private static void OnConfirm(EditorRuleset ruleset, EditorLayerInfo layer)
        {
            var view = ruleset.Screen.View as EditorScreenView;

            ruleset.ActionManager.RemoveLayer(ruleset.WorkingMap, view?.LayerCompositor, layer);
        }
예제 #6
0
 /// <inheritdoc />
 /// <summary>
 /// </summary>
 /// <param name="ruleset"></param>
 /// <param name="layer"></param>
 public EditorLayerDeleteConfirmationDialog(EditorRuleset ruleset, EditorLayerInfo layer)
     : base($"Deleting this layer will also remove ALL objects inside of it. Confirm?",
            (o, e) => OnConfirm(ruleset, layer))
 {
 }
예제 #7
0
 /// <inheritdoc />
 /// <summary>
 /// </summary>
 /// <param name="container"></param>
 /// <param name="qua"></param>
 /// <param name="ruleset"></param>
 public EditorNoteDensityGraph(EditorVisualizationGraphContainer container, Qua qua, EditorRuleset ruleset)
     : base(container, qua, ruleset) => CreateBars();
예제 #8
0
 /// <inheritdoc />
 /// <summary>
 /// </summary>
 /// <param name="container"></param>
 /// <param name="qua"></param>
 /// <param name="ruleset"></param>
 public EditorTickGraph(EditorVisualizationGraphContainer container, Qua qua, EditorRuleset ruleset) : base(container, qua, ruleset)
     => CreateTickLines();