internal void ShowTimingWindow(TimingFocus tf, bool AllowInherit)
        {
            if (editor.CurrentMode != EditorModes.Timing)
            {
                editor.FinishDrag();
            }
            else
            {
                UpdatePendingChanges(true);
            }

            GameBase.MenuActive = true;

            bpmUpdateOrig    = AudioEngine.BeatLength;
            offsetUpdateOrig = AudioEngine.CurrentOffset;

            TimingEntry t = new TimingEntry(editor, tf, AllowInherit, editor.CurrentMode == EditorModes.Timing);

            DialogResult r = t.ShowDialog(GameBase.Form);

            GameBase.MenuActive = false;

            AudioEngine.UpdateActiveTimingPoint(true);
            changeManager.AllowBatch = false;

            if (r == DialogResult.Cancel)
            {
                return;
            }

            if (editor.CurrentMode != EditorModes.Timing)
            {
                Update(); //We might be calling this from another mode, so force a single update.
            }
        }
Example #2
0
 // Token: 0x0600270D RID: 9997
 // RVA: 0x000F024C File Offset: 0x000EE44C
 internal void method_13(Enum58 enum58_0, bool bool_8)
 {
     this.method_10();
     this.editor_0.method_16(true);
     Class115.smethod_6(true);
     this.double_0 = Class331.smethod_8();
     this.double_1 = Class331.smethod_12();
     TimingEntry timingEntry = new TimingEntry(this.editor_0, enum58_0, bool_8, this.editor_0.enum105_0 == Enum105.const_3);
     timingEntry.ShowDialog(Class115.form_0);
     Class115.smethod_6(false);
     Class331.smethod_6(true);
     this.class297_0.method_12(false);
     if (this.editor_0.enum105_0 != Enum105.const_3)
     {
         this.vmethod_3();
     }
 }