BizHawk/BizHawk.Client.EmuHawk/tools/TAStudio/TAStudio.IControlMainForm.cs

52 lines
1.1 KiB
C#
Raw Normal View History

using System;
using System.Collections.Generic;
namespace BizHawk.Client.EmuHawk
2014-07-09 15:04:16 +00:00
{
public partial class TAStudio : IControlMainform
{
private bool _suppressAskSave = false;
public bool WantsToControlReadOnly { get { return false; } }
2014-07-09 15:04:16 +00:00
public void ToggleReadOnly()
{
GlobalWin.OSD.AddMessage("TAStudio does not allow manual readonly toggle");
}
public bool WantsToControlStopMovie { get; private set; }
public void StopMovie(bool supressSave)
{
this.Focus();
_suppressAskSave = supressSave;
NewTasMenuItem_Click(null, null);
_suppressAskSave = false;
}
public bool WantsToControlRewind { get { return true; } }
public void CaptureRewind()
{
// Do nothing, Tastudio handles this just fine
}
public bool Rewind()
{
GoToPreviousFrame();
return true;
}
public bool WantsToControlRestartMovie { get; private set; }
public void RestartMovie()
{
if (AskSaveChanges())
{
WantsToControlStopMovie = false;
StartNewMovieWrapper(false);
WantsToControlStopMovie = true;
RefreshDialog();
}
}
2014-07-09 15:04:16 +00:00
}
}