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:
parent
228a24efb0
commit
a2cb4373a9
|
@ -669,6 +669,11 @@ namespace BizHawk.Client.EmuHawk
|
||||||
setVal = BoolPatterns[controllerType.BoolButtons.IndexOf(_startBoolDrawColumn)].GetNextValue();
|
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
|
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)
|
if (TasView.CurrentCell.RowIndex.Value < _triggerAutoRestoreFromFrame)
|
||||||
_triggerAutoRestoreFromFrame = TasView.CurrentCell.RowIndex.Value;
|
_triggerAutoRestoreFromFrame = TasView.CurrentCell.RowIndex.Value;
|
||||||
}
|
}
|
||||||
|
@ -691,7 +696,12 @@ namespace BizHawk.Client.EmuHawk
|
||||||
else
|
else
|
||||||
setVal = FloatPatterns[controllerType.FloatControls.IndexOf(_startFloatDrawColumn)].GetNextValue();
|
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)
|
if (TasView.CurrentCell.RowIndex.Value < _triggerAutoRestoreFromFrame)
|
||||||
_triggerAutoRestoreFromFrame = TasView.CurrentCell.RowIndex.Value;
|
_triggerAutoRestoreFromFrame = TasView.CurrentCell.RowIndex.Value;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue