Esempio n. 1
0
        private void load()
        {
            LayerBelowRuleset.AddRange(new Drawable[]
            {
                new PlayfieldBorder
                {
                    RelativeSizeAxes     = Axes.Both,
                    PlayfieldBorderStyle = { Value = PlayfieldBorderStyle.Corners }
                },
                distanceSnapGridContainer = new Container
                {
                    RelativeSizeAxes = Axes.Both
                }
            });

            selectedHitObjects = EditorBeatmap.SelectedHitObjects.GetBoundCopy();
            selectedHitObjects.CollectionChanged += (_, __) => updateDistanceSnapGrid();

            placementObject = EditorBeatmap.PlacementObject.GetBoundCopy();
            placementObject.ValueChanged    += _ => updateDistanceSnapGrid();
            distanceSnapToggle.ValueChanged += _ => updateDistanceSnapGrid();

            // we may be entering the screen with a selection already active
            updateDistanceSnapGrid();
        }
Esempio n. 2
0
 private void load()
 {
     LayerBelowRuleset.Add(new PlayfieldBorder
     {
         RelativeSizeAxes     = Axes.Both,
         PlayfieldBorderStyle = { Value = PlayfieldBorderStyle.Corners }
     });
 }
Esempio n. 3
0
        private void load()
        {
            LayerBelowRuleset.Add(distanceSnapGridContainer = new Container {
                RelativeSizeAxes = Axes.Both
            });

            EditorBeatmap.SelectedHitObjects.CollectionChanged += (_, __) => updateDistanceSnapGrid();
            EditorBeatmap.PlacementObject.ValueChanged         += _ => updateDistanceSnapGrid();
        }
Esempio n. 4
0
        private void load()
        {
            LayerBelowRuleset.Add(new PlayfieldBorder
            {
                RelativeSizeAxes     = Axes.Both,
                PlayfieldBorderStyle = { Value = PlayfieldBorderStyle.Corners }
            });

            LayerBelowRuleset.Add(distanceSnapGrid = new CatchDistanceSnapGrid(new[]
            {
                0.0,
                Catcher.BASE_DASH_SPEED, -Catcher.BASE_DASH_SPEED,
                Catcher.BASE_WALK_SPEED, -Catcher.BASE_WALK_SPEED,
            }));
        }
Esempio n. 5
0
        public KaraokeHitObjectComposer(Ruleset ruleset)
            : base(ruleset)
        {
            // Duplicated registration because selection handler need to use it.
            positionCalculator     = new PositionCalculator(9);
            editConfigManager      = new KaraokeRulesetEditConfigManager();
            generatorConfigManager = new KaraokeRulesetEditGeneratorConfigManager();
            checkerConfigManager   = new KaraokeRulesetEditCheckerConfigManager();

            AddInternal(exportLyricManager  = new ExportLyricManager());
            AddInternal(noteManager         = new NoteManager());
            AddInternal(lyricManager        = new LyricManager());
            AddInternal(lyricCheckerManager = new LyricCheckerManager());
            AddInternal(singerManager       = new SingerManager());
            LayerBelowRuleset.Add(languageSelectionDialog = new LanguageSelectionDialog());
        }
Esempio n. 6
0
        private void load()
        {
            LayerBelowRuleset.AddRange(new Drawable[]
            {
                new PlayfieldBorder
                {
                    RelativeSizeAxes     = Axes.Both,
                    PlayfieldBorderStyle = { Value = PlayfieldBorderStyle.Corners }
                },
                distanceSnapGridContainer = new Container
                {
                    RelativeSizeAxes = Axes.Both
                },
                rectangularPositionSnapGrid = new OsuRectangularPositionSnapGrid
                {
                    RelativeSizeAxes = Axes.Both
                }
            });

            selectedHitObjects = EditorBeatmap.SelectedHitObjects.GetBoundCopy();
            selectedHitObjects.CollectionChanged += (_, __) => updateDistanceSnapGrid();

            placementObject = EditorBeatmap.PlacementObject.GetBoundCopy();
            placementObject.ValueChanged    += _ => updateDistanceSnapGrid();
            distanceSnapToggle.ValueChanged += _ =>
            {
                updateDistanceSnapGrid();

                if (distanceSnapToggle.Value == TernaryState.True)
                {
                    rectangularGridSnapToggle.Value = TernaryState.False;
                }
            };

            rectangularGridSnapToggle.ValueChanged += _ =>
            {
                if (rectangularGridSnapToggle.Value == TernaryState.True)
                {
                    distanceSnapToggle.Value = TernaryState.False;
                }
            };

            // we may be entering the screen with a selection already active
            updateDistanceSnapGrid();
        }
Esempio n. 7
0
        private void load()
        {
            // todo: enable distance spacing once catch supports applying it to its existing distance snap grid implementation.
            RightSideToolboxContainer.Alpha    = 0;
            DistanceSpacingMultiplier.Disabled = true;

            LayerBelowRuleset.Add(new PlayfieldBorder
            {
                RelativeSizeAxes     = Axes.Both,
                PlayfieldBorderStyle = { Value = PlayfieldBorderStyle.Corners }
            });

            LayerBelowRuleset.Add(distanceSnapGrid = new CatchDistanceSnapGrid(new[]
            {
                0.0,
                Catcher.BASE_DASH_SPEED, -Catcher.BASE_DASH_SPEED,
                Catcher.BASE_WALK_SPEED, -Catcher.BASE_WALK_SPEED,
            }));
        }