AutoRestoreLastPosition now works.
This commit is contained in:
parent
491d0588e4
commit
b2c3530164
|
@ -51,11 +51,11 @@ namespace BizHawk.Client.EmuHawk
|
|||
public bool InputPaintingMode { get; set; }
|
||||
public bool IsPaintDown { get; private set; }
|
||||
|
||||
/// <summary>
|
||||
/// Calculates the column name and row number that the point (x, y) lies in.
|
||||
/// </summary>
|
||||
/// <param name="x">X coordinate</param>
|
||||
/// <param name="y">Y coordinate</param>
|
||||
/// <summary>
|
||||
/// Calculates the column name and row number that the point (x, y) lies in.
|
||||
/// </summary>
|
||||
/// <param name="x">X coordinate</param>
|
||||
/// <param name="y">Y coordinate</param>
|
||||
private void CalculatePointedCell(int x, int y)
|
||||
{
|
||||
int? newRow;
|
||||
|
@ -74,7 +74,7 @@ namespace BizHawk.Client.EmuHawk
|
|||
break;
|
||||
}
|
||||
|
||||
var rowHeight = this.LineHeight;// 5 (in VirtualListView) and 6 work here for me, but are they always dependable, how can I get the padding?
|
||||
var rowHeight = this.LineHeight;// 5 (in VirtualListView) and 6 work here for me, but are they always dependable, how can I get the padding?
|
||||
var headerHeight = rowHeight + 6;
|
||||
|
||||
newRow = ((y - headerHeight) / rowHeight) + this.VScrollPos;
|
||||
|
|
|
@ -201,7 +201,7 @@ namespace BizHawk.Client.EmuHawk
|
|||
{
|
||||
_startFrameDrag = true;
|
||||
}
|
||||
else
|
||||
else//User changed input
|
||||
{
|
||||
var frame = TasView.PointedCell.Row.Value;
|
||||
var buttonName = TasView.PointedCell.Column;
|
||||
|
@ -212,6 +212,12 @@ namespace BizHawk.Client.EmuHawk
|
|||
GoToLastEmulatedFrameIfNecessary(TasView.PointedCell.Row.Value);
|
||||
TasView.Refresh();
|
||||
|
||||
if (Global.Config.TAStudioAutoRestoreLastPosition)
|
||||
{
|
||||
GlobalWin.MainForm.UnpauseEmulator();
|
||||
GlobalWin.MainForm.PauseOnFrame = Global.Emulator.Frame;
|
||||
}
|
||||
|
||||
_startBoolDrawColumn = TasView.PointedCell.Column;
|
||||
_boolPaintState = _currentTasMovie.BoolIsPressed(frame, buttonName);
|
||||
}
|
||||
|
|
|
@ -276,7 +276,6 @@ namespace BizHawk.Client.EmuHawk
|
|||
|
||||
GlobalWin.DisplayManager.NeedsToPaint = true;
|
||||
TasView.ensureVisible(frame);
|
||||
RefreshDialog();
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@ -401,8 +400,6 @@ namespace BizHawk.Client.EmuHawk
|
|||
_currentTasMovie.Markers.Add(markerFrame, i.PromptText);
|
||||
MarkerControl.Refresh();
|
||||
}
|
||||
|
||||
MarkerControl.Refresh();
|
||||
}
|
||||
|
||||
private void UpdateChangesIndicator()
|
||||
|
|
Loading…
Reference in New Issue