Tastudio - a dialog to change the default "greenzone" settings

This commit is contained in:
adelikat 2014-10-18 01:01:45 +00:00
parent 48eb40449c
commit 305dea53ab
7 changed files with 351 additions and 9 deletions

View File

@ -1,7 +1,9 @@
using System; using System;
using System.ComponentModel;
using System.Text; using System.Text;
using Newtonsoft.Json; using Newtonsoft.Json;
namespace BizHawk.Client.Common namespace BizHawk.Client.Common
{ {
public class TasStateManagerSettings public class TasStateManagerSettings
@ -21,14 +23,19 @@ namespace BizHawk.Client.Common
/// <summary> /// <summary>
/// Whether or not to save greenzone information to disk /// Whether or not to save greenzone information to disk
/// </summary> /// </summary>
[DisplayName("Save History")]
[Description("Whether or not to use savestate history")]
public bool SaveGreenzone { get; set; } public bool SaveGreenzone { get; set; }
/// <summary> /// <summary>
/// The total amount of memory to devote to greenzone in megabytes /// The total amount of memory to devote to greenzone in megabytes
/// </summary> /// </summary>
[DisplayName("Capacity (in megabytes))")]
[Description("The size limit of the state history buffer. When this limit is reached it will start removing previous savestates")]
public int Capacitymb { get; set; } public int Capacitymb { get; set; }
[JsonIgnore] [JsonIgnore]
[Browsable(false)]
public int Cap public int Cap
{ {
get { return Capacitymb * 1024 * 1024; } get { return Capacitymb * 1024 * 1024; }

View File

@ -839,6 +839,12 @@
<Compile Include="tools\TAStudio\BookmarksBranchesBox.Designer.cs"> <Compile Include="tools\TAStudio\BookmarksBranchesBox.Designer.cs">
<DependentUpon>BookmarksBranchesBox.cs</DependentUpon> <DependentUpon>BookmarksBranchesBox.cs</DependentUpon>
</Compile> </Compile>
<Compile Include="tools\TAStudio\DefaultGreenzoneSettings.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="tools\TAStudio\DefaultGreenzoneSettings.Designer.cs">
<DependentUpon>DefaultGreenzoneSettings.cs</DependentUpon>
</Compile>
<Compile Include="tools\TAStudio\FramesPrompt.cs"> <Compile Include="tools\TAStudio\FramesPrompt.cs">
<SubType>Form</SubType> <SubType>Form</SubType>
</Compile> </Compile>
@ -1291,6 +1297,9 @@
<EmbeddedResource Include="tools\TAStudio\BookmarksBranchesBox.resx"> <EmbeddedResource Include="tools\TAStudio\BookmarksBranchesBox.resx">
<DependentUpon>BookmarksBranchesBox.cs</DependentUpon> <DependentUpon>BookmarksBranchesBox.cs</DependentUpon>
</EmbeddedResource> </EmbeddedResource>
<EmbeddedResource Include="tools\TAStudio\DefaultGreenzoneSettings.resx">
<DependentUpon>DefaultGreenzoneSettings.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="tools\TAStudio\FramesPrompt.resx"> <EmbeddedResource Include="tools\TAStudio\FramesPrompt.resx">
<DependentUpon>FramesPrompt.cs</DependentUpon> <DependentUpon>FramesPrompt.cs</DependentUpon>
</EmbeddedResource> </EmbeddedResource>

View File

@ -0,0 +1,110 @@
namespace BizHawk.Client.EmuHawk
{
partial class DefaultGreenzoneSettings
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summary>
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
#region Windows Form Designer generated code
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(DefaultGreenzoneSettings));
this.OkBtn = new System.Windows.Forms.Button();
this.CancelBtn = new System.Windows.Forms.Button();
this.DefaultsButton = new System.Windows.Forms.Button();
this.SettingsPropertyGrid = new System.Windows.Forms.PropertyGrid();
this.SuspendLayout();
//
// OkBtn
//
this.OkBtn.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
this.OkBtn.Location = new System.Drawing.Point(227, 266);
this.OkBtn.Name = "OkBtn";
this.OkBtn.Size = new System.Drawing.Size(60, 23);
this.OkBtn.TabIndex = 3;
this.OkBtn.Text = "&Ok";
this.OkBtn.UseVisualStyleBackColor = true;
this.OkBtn.Click += new System.EventHandler(this.OkBtn_Click);
//
// CancelBtn
//
this.CancelBtn.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
this.CancelBtn.DialogResult = System.Windows.Forms.DialogResult.Cancel;
this.CancelBtn.Location = new System.Drawing.Point(293, 266);
this.CancelBtn.Name = "CancelBtn";
this.CancelBtn.Size = new System.Drawing.Size(60, 23);
this.CancelBtn.TabIndex = 2;
this.CancelBtn.Text = "&Cancel";
this.CancelBtn.UseVisualStyleBackColor = true;
this.CancelBtn.Click += new System.EventHandler(this.CancelBtn_Click);
//
// DefaultsButton
//
this.DefaultsButton.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
this.DefaultsButton.Location = new System.Drawing.Point(12, 266);
this.DefaultsButton.Name = "DefaultsButton";
this.DefaultsButton.Size = new System.Drawing.Size(101, 23);
this.DefaultsButton.TabIndex = 4;
this.DefaultsButton.Text = "Restore &Defaults";
this.DefaultsButton.UseVisualStyleBackColor = true;
this.DefaultsButton.Click += new System.EventHandler(this.DefaultsButton_Click);
//
// SettingsPropertyGrid
//
this.SettingsPropertyGrid.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
| System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.SettingsPropertyGrid.Location = new System.Drawing.Point(12, 8);
this.SettingsPropertyGrid.Name = "SettingsPropertyGrid";
this.SettingsPropertyGrid.PropertySort = System.Windows.Forms.PropertySort.NoSort;
this.SettingsPropertyGrid.Size = new System.Drawing.Size(341, 252);
this.SettingsPropertyGrid.TabIndex = 5;
this.SettingsPropertyGrid.ToolbarVisible = false;
//
// DefaultGreenzoneSettings
//
this.AcceptButton = this.OkBtn;
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.CancelButton = this.CancelBtn;
this.ClientSize = new System.Drawing.Size(365, 301);
this.Controls.Add(this.SettingsPropertyGrid);
this.Controls.Add(this.DefaultsButton);
this.Controls.Add(this.OkBtn);
this.Controls.Add(this.CancelBtn);
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
this.Name = "DefaultGreenzoneSettings";
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
this.Text = "Default Savestate History Settings";
this.ResumeLayout(false);
}
#endregion
private System.Windows.Forms.Button OkBtn;
private System.Windows.Forms.Button CancelBtn;
private System.Windows.Forms.Button DefaultsButton;
private System.Windows.Forms.PropertyGrid SettingsPropertyGrid;
}
}

View File

@ -0,0 +1,44 @@
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using BizHawk.Client.Common;
namespace BizHawk.Client.EmuHawk
{
public partial class DefaultGreenzoneSettings : Form
{
TasStateManagerSettings settings;
public DefaultGreenzoneSettings()
{
InitializeComponent();
settings = new TasStateManagerSettings(Global.Config.DefaultTasProjSettings);
SettingsPropertyGrid.SelectedObject = settings;
}
private void OkBtn_Click(object sender, EventArgs e)
{
Global.Config.DefaultTasProjSettings = settings;
this.Close();
}
private void CancelBtn_Click(object sender, EventArgs e)
{
this.Close();
}
private void DefaultsButton_Click(object sender, EventArgs e)
{
settings = new TasStateManagerSettings();
SettingsPropertyGrid.SelectedObject = settings;
}
}
}

View File

@ -0,0 +1,149 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
Version 2.0
The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes
associated with the data types.
Example:
... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
<value>[base64 mime encoded serialized .NET Framework object]</value>
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
<comment>This is a comment</comment>
</data>
There are any number of "resheader" rows that contain simple
name/value pairs.
Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the
mimetype set.
The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly:
Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" />
</xsd:sequence>
<xsd:attribute name="name" use="required" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="assembly">
<xsd:complexType>
<xsd:attribute name="alias" type="xsd:string" />
<xsd:attribute name="name" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<data name="$this.Icon" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
AAABAAEAEBAAAAAAAABoBQAAFgAAACgAAAAQAAAAIAAAAAEACAAAAAAAQAEAAAAAAAAAAAAAAAAAAAAA
AAAAAAAA////AP64aABQUFAAwNjwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAMDAAMDAwAAAAAAAAAAAAMCAgMDAwMDAwAAAAMDAAADAgICAwMDAwMDAwMCAgMAAAMCAwMD
AwMDAwMDAgIDAAMEBAQDAgMDAwMDAwICAgMDBAQEAwICAwQDAwQDAgIDAAMDAwICAgMCAgIDAwMDAAAA
AwICAgMCAgIDAgMAAAAAAAAAAwMEBAQEBAQCAwAAAAAAAwMEBAQDAwMDAwMAAAAAAwQEAwMEBAMEBAQC
AwAAAAMEBAMDBAMEBAQEAgMAAAAAAwMDBAQDBAMDAwIDAAAAAAMCAgICAgICAgMEBAMAAAAAAwICAgIC
AwMEBAQDAAAAAAADAwMDAwAAAwMDAJH/AAAAcwAAAAEAAIABAAAAAAAAAAAAAIABAADABwAA8AMAAOAD
AADAAQAAwAEAAOABAADgAAAA8AAAAPgxAAA=
</value>
</data>
</root>

View File

@ -129,6 +129,8 @@ namespace BizHawk.Client.EmuHawk
this.InsertNumFramesContextMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.InsertNumFramesContextMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.toolStripSeparator18 = new System.Windows.Forms.ToolStripSeparator(); this.toolStripSeparator18 = new System.Windows.Forms.ToolStripSeparator();
this.TruncateContextMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.TruncateContextMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.toolStripSeparator21 = new System.Windows.Forms.ToolStripSeparator();
this.DefaultStateSettingsMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.TASMenu.SuspendLayout(); this.TASMenu.SuspendLayout();
this.TasStatusStrip.SuspendLayout(); this.TasStatusStrip.SuspendLayout();
this.RightClickMenu.SuspendLayout(); this.RightClickMenu.SuspendLayout();
@ -454,9 +456,9 @@ namespace BizHawk.Client.EmuHawk
this.GreenzoneICheckSeparator.Name = "GreenzoneICheckSeparator"; this.GreenzoneICheckSeparator.Name = "GreenzoneICheckSeparator";
this.GreenzoneICheckSeparator.Size = new System.Drawing.Size(279, 6); this.GreenzoneICheckSeparator.Size = new System.Drawing.Size(279, 6);
// //
// GreenZzoneIntegrityCheckMenuItem // GreenZoneIntegrityCheckMenuItem
// //
this.GreenZoneIntegrityCheckMenuItem.Name = "GreenZzoneIntegrityCheckMenuItem"; this.GreenZoneIntegrityCheckMenuItem.Name = "GreenZoneIntegrityCheckMenuItem";
this.GreenZoneIntegrityCheckMenuItem.ShortcutKeys = ((System.Windows.Forms.Keys)(((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.Shift) this.GreenZoneIntegrityCheckMenuItem.ShortcutKeys = ((System.Windows.Forms.Keys)(((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.Shift)
| System.Windows.Forms.Keys.I))); | System.Windows.Forms.Keys.I)));
this.GreenZoneIntegrityCheckMenuItem.Size = new System.Drawing.Size(282, 22); this.GreenZoneIntegrityCheckMenuItem.Size = new System.Drawing.Size(282, 22);
@ -601,7 +603,9 @@ namespace BizHawk.Client.EmuHawk
this.HeaderMenuItem, this.HeaderMenuItem,
this.GreenzoneSettingsMenuItem, this.GreenzoneSettingsMenuItem,
this.CommentsMenuItem, this.CommentsMenuItem,
this.SubtitlesMenuItem}); this.SubtitlesMenuItem,
this.toolStripSeparator21,
this.DefaultStateSettingsMenuItem});
this.MetaSubMenu.Name = "MetaSubMenu"; this.MetaSubMenu.Name = "MetaSubMenu";
this.MetaSubMenu.Size = new System.Drawing.Size(69, 20); this.MetaSubMenu.Size = new System.Drawing.Size(69, 20);
this.MetaSubMenu.Text = "&Metadata"; this.MetaSubMenu.Text = "&Metadata";
@ -609,28 +613,28 @@ namespace BizHawk.Client.EmuHawk
// HeaderMenuItem // HeaderMenuItem
// //
this.HeaderMenuItem.Name = "HeaderMenuItem"; this.HeaderMenuItem.Name = "HeaderMenuItem";
this.HeaderMenuItem.Size = new System.Drawing.Size(184, 22); this.HeaderMenuItem.Size = new System.Drawing.Size(236, 22);
this.HeaderMenuItem.Text = "&Header..."; this.HeaderMenuItem.Text = "&Header...";
this.HeaderMenuItem.Click += new System.EventHandler(this.HeaderMenuItem_Click); this.HeaderMenuItem.Click += new System.EventHandler(this.HeaderMenuItem_Click);
// //
// GreenzoneSettingsMenuItem // GreenzoneSettingsMenuItem
// //
this.GreenzoneSettingsMenuItem.Name = "GreenzoneSettingsMenuItem"; this.GreenzoneSettingsMenuItem.Name = "GreenzoneSettingsMenuItem";
this.GreenzoneSettingsMenuItem.Size = new System.Drawing.Size(184, 22); this.GreenzoneSettingsMenuItem.Size = new System.Drawing.Size(236, 22);
this.GreenzoneSettingsMenuItem.Text = "&Greenzone Settings..."; this.GreenzoneSettingsMenuItem.Text = "&Savestate History Settings...";
this.GreenzoneSettingsMenuItem.Click += new System.EventHandler(this.GreenzoneSettingsMenuItem_Click); this.GreenzoneSettingsMenuItem.Click += new System.EventHandler(this.GreenzoneSettingsMenuItem_Click);
// //
// CommentsMenuItem // CommentsMenuItem
// //
this.CommentsMenuItem.Name = "CommentsMenuItem"; this.CommentsMenuItem.Name = "CommentsMenuItem";
this.CommentsMenuItem.Size = new System.Drawing.Size(184, 22); this.CommentsMenuItem.Size = new System.Drawing.Size(236, 22);
this.CommentsMenuItem.Text = "&Comments..."; this.CommentsMenuItem.Text = "&Comments...";
this.CommentsMenuItem.Click += new System.EventHandler(this.CommentsMenuItem_Click); this.CommentsMenuItem.Click += new System.EventHandler(this.CommentsMenuItem_Click);
// //
// SubtitlesMenuItem // SubtitlesMenuItem
// //
this.SubtitlesMenuItem.Name = "SubtitlesMenuItem"; this.SubtitlesMenuItem.Name = "SubtitlesMenuItem";
this.SubtitlesMenuItem.Size = new System.Drawing.Size(184, 22); this.SubtitlesMenuItem.Size = new System.Drawing.Size(236, 22);
this.SubtitlesMenuItem.Text = "&Subtitles..."; this.SubtitlesMenuItem.Text = "&Subtitles...";
this.SubtitlesMenuItem.Click += new System.EventHandler(this.SubtitlesMenuItem_Click); this.SubtitlesMenuItem.Click += new System.EventHandler(this.SubtitlesMenuItem_Click);
// //
@ -708,7 +712,7 @@ namespace BizHawk.Client.EmuHawk
// toolStripSeparator19 // toolStripSeparator19
// //
this.toolStripSeparator19.Name = "toolStripSeparator19"; this.toolStripSeparator19.Name = "toolStripSeparator19";
this.toolStripSeparator19.Size = new System.Drawing.Size(149, 6); this.toolStripSeparator19.Size = new System.Drawing.Size(57, 6);
// //
// HelpSubMenu // HelpSubMenu
// //
@ -937,6 +941,18 @@ namespace BizHawk.Client.EmuHawk
this.TruncateContextMenuItem.Text = "Truncate Movie"; this.TruncateContextMenuItem.Text = "Truncate Movie";
this.TruncateContextMenuItem.Click += new System.EventHandler(this.TruncateMenuItem_Click); this.TruncateContextMenuItem.Click += new System.EventHandler(this.TruncateMenuItem_Click);
// //
// toolStripSeparator21
//
this.toolStripSeparator21.Name = "toolStripSeparator21";
this.toolStripSeparator21.Size = new System.Drawing.Size(233, 6);
//
// DefaultStateSettingsMenuItem
//
this.DefaultStateSettingsMenuItem.Name = "DefaultStateSettingsMenuItem";
this.DefaultStateSettingsMenuItem.Size = new System.Drawing.Size(236, 22);
this.DefaultStateSettingsMenuItem.Text = "&Default State History Settings...";
this.DefaultStateSettingsMenuItem.Click += new System.EventHandler(this.DefaultStateSettingsMenuItem_Click);
//
// TAStudio // TAStudio
// //
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
@ -1064,5 +1080,7 @@ namespace BizHawk.Client.EmuHawk
private System.Windows.Forms.ToolStripSeparator toolStripSeparator19; private System.Windows.Forms.ToolStripSeparator toolStripSeparator19;
private System.Windows.Forms.ToolStripSeparator toolStripSeparator20; private System.Windows.Forms.ToolStripSeparator toolStripSeparator20;
private System.Windows.Forms.ToolStripMenuItem RotateMenuItem; private System.Windows.Forms.ToolStripMenuItem RotateMenuItem;
private System.Windows.Forms.ToolStripSeparator toolStripSeparator21;
private System.Windows.Forms.ToolStripMenuItem DefaultStateSettingsMenuItem;
} }
} }

View File

@ -511,6 +511,11 @@ namespace BizHawk.Client.EmuHawk
form.ShowDialog(); form.ShowDialog();
} }
private void DefaultStateSettingsMenuItem_Click(object sender, EventArgs e)
{
new DefaultGreenzoneSettings().ShowDialog();
}
#endregion #endregion
#region Settings Menu #region Settings Menu