示例#1
0
        public void executeAction()
        {
            if (note.getEffectAtPosition(EffectPosition.Into) is Tie)
            {
                note.removeEffectAtPosition(EffectPosition.Into);
            }
            if (note.getEffectAtPosition(EffectPosition.After) is Tie)
            {
                note.removeEffectAtPosition(EffectPosition.After);
            }

            note.Fret = fret;
        }
示例#2
0
        public NoteProperties(NoteTreeNode n, GuiCommandExecutor ex, NodeClick c)
            : base(c, ex)
        {
            note = n.getNote();

            String = note.String.ToString();
            Fret   = note.Fret.ToString();

            NoteTreeNode prev_note = ref_click.PartNode?.getPreviousNote(n) ?? null;
            NoteTreeNode next_note = ref_click.PartNode?.getNextNote(n) ?? null;

            IntoEffectProperties   = new EffectProperties(executor, ref_click, note.getEffectAtPosition(EffectPosition.Into), EffectPosition.Into, prev_note, n);
            StrikeEffectProperties = new EffectProperties(executor, ref_click, note.getEffectAtPosition(EffectPosition.Strike), EffectPosition.Strike, null, null);
            AfterEffectProperties  = new EffectProperties(executor, ref_click, note.getEffectAtPosition(EffectPosition.After), EffectPosition.After, n, next_note);
        }