Пример #1
0
        private void wheelScrollSpeedToolStripMenuItem_Click(object sender, EventArgs e)
        {
            InputPrompt inputpromt = new InputPrompt();

            inputpromt.TextInputType = InputPrompt.InputType.Unsigned;
            inputpromt.Message       = "Frames per tick:";
            inputpromt.InitialValue  = TasView.ScrollSpeed.ToString();
            if (inputpromt.ShowDialog() == System.Windows.Forms.DialogResult.OK)
            {
                TasView.ScrollSpeed  = int.Parse(inputpromt.PromptText);
                Settings.ScrollSpeed = TasView.ScrollSpeed;
            }
        }
Пример #2
0
        private void WheelScrollSpeedMenuItem_Click(object sender, EventArgs e)
        {
            var inputpromt = new InputPrompt
            {
                TextInputType = InputPrompt.InputType.Unsigned,
                Message       = "Frames per tick:",
                InitialValue  = TasView.ScrollSpeed.ToString()
            };

            if (inputpromt.ShowDialog() == DialogResult.OK)
            {
                TasView.ScrollSpeed  = int.Parse(inputpromt.PromptText);
                Settings.ScrollSpeed = TasView.ScrollSpeed;
            }
        }
Пример #3
0
 private void SetMaxUndoLevelsMenuItem_Click(object sender, EventArgs e)
 {
     using (var prompt = new InputPrompt
     {
         TextInputType = InputPrompt.InputType.Unsigned,
         Message = "Number of Undo Levels to keep",
         InitialValue = CurrentTasMovie.ChangeLog.MaxSteps.ToString()
     })
     {
         DialogResult result = prompt.ShowDialog();
         if (result == DialogResult.OK)
         {
             int val = int.Parse(prompt.PromptText);
             if (val > 0)
             {
                 CurrentTasMovie.ChangeLog.MaxSteps = val;
             }
         }
     }
 }
Пример #4
0
 private void SetSeekingCutoffIntervalMenuItem_Click(object sender, EventArgs e)
 {
     using (var prompt = new InputPrompt
     {
         TextInputType = InputPrompt.InputType.Unsigned,
         Message = "Seeking Cutoff Interval",
         InitialValue = Settings.SeekingCutoffInterval.ToString()
     })
     {
         DialogResult result = prompt.ShowDialog();
         if (result == DialogResult.OK)
         {
             int val = int.Parse(prompt.PromptText);
             if (val > 0)
             {
                 Settings.SeekingCutoffInterval = val;
                 TasView.SeekingCutoffInterval  = val;
             }
         }
     }
 }
Пример #5
0
 private void SetBranchCellHoverIntervalMenuItem_Click(object sender, EventArgs e)
 {
     using (var prompt = new InputPrompt
     {
         TextInputType = InputPrompt.InputType.Unsigned,
         Message = "ScreenshotPopUp Delay",
         InitialValue = Settings.BranchCellHoverInterval.ToString()
     })
     {
         DialogResult result = prompt.ShowDialog();
         if (result == DialogResult.OK)
         {
             int val = int.Parse(prompt.PromptText);
             if (val > 0)
             {
                 Settings.BranchCellHoverInterval = val;
                 BookMarkControl.HoverInterval    = val;
             }
         }
     }
 }
Пример #6
0
 private void SetAutosaveIntervalMenuItem_Click(object sender, EventArgs e)
 {
     using (var prompt = new InputPrompt
     {
         TextInputType = InputPrompt.InputType.Unsigned,
         Message = "Autosave Interval in seconds\nSet to 0 to disable",
         InitialValue = (Settings.AutosaveInterval / 1000).ToString()
     })
     {
         DialogResult result = prompt.ShowDialog();
         if (result == DialogResult.OK)
         {
             uint val = uint.Parse(prompt.PromptText) * 1000;
             Settings.AutosaveInterval = val;
             if (val > 0)
             {
                 _autosaveTimer.Interval = (int)val;
                 _autosaveTimer.Start();
             }
         }
     }
 }
Пример #7
0
		private void wheelScrollSpeedToolStripMenuItem_Click(object sender, EventArgs e)
		{
			InputPrompt inputpromt = new InputPrompt();
			inputpromt.TextInputType = InputPrompt.InputType.Unsigned;
			inputpromt.Message = "Frames per tick:";
			inputpromt.InitialValue = TasView.ScrollSpeed.ToString();
			if (inputpromt.ShowDialog() == System.Windows.Forms.DialogResult.OK)
			{
				TasView.ScrollSpeed = int.Parse(inputpromt.PromptText);
				Settings.ScrollSpeed = TasView.ScrollSpeed;
			}
			
		}
Пример #8
0
		private void SetMaxUndoLevelsMenuItem_Click(object sender, EventArgs e)
		{
			using (var prompt = new InputPrompt
			{
				TextInputType = InputPrompt.InputType.Unsigned,
				Message = "Number of Undo Levels to keep",
				InitialValue = CurrentTasMovie.ChangeLog.MaxSteps.ToString()
			})
			{
				DialogResult result = prompt.ShowDialog();
				if (result == DialogResult.OK)
				{
					int val = int.Parse(prompt.PromptText);
					if (val > 0)
						CurrentTasMovie.ChangeLog.MaxSteps = val;
				}
			}
		}
Пример #9
0
		private void SetSeekingCutoffIntervalMenuItem_Click(object sender, EventArgs e)
		{
			using (var prompt = new InputPrompt
			{
				TextInputType = InputPrompt.InputType.Unsigned,
				Message = "Seeking Cutoff Interval",
				InitialValue = Settings.SeekingCutoffInterval.ToString()
			})
			{
				DialogResult result = prompt.ShowDialog();
				if (result == DialogResult.OK)
				{
					int val = int.Parse(prompt.PromptText);
					if (val > 0)
					{
						Settings.SeekingCutoffInterval = val;
						TasView.SeekingCutoffInterval = val;
					}
				}
			}
		}
Пример #10
0
		private void SetBranchCellHoverIntervalMenuItem_Click(object sender, EventArgs e)
		{
			using (var prompt = new InputPrompt
			{
				TextInputType = InputPrompt.InputType.Unsigned,
				Message = "ScreenshotPopUp Delay",
				InitialValue = Settings.BranchCellHoverInterval.ToString()
			})
			{
				DialogResult result = prompt.ShowDialog();
				if (result == DialogResult.OK)
				{
					int val = int.Parse(prompt.PromptText);
					if (val > 0)
					{
						Settings.BranchCellHoverInterval = val;
						BookMarkControl.HoverInterval = val;
					}
				}
			}
		}
Пример #11
0
 private void SetAutosaveIntervalMenuItem_Click(object sender, EventArgs e)
 {
     using (var prompt = new InputPrompt
     {
         TextInputType = InputPrompt.InputType.Unsigned,
         Message = "Autosave Interval in seconds\nSet to 0 to disable",
         InitialValue = (Settings.AutosaveInterval / 1000).ToString()
     })
     {
         DialogResult result = prompt.ShowDialog();
         if (result == DialogResult.OK)
         {
             uint val = uint.Parse(prompt.PromptText) * 1000;
             Settings.AutosaveInterval = val;
             if (val > 0)
             {
                 _autosaveTimer.Interval = (int)val;
                 _autosaveTimer.Start();
             }
         }
     }
 }