tastudio: scroll to frame appended by offscreen dragging.

need to figure out scroll speed, as it is too high unless drawing VERY slowly.
This commit is contained in:
feos 2015-07-13 22:05:12 +03:00
parent 228a24efb0
commit a2cb4373a9
1 changed files with 11 additions and 1 deletions

View File

@ -669,6 +669,11 @@ namespace BizHawk.Client.EmuHawk
setVal = BoolPatterns[controllerType.BoolButtons.IndexOf(_startBoolDrawColumn)].GetNextValue();
}
CurrentTasMovie.SetBoolState(i, _startBoolDrawColumn, setVal); // Notice it uses new row, old column, you can only paint across a single column
if (Settings.FollowCursor && _leftButtonHeld)
{
SetVisibleIndex(TasView.CurrentCell.RowIndex.Value); // todo: limit scrolling speed
}
if (TasView.CurrentCell.RowIndex.Value < _triggerAutoRestoreFromFrame)
_triggerAutoRestoreFromFrame = TasView.CurrentCell.RowIndex.Value;
}
@ -691,7 +696,12 @@ namespace BizHawk.Client.EmuHawk
else
setVal = FloatPatterns[controllerType.FloatControls.IndexOf(_startFloatDrawColumn)].GetNextValue();
}
CurrentTasMovie.SetFloatState(i, _startFloatDrawColumn, setVal); // Notice it uses new row, old column, you can only paint across a single column
CurrentTasMovie.SetFloatState(i, _startFloatDrawColumn, setVal); // Notice it uses new row, old column, you can only paint across a single column
if (Settings.FollowCursor && _leftButtonHeld)
{
SetVisibleIndex(TasView.CurrentCell.RowIndex.Value); // todo: limit scrolling speed
}
if (TasView.CurrentCell.RowIndex.Value < _triggerAutoRestoreFromFrame)
_triggerAutoRestoreFromFrame = TasView.CurrentCell.RowIndex.Value;
}