Added PCE specific menu: Graphics Settings
This commit is contained in:
parent
05f73ab436
commit
9d72bf0c7c
|
@ -266,6 +266,12 @@
|
|||
<Compile Include="NEStools\SpriteViewer.cs">
|
||||
<SubType>Component</SubType>
|
||||
</Compile>
|
||||
<Compile Include="PCEtools\PCEGraphicsConfig.cs">
|
||||
<SubType>Form</SubType>
|
||||
</Compile>
|
||||
<Compile Include="PCEtools\PCEGraphicsConfig.Designer.cs">
|
||||
<DependentUpon>PCEGraphicsConfig.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="PlayMovie.cs">
|
||||
<SubType>Form</SubType>
|
||||
</Compile>
|
||||
|
@ -289,6 +295,9 @@
|
|||
<DependentUpon>NameStateForm.cs</DependentUpon>
|
||||
<SubType>Designer</SubType>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="PCEtools\PCEGraphicsConfig.resx">
|
||||
<DependentUpon>PCEGraphicsConfig.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="Properties\Resources.resx">
|
||||
<Generator>ResXFileCodeGenerator</Generator>
|
||||
<LastGenOutput>Resources.Designer.cs</LastGenOutput>
|
||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -731,6 +731,13 @@ namespace BizHawk.MultiClient
|
|||
SyncCoreInputComm();
|
||||
}
|
||||
|
||||
private void pceGraphicsSettingsToolStripMenuItem_Click(object sender, EventArgs e)
|
||||
{
|
||||
PCEGraphicsConfig g = new PCEGraphicsConfig();
|
||||
g.ShowDialog();
|
||||
SyncCoreInputComm();
|
||||
}
|
||||
|
||||
public void MainForm_MouseClick(object sender, MouseEventArgs e)
|
||||
{
|
||||
if (Global.Config.ShowContextMenu && e.Button == MouseButtons.Right)
|
||||
|
|
|
@ -816,21 +816,33 @@ namespace BizHawk.MultiClient
|
|||
case "TI83":
|
||||
tI83ToolStripMenuItem.Visible = true;
|
||||
NESToolStripMenuItem.Visible = false;
|
||||
pCEToolStripMenuItem.Visible = false;
|
||||
gBToolStripMenuItem.Visible = false;
|
||||
break;
|
||||
case "NES":
|
||||
NESToolStripMenuItem.Visible = true;
|
||||
tI83ToolStripMenuItem.Visible = false;
|
||||
pCEToolStripMenuItem.Visible = false;
|
||||
gBToolStripMenuItem.Visible = false;
|
||||
break;
|
||||
case "PCE":
|
||||
case "PCECD":
|
||||
case "SGX":
|
||||
NESToolStripMenuItem.Visible = false;
|
||||
tI83ToolStripMenuItem.Visible = false;
|
||||
pCEToolStripMenuItem.Visible = true;
|
||||
gBToolStripMenuItem.Visible = false;
|
||||
break;
|
||||
case "GB":
|
||||
NESToolStripMenuItem.Visible = false;
|
||||
tI83ToolStripMenuItem.Visible = false;
|
||||
pCEToolStripMenuItem.Visible = false;
|
||||
gBToolStripMenuItem.Visible = true;
|
||||
break;
|
||||
default:
|
||||
tI83ToolStripMenuItem.Visible = false;
|
||||
NESToolStripMenuItem.Visible = false;
|
||||
pCEToolStripMenuItem.Visible = false;
|
||||
gBToolStripMenuItem.Visible = false;
|
||||
break;
|
||||
}
|
||||
|
|
|
@ -0,0 +1,162 @@
|
|||
namespace BizHawk.MultiClient
|
||||
{
|
||||
partial class PCEGraphicsConfig
|
||||
{
|
||||
/// <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()
|
||||
{
|
||||
this.OK = new System.Windows.Forms.Button();
|
||||
this.Cancel = new System.Windows.Forms.Button();
|
||||
this.groupBox1 = new System.Windows.Forms.GroupBox();
|
||||
this.DispOBJ1 = new System.Windows.Forms.CheckBox();
|
||||
this.DispBG1 = new System.Windows.Forms.CheckBox();
|
||||
this.DispOBJ2 = new System.Windows.Forms.CheckBox();
|
||||
this.DispBG2 = new System.Windows.Forms.CheckBox();
|
||||
this.groupBox1.SuspendLayout();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
// OK
|
||||
//
|
||||
this.OK.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.OK.DialogResult = System.Windows.Forms.DialogResult.OK;
|
||||
this.OK.Location = new System.Drawing.Point(213, 343);
|
||||
this.OK.Name = "OK";
|
||||
this.OK.Size = new System.Drawing.Size(75, 21);
|
||||
this.OK.TabIndex = 0;
|
||||
this.OK.Text = "&Ok";
|
||||
this.OK.UseVisualStyleBackColor = true;
|
||||
this.OK.Click += new System.EventHandler(this.OK_Click);
|
||||
//
|
||||
// Cancel
|
||||
//
|
||||
this.Cancel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.Cancel.DialogResult = System.Windows.Forms.DialogResult.Cancel;
|
||||
this.Cancel.Location = new System.Drawing.Point(294, 343);
|
||||
this.Cancel.Name = "Cancel";
|
||||
this.Cancel.Size = new System.Drawing.Size(75, 21);
|
||||
this.Cancel.TabIndex = 1;
|
||||
this.Cancel.Text = "&Cancel";
|
||||
this.Cancel.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// groupBox1
|
||||
//
|
||||
this.groupBox1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)
|
||||
| System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.groupBox1.Controls.Add(this.DispBG2);
|
||||
this.groupBox1.Controls.Add(this.DispOBJ2);
|
||||
this.groupBox1.Controls.Add(this.DispBG1);
|
||||
this.groupBox1.Controls.Add(this.DispOBJ1);
|
||||
this.groupBox1.Location = new System.Drawing.Point(12, 206);
|
||||
this.groupBox1.Name = "groupBox1";
|
||||
this.groupBox1.Size = new System.Drawing.Size(352, 118);
|
||||
this.groupBox1.TabIndex = 2;
|
||||
this.groupBox1.TabStop = false;
|
||||
this.groupBox1.Text = "BG and Sprites";
|
||||
//
|
||||
// DispOBJ1
|
||||
//
|
||||
this.DispOBJ1.AutoSize = true;
|
||||
this.DispOBJ1.Checked = true;
|
||||
this.DispOBJ1.CheckState = System.Windows.Forms.CheckState.Checked;
|
||||
this.DispOBJ1.Location = new System.Drawing.Point(9, 18);
|
||||
this.DispOBJ1.Name = "DispOBJ1";
|
||||
this.DispOBJ1.Size = new System.Drawing.Size(95, 16);
|
||||
this.DispOBJ1.TabIndex = 0;
|
||||
this.DispOBJ1.Text = "Display OBJ1";
|
||||
this.DispOBJ1.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// DispBG1
|
||||
//
|
||||
this.DispBG1.AutoSize = true;
|
||||
this.DispBG1.Checked = true;
|
||||
this.DispBG1.CheckState = System.Windows.Forms.CheckState.Checked;
|
||||
this.DispBG1.Location = new System.Drawing.Point(9, 39);
|
||||
this.DispBG1.Name = "DispBG1";
|
||||
this.DispBG1.Size = new System.Drawing.Size(88, 16);
|
||||
this.DispBG1.TabIndex = 1;
|
||||
this.DispBG1.Text = "Display BG1";
|
||||
this.DispBG1.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// DispOBJ2
|
||||
//
|
||||
this.DispOBJ2.AutoSize = true;
|
||||
this.DispOBJ2.Checked = true;
|
||||
this.DispOBJ2.CheckState = System.Windows.Forms.CheckState.Checked;
|
||||
this.DispOBJ2.Location = new System.Drawing.Point(108, 18);
|
||||
this.DispOBJ2.Name = "DispOBJ2";
|
||||
this.DispOBJ2.Size = new System.Drawing.Size(95, 16);
|
||||
this.DispOBJ2.TabIndex = 2;
|
||||
this.DispOBJ2.Text = "Display OBJ2";
|
||||
this.DispOBJ2.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// DispBG2
|
||||
//
|
||||
this.DispBG2.AutoSize = true;
|
||||
this.DispBG2.Checked = true;
|
||||
this.DispBG2.CheckState = System.Windows.Forms.CheckState.Checked;
|
||||
this.DispBG2.Location = new System.Drawing.Point(108, 39);
|
||||
this.DispBG2.Name = "DispBG2";
|
||||
this.DispBG2.Size = new System.Drawing.Size(88, 16);
|
||||
this.DispBG2.TabIndex = 3;
|
||||
this.DispBG2.Text = "Display BG2";
|
||||
this.DispBG2.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// PCEGraphicsConfig
|
||||
//
|
||||
this.AcceptButton = this.OK;
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||
this.CancelButton = this.Cancel;
|
||||
this.ClientSize = new System.Drawing.Size(381, 376);
|
||||
this.Controls.Add(this.groupBox1);
|
||||
this.Controls.Add(this.Cancel);
|
||||
this.Controls.Add(this.OK);
|
||||
this.MaximizeBox = false;
|
||||
this.MaximumSize = new System.Drawing.Size(389, 403);
|
||||
this.MinimizeBox = false;
|
||||
this.MinimumSize = new System.Drawing.Size(389, 403);
|
||||
this.Name = "PCEGraphicsConfig";
|
||||
this.ShowIcon = false;
|
||||
this.SizeGripStyle = System.Windows.Forms.SizeGripStyle.Hide;
|
||||
this.Text = "PCE Graphics Settings";
|
||||
this.Load += new System.EventHandler(this.PCEGraphicsConfig_Load);
|
||||
this.groupBox1.ResumeLayout(false);
|
||||
this.groupBox1.PerformLayout();
|
||||
this.ResumeLayout(false);
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
private System.Windows.Forms.Button OK;
|
||||
private System.Windows.Forms.Button Cancel;
|
||||
private System.Windows.Forms.GroupBox groupBox1;
|
||||
private System.Windows.Forms.CheckBox DispBG2;
|
||||
private System.Windows.Forms.CheckBox DispOBJ2;
|
||||
private System.Windows.Forms.CheckBox DispBG1;
|
||||
private System.Windows.Forms.CheckBox DispOBJ1;
|
||||
}
|
||||
}
|
|
@ -0,0 +1,39 @@
|
|||
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.Emulation.Consoles.TurboGrafx;
|
||||
|
||||
namespace BizHawk.MultiClient
|
||||
{
|
||||
public partial class PCEGraphicsConfig : Form
|
||||
{
|
||||
PCEngine pce;
|
||||
|
||||
public PCEGraphicsConfig()
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
|
||||
private void PCEGraphicsConfig_Load(object sender, EventArgs e)
|
||||
{
|
||||
pce = Global.Emulator as PCEngine;
|
||||
DispOBJ1.Checked = Global.Config.PCEDispOBJ1;
|
||||
DispBG1.Checked = Global.Config.PCEDispBG1;
|
||||
DispOBJ2.Checked = Global.Config.PCEDispOBJ2;
|
||||
DispBG2.Checked = Global.Config.PCEDispBG2;
|
||||
}
|
||||
|
||||
private void OK_Click(object sender, EventArgs e)
|
||||
{
|
||||
Global.Config.PCEDispOBJ1 = DispOBJ1.Checked;
|
||||
Global.Config.PCEDispBG1 = DispBG1.Checked;
|
||||
Global.Config.PCEDispOBJ2 = DispOBJ2.Checked;
|
||||
Global.Config.PCEDispBG2 = DispBG2.Checked;
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,120 @@
|
|||
<?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>
|
||||
</root>
|
Loading…
Reference in New Issue