Tastudio a few simplifications
This commit is contained in:
parent
67a832d79a
commit
d1cb8d53ad
|
@ -101,7 +101,7 @@ namespace BizHawk.Client.EmuHawk
|
||||||
{
|
{
|
||||||
if (MarkerView.AnyRowsSelected)
|
if (MarkerView.AnyRowsSelected)
|
||||||
{
|
{
|
||||||
Tastudio.SetVisibleIndex(SelectedMarkerFrame());
|
Tastudio.SetVisibleFrame(SelectedMarkerFrame());
|
||||||
Tastudio.RefreshDialog();
|
Tastudio.RefreshDialog();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -118,7 +118,7 @@ namespace BizHawk.Client.EmuHawk
|
||||||
|
|
||||||
if (Tastudio.Settings.FollowCursor)
|
if (Tastudio.Settings.FollowCursor)
|
||||||
{
|
{
|
||||||
Tastudio.SetVisibleIndex();
|
Tastudio.SetVisibleFrame();
|
||||||
Tastudio.RefreshDialog();
|
Tastudio.RefreshDialog();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -45,7 +45,7 @@ namespace BizHawk.Client.EmuHawk
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool refreshNeeded = false;
|
var refreshNeeded = false;
|
||||||
if (AutoadjustInputMenuItem.Checked)
|
if (AutoadjustInputMenuItem.Checked)
|
||||||
{
|
{
|
||||||
refreshNeeded = AutoAdjustInput();
|
refreshNeeded = AutoAdjustInput();
|
||||||
|
|
|
@ -97,26 +97,21 @@ namespace BizHawk.Client.EmuHawk
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Makes the given frame visible. If no frame is given, makes the current frame visible.
|
/// Makes the given frame visible. If no frame is given, makes the current frame visible.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public void SetVisibleIndex(int? indexThatMustBeVisible = null)
|
public void SetVisibleFrame(int? frame = null)
|
||||||
{
|
{
|
||||||
if (TasView.AlwaysScroll && _leftButtonHeld)
|
if (TasView.AlwaysScroll && _leftButtonHeld)
|
||||||
{
|
{
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!indexThatMustBeVisible.HasValue)
|
TasView.ScrollToIndex(frame ?? Emulator.Frame);
|
||||||
{
|
|
||||||
indexThatMustBeVisible = Emulator.Frame;
|
|
||||||
}
|
|
||||||
|
|
||||||
TasView.ScrollToIndex(indexThatMustBeVisible.Value);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private void MaybeFollowCursor()
|
private void MaybeFollowCursor()
|
||||||
{
|
{
|
||||||
if (TasPlaybackBox.FollowCursor)
|
if (TasPlaybackBox.FollowCursor)
|
||||||
{
|
{
|
||||||
SetVisibleIndex();
|
SetVisibleFrame();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue