Tastudio - a dialog to change the default "greenzone" settings
This commit is contained in:
parent
48eb40449c
commit
305dea53ab
|
@ -1,7 +1,9 @@
|
|||
using System;
|
||||
using System.ComponentModel;
|
||||
using System.Text;
|
||||
using Newtonsoft.Json;
|
||||
|
||||
|
||||
namespace BizHawk.Client.Common
|
||||
{
|
||||
public class TasStateManagerSettings
|
||||
|
@ -21,14 +23,19 @@ namespace BizHawk.Client.Common
|
|||
/// <summary>
|
||||
/// Whether or not to save greenzone information to disk
|
||||
/// </summary>
|
||||
[DisplayName("Save History")]
|
||||
[Description("Whether or not to use savestate history")]
|
||||
public bool SaveGreenzone { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// The total amount of memory to devote to greenzone in megabytes
|
||||
/// </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; }
|
||||
|
||||
[JsonIgnore]
|
||||
[Browsable(false)]
|
||||
public int Cap
|
||||
{
|
||||
get { return Capacitymb * 1024 * 1024; }
|
||||
|
|
|
@ -839,6 +839,12 @@
|
|||
<Compile Include="tools\TAStudio\BookmarksBranchesBox.Designer.cs">
|
||||
<DependentUpon>BookmarksBranchesBox.cs</DependentUpon>
|
||||
</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">
|
||||
<SubType>Form</SubType>
|
||||
</Compile>
|
||||
|
@ -1291,6 +1297,9 @@
|
|||
<EmbeddedResource Include="tools\TAStudio\BookmarksBranchesBox.resx">
|
||||
<DependentUpon>BookmarksBranchesBox.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="tools\TAStudio\DefaultGreenzoneSettings.resx">
|
||||
<DependentUpon>DefaultGreenzoneSettings.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="tools\TAStudio\FramesPrompt.resx">
|
||||
<DependentUpon>FramesPrompt.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
|
|
110
BizHawk.Client.EmuHawk/tools/TAStudio/DefaultGreenzoneSettings.Designer.cs
generated
Normal file
110
BizHawk.Client.EmuHawk/tools/TAStudio/DefaultGreenzoneSettings.Designer.cs
generated
Normal 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;
|
||||
}
|
||||
}
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
|
@ -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>
|
|
@ -129,6 +129,8 @@ namespace BizHawk.Client.EmuHawk
|
|||
this.InsertNumFramesContextMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.toolStripSeparator18 = new System.Windows.Forms.ToolStripSeparator();
|
||||
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.TasStatusStrip.SuspendLayout();
|
||||
this.RightClickMenu.SuspendLayout();
|
||||
|
@ -454,9 +456,9 @@ namespace BizHawk.Client.EmuHawk
|
|||
this.GreenzoneICheckSeparator.Name = "GreenzoneICheckSeparator";
|
||||
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)
|
||||
| System.Windows.Forms.Keys.I)));
|
||||
this.GreenZoneIntegrityCheckMenuItem.Size = new System.Drawing.Size(282, 22);
|
||||
|
@ -601,7 +603,9 @@ namespace BizHawk.Client.EmuHawk
|
|||
this.HeaderMenuItem,
|
||||
this.GreenzoneSettingsMenuItem,
|
||||
this.CommentsMenuItem,
|
||||
this.SubtitlesMenuItem});
|
||||
this.SubtitlesMenuItem,
|
||||
this.toolStripSeparator21,
|
||||
this.DefaultStateSettingsMenuItem});
|
||||
this.MetaSubMenu.Name = "MetaSubMenu";
|
||||
this.MetaSubMenu.Size = new System.Drawing.Size(69, 20);
|
||||
this.MetaSubMenu.Text = "&Metadata";
|
||||
|
@ -609,28 +613,28 @@ namespace BizHawk.Client.EmuHawk
|
|||
// 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.Click += new System.EventHandler(this.HeaderMenuItem_Click);
|
||||
//
|
||||
// GreenzoneSettingsMenuItem
|
||||
//
|
||||
this.GreenzoneSettingsMenuItem.Name = "GreenzoneSettingsMenuItem";
|
||||
this.GreenzoneSettingsMenuItem.Size = new System.Drawing.Size(184, 22);
|
||||
this.GreenzoneSettingsMenuItem.Text = "&Greenzone Settings...";
|
||||
this.GreenzoneSettingsMenuItem.Size = new System.Drawing.Size(236, 22);
|
||||
this.GreenzoneSettingsMenuItem.Text = "&Savestate History Settings...";
|
||||
this.GreenzoneSettingsMenuItem.Click += new System.EventHandler(this.GreenzoneSettingsMenuItem_Click);
|
||||
//
|
||||
// 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.Click += new System.EventHandler(this.CommentsMenuItem_Click);
|
||||
//
|
||||
// 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.Click += new System.EventHandler(this.SubtitlesMenuItem_Click);
|
||||
//
|
||||
|
@ -708,7 +712,7 @@ namespace BizHawk.Client.EmuHawk
|
|||
// toolStripSeparator19
|
||||
//
|
||||
this.toolStripSeparator19.Name = "toolStripSeparator19";
|
||||
this.toolStripSeparator19.Size = new System.Drawing.Size(149, 6);
|
||||
this.toolStripSeparator19.Size = new System.Drawing.Size(57, 6);
|
||||
//
|
||||
// HelpSubMenu
|
||||
//
|
||||
|
@ -937,6 +941,18 @@ namespace BizHawk.Client.EmuHawk
|
|||
this.TruncateContextMenuItem.Text = "Truncate Movie";
|
||||
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
|
||||
//
|
||||
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 toolStripSeparator20;
|
||||
private System.Windows.Forms.ToolStripMenuItem RotateMenuItem;
|
||||
private System.Windows.Forms.ToolStripSeparator toolStripSeparator21;
|
||||
private System.Windows.Forms.ToolStripMenuItem DefaultStateSettingsMenuItem;
|
||||
}
|
||||
}
|
|
@ -511,6 +511,11 @@ namespace BizHawk.Client.EmuHawk
|
|||
form.ShowDialog();
|
||||
}
|
||||
|
||||
private void DefaultStateSettingsMenuItem_Click(object sender, EventArgs e)
|
||||
{
|
||||
new DefaultGreenzoneSettings().ShowDialog();
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region Settings Menu
|
||||
|
|
Loading…
Reference in New Issue