/// <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; }
/// <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; }
/// <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); }
/// <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)) { }
/// <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();
/// <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();