mirror of
https://github.com/kwsch/NHSE.git
synced 2026-04-24 15:18:33 -05:00
parent
8458c52c28
commit
ddde5040a2
53
NHSE.WinForms/Controls/VillagerEditor.Designer.cs
generated
53
NHSE.WinForms/Controls/VillagerEditor.Designer.cs
generated
|
|
@ -28,9 +28,10 @@ protected override void Dispose(bool disposing)
|
|||
/// </summary>
|
||||
private void InitializeComponent()
|
||||
{
|
||||
this.components = new System.ComponentModel.Container();
|
||||
this.B_EditVillagerFlags = new System.Windows.Forms.Button();
|
||||
this.CHK_VillagerMovingOut = new System.Windows.Forms.CheckBox();
|
||||
this.B_EditFurniture = new System.Windows.Forms.Button();
|
||||
this.B_EditVillager = new System.Windows.Forms.Button();
|
||||
this.B_LoadVillager = new System.Windows.Forms.Button();
|
||||
this.B_DumpVillager = new System.Windows.Forms.Button();
|
||||
this.L_ExternalName = new System.Windows.Forms.Label();
|
||||
|
|
@ -47,10 +48,14 @@ private void InitializeComponent()
|
|||
this.L_VillagerID = new System.Windows.Forms.Label();
|
||||
this.NUD_Villager = new System.Windows.Forms.NumericUpDown();
|
||||
this.B_EditHouses = new System.Windows.Forms.Button();
|
||||
this.CM_EditVillager = new System.Windows.Forms.ContextMenuStrip(this.components);
|
||||
this.B_EditFurniture = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.B_EditVillagerRoom = new System.Windows.Forms.ToolStripMenuItem();
|
||||
((System.ComponentModel.ISupportInitialize)(this.NUD_Variant)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.NUD_Species)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.PB_Villager)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.NUD_Villager)).BeginInit();
|
||||
this.CM_EditVillager.SuspendLayout();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
// B_EditVillagerFlags
|
||||
|
|
@ -74,15 +79,15 @@ private void InitializeComponent()
|
|||
this.CHK_VillagerMovingOut.UseVisualStyleBackColor = true;
|
||||
this.CHK_VillagerMovingOut.CheckedChanged += new System.EventHandler(this.CHK_VillagerMovingOut_CheckedChanged);
|
||||
//
|
||||
// B_EditFurniture
|
||||
// B_EditVillager
|
||||
//
|
||||
this.B_EditFurniture.Location = new System.Drawing.Point(297, 165);
|
||||
this.B_EditFurniture.Name = "B_EditFurniture";
|
||||
this.B_EditFurniture.Size = new System.Drawing.Size(92, 40);
|
||||
this.B_EditFurniture.TabIndex = 44;
|
||||
this.B_EditFurniture.Text = "Edit Furniture";
|
||||
this.B_EditFurniture.UseVisualStyleBackColor = true;
|
||||
this.B_EditFurniture.Click += new System.EventHandler(this.B_EditFurniture_Click);
|
||||
this.B_EditVillager.Location = new System.Drawing.Point(297, 165);
|
||||
this.B_EditVillager.Name = "B_EditVillager";
|
||||
this.B_EditVillager.Size = new System.Drawing.Size(92, 40);
|
||||
this.B_EditVillager.TabIndex = 44;
|
||||
this.B_EditVillager.Text = "Edit Villager...";
|
||||
this.B_EditVillager.UseVisualStyleBackColor = true;
|
||||
this.B_EditVillager.Click += new System.EventHandler(this.B_EditVillager_Click);
|
||||
//
|
||||
// B_LoadVillager
|
||||
//
|
||||
|
|
@ -244,6 +249,28 @@ private void InitializeComponent()
|
|||
this.B_EditHouses.UseVisualStyleBackColor = true;
|
||||
this.B_EditHouses.Click += new System.EventHandler(this.B_EditHouse_Click);
|
||||
//
|
||||
// CM_EditVillager
|
||||
//
|
||||
this.CM_EditVillager.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
|
||||
this.B_EditFurniture,
|
||||
this.B_EditVillagerRoom});
|
||||
this.CM_EditVillager.Name = "CM_EditPlayer";
|
||||
this.CM_EditVillager.Size = new System.Drawing.Size(146, 48);
|
||||
//
|
||||
// B_EditFurniture
|
||||
//
|
||||
this.B_EditFurniture.Name = "B_EditFurniture";
|
||||
this.B_EditFurniture.Size = new System.Drawing.Size(180, 22);
|
||||
this.B_EditFurniture.Text = "Edit Furniture";
|
||||
this.B_EditFurniture.Click += new System.EventHandler(this.B_EditFurniture_Click);
|
||||
//
|
||||
// B_EditVillagerRoom
|
||||
//
|
||||
this.B_EditVillagerRoom.Name = "B_EditVillagerRoom";
|
||||
this.B_EditVillagerRoom.Size = new System.Drawing.Size(180, 22);
|
||||
this.B_EditVillagerRoom.Text = "Edit Room";
|
||||
this.B_EditVillagerRoom.Click += new System.EventHandler(this.B_EditVillagerRoom_Click);
|
||||
//
|
||||
// VillagerEditor
|
||||
//
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
|
||||
|
|
@ -251,7 +278,7 @@ private void InitializeComponent()
|
|||
this.Controls.Add(this.B_EditHouses);
|
||||
this.Controls.Add(this.B_EditVillagerFlags);
|
||||
this.Controls.Add(this.CHK_VillagerMovingOut);
|
||||
this.Controls.Add(this.B_EditFurniture);
|
||||
this.Controls.Add(this.B_EditVillager);
|
||||
this.Controls.Add(this.B_LoadVillager);
|
||||
this.Controls.Add(this.B_DumpVillager);
|
||||
this.Controls.Add(this.L_ExternalName);
|
||||
|
|
@ -273,6 +300,7 @@ private void InitializeComponent()
|
|||
((System.ComponentModel.ISupportInitialize)(this.NUD_Species)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.PB_Villager)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.NUD_Villager)).EndInit();
|
||||
this.CM_EditVillager.ResumeLayout(false);
|
||||
this.ResumeLayout(false);
|
||||
this.PerformLayout();
|
||||
|
||||
|
|
@ -282,7 +310,7 @@ private void InitializeComponent()
|
|||
|
||||
private System.Windows.Forms.Button B_EditVillagerFlags;
|
||||
private System.Windows.Forms.CheckBox CHK_VillagerMovingOut;
|
||||
private System.Windows.Forms.Button B_EditFurniture;
|
||||
private System.Windows.Forms.Button B_EditVillager;
|
||||
private System.Windows.Forms.Button B_LoadVillager;
|
||||
private System.Windows.Forms.Button B_DumpVillager;
|
||||
private System.Windows.Forms.Label L_ExternalName;
|
||||
|
|
@ -299,5 +327,8 @@ private void InitializeComponent()
|
|||
private System.Windows.Forms.Label L_VillagerID;
|
||||
private System.Windows.Forms.NumericUpDown NUD_Villager;
|
||||
private System.Windows.Forms.Button B_EditHouses;
|
||||
private System.Windows.Forms.ContextMenuStrip CM_EditVillager;
|
||||
private System.Windows.Forms.ToolStripMenuItem B_EditFurniture;
|
||||
private System.Windows.Forms.ToolStripMenuItem B_EditVillagerRoom;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -188,5 +188,16 @@ private void B_EditHouse_Click(object sender, EventArgs e)
|
|||
if (editor.ShowDialog() == DialogResult.OK)
|
||||
SAV.SetVillagerHouses(houses);
|
||||
}
|
||||
|
||||
private static void ShowContextMenuBelow(ToolStripDropDown c, Control n) => c.Show(n.PointToScreen(new System.Drawing.Point(0, n.Height)));
|
||||
private void B_EditVillager_Click(object sender, EventArgs e) => ShowContextMenuBelow(CM_EditVillager, B_EditVillager);
|
||||
|
||||
private void B_EditVillagerRoom_Click(object sender, EventArgs e)
|
||||
{
|
||||
var v = Villagers[VillagerIndex];
|
||||
using var editor = new SaveRoomFloorWallEditor(v.Room);
|
||||
if (editor.ShowDialog() == DialogResult.OK)
|
||||
v.Room = editor.Entity;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -117,4 +117,7 @@
|
|||
<resheader name="writer">
|
||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<metadata name="CM_EditVillager.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>17, 17</value>
|
||||
</metadata>
|
||||
</root>
|
||||
|
|
@ -416,7 +416,7 @@ private void B_EditBulletin_Click(object sender, EventArgs e)
|
|||
var boxed = SAV.Main.Bulletin;
|
||||
using var editor = new SingleObjectEditor<object>(boxed, PropertySort.NoSort);
|
||||
if (editor.ShowDialog() == DialogResult.OK)
|
||||
SAV.Main.Bulletin = (GSaveBulletinBoard)boxed;
|
||||
SAV.Main.Bulletin = boxed;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -70,6 +70,9 @@
|
|||
<Compile Update="Subforms\SingleObjectEditor.cs">
|
||||
<SubType>Form</SubType>
|
||||
</Compile>
|
||||
<Compile Update="Subforms\SingleItemEditor.cs">
|
||||
<SubType>Form</SubType>
|
||||
</Compile>
|
||||
<Compile Update="Subforms\PropertyEditor - Copy.Designer.cs">
|
||||
<DependentUpon>PropertyEditor.cs</DependentUpon>
|
||||
</Compile>
|
||||
|
|
@ -82,6 +85,9 @@
|
|||
<Compile Update="Subforms\SysBot\SysBotRAMEdit.cs">
|
||||
<SubType>Form</SubType>
|
||||
</Compile>
|
||||
<Compile Update="Subforms\Villager\SaveRoomFloorWallEditor.cs">
|
||||
<SubType>Form</SubType>
|
||||
</Compile>
|
||||
<Compile Update="Subforms\Villager\VillagerFlagEditor.cs">
|
||||
<SubType>Form</SubType>
|
||||
</Compile>
|
||||
|
|
|
|||
89
NHSE.WinForms/Subforms/SingleItemEditor.Designer.cs
generated
Normal file
89
NHSE.WinForms/Subforms/SingleItemEditor.Designer.cs
generated
Normal file
|
|
@ -0,0 +1,89 @@
|
|||
namespace NHSE.WinForms
|
||||
{
|
||||
partial class SingleItemEditor
|
||||
{
|
||||
/// <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.B_Save = new System.Windows.Forms.Button();
|
||||
this.B_Cancel = new System.Windows.Forms.Button();
|
||||
this.ItemEditor = new NHSE.WinForms.ItemEditor();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
// B_Save
|
||||
//
|
||||
this.B_Save.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.B_Save.Location = new System.Drawing.Point(92, 236);
|
||||
this.B_Save.Name = "B_Save";
|
||||
this.B_Save.Size = new System.Drawing.Size(75, 31);
|
||||
this.B_Save.TabIndex = 1;
|
||||
this.B_Save.Text = "Save";
|
||||
this.B_Save.UseVisualStyleBackColor = true;
|
||||
this.B_Save.Click += new System.EventHandler(this.B_Save_Click);
|
||||
//
|
||||
// B_Cancel
|
||||
//
|
||||
this.B_Cancel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.B_Cancel.Location = new System.Drawing.Point(11, 236);
|
||||
this.B_Cancel.Name = "B_Cancel";
|
||||
this.B_Cancel.Size = new System.Drawing.Size(75, 31);
|
||||
this.B_Cancel.TabIndex = 2;
|
||||
this.B_Cancel.Text = "Cancel";
|
||||
this.B_Cancel.UseVisualStyleBackColor = true;
|
||||
this.B_Cancel.Click += new System.EventHandler(this.B_Cancel_Click);
|
||||
//
|
||||
// itemEditor1
|
||||
//
|
||||
this.ItemEditor.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
|
||||
this.ItemEditor.Location = new System.Drawing.Point(12, 12);
|
||||
this.ItemEditor.Name = "ItemEditor";
|
||||
this.ItemEditor.Size = new System.Drawing.Size(155, 210);
|
||||
this.ItemEditor.TabIndex = 3;
|
||||
//
|
||||
// SingleItemEditor
|
||||
//
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||
this.ClientSize = new System.Drawing.Size(179, 279);
|
||||
this.Controls.Add(this.ItemEditor);
|
||||
this.Controls.Add(this.B_Cancel);
|
||||
this.Controls.Add(this.B_Save);
|
||||
this.Icon = global::NHSE.WinForms.Properties.Resources.icon;
|
||||
this.MaximizeBox = false;
|
||||
this.MinimizeBox = false;
|
||||
this.Name = "SingleItemEditor";
|
||||
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
|
||||
this.Text = "Item Editor";
|
||||
this.ResumeLayout(false);
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
private System.Windows.Forms.Button B_Save;
|
||||
private System.Windows.Forms.Button B_Cancel;
|
||||
private ItemEditor ItemEditor;
|
||||
}
|
||||
}
|
||||
32
NHSE.WinForms/Subforms/SingleItemEditor.cs
Normal file
32
NHSE.WinForms/Subforms/SingleItemEditor.cs
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
using System;
|
||||
using System.Windows.Forms;
|
||||
using NHSE.Core;
|
||||
|
||||
namespace NHSE.WinForms
|
||||
{
|
||||
public partial class SingleItemEditor : Form
|
||||
{
|
||||
public Item Item { get; }
|
||||
|
||||
public SingleItemEditor(Item item)
|
||||
{
|
||||
InitializeComponent();
|
||||
this.TranslateInterface(GameInfo.CurrentLanguage);
|
||||
|
||||
// disassociate from original reference
|
||||
Item = item.ToBytesClass().ToClass<Item>();
|
||||
|
||||
ItemEditor.Initialize(GameInfo.Strings.ItemDataSource);
|
||||
ItemEditor.LoadItem(Item);
|
||||
}
|
||||
|
||||
private void B_Cancel_Click(object sender, EventArgs e) => Close();
|
||||
|
||||
private void B_Save_Click(object sender, EventArgs e)
|
||||
{
|
||||
ItemEditor.SetItem(Item);
|
||||
DialogResult = DialogResult.OK;
|
||||
Close();
|
||||
}
|
||||
}
|
||||
}
|
||||
120
NHSE.WinForms/Subforms/SingleItemEditor.resx
Normal file
120
NHSE.WinForms/Subforms/SingleItemEditor.resx
Normal file
|
|
@ -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>
|
||||
335
NHSE.WinForms/Subforms/Villager/SaveRoomFloorWallEditor.Designer.cs
generated
Normal file
335
NHSE.WinForms/Subforms/Villager/SaveRoomFloorWallEditor.Designer.cs
generated
Normal file
|
|
@ -0,0 +1,335 @@
|
|||
namespace NHSE.WinForms
|
||||
{
|
||||
partial class SaveRoomFloorWallEditor
|
||||
{
|
||||
/// <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.B_Cancel = new System.Windows.Forms.Button();
|
||||
this.B_Save = new System.Windows.Forms.Button();
|
||||
this.B_AccentWall = new System.Windows.Forms.Button();
|
||||
this.B_Wall = new System.Windows.Forms.Button();
|
||||
this.B_Floor = new System.Windows.Forms.Button();
|
||||
this.L_AccentDesign = new System.Windows.Forms.Label();
|
||||
this.NUD_DesignAccent = new System.Windows.Forms.NumericUpDown();
|
||||
this.NUD_DirAccent = new System.Windows.Forms.NumericUpDown();
|
||||
this.L_AccentDirection = new System.Windows.Forms.Label();
|
||||
this.NUD_InfoBit = new System.Windows.Forms.NumericUpDown();
|
||||
this.NUD_DesignWall = new System.Windows.Forms.NumericUpDown();
|
||||
this.L_InfoBit = new System.Windows.Forms.Label();
|
||||
this.L_WallDesign = new System.Windows.Forms.Label();
|
||||
this.L_FloorDirection = new System.Windows.Forms.Label();
|
||||
this.L_FloorDesign = new System.Windows.Forms.Label();
|
||||
this.NUD_DirFloor = new System.Windows.Forms.NumericUpDown();
|
||||
this.NUD_DesignFloor = new System.Windows.Forms.NumericUpDown();
|
||||
((System.ComponentModel.ISupportInitialize)(this.NUD_DesignAccent)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.NUD_DirAccent)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.NUD_InfoBit)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.NUD_DesignWall)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.NUD_DirFloor)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.NUD_DesignFloor)).BeginInit();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
// B_Cancel
|
||||
//
|
||||
this.B_Cancel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.B_Cancel.Location = new System.Drawing.Point(95, 159);
|
||||
this.B_Cancel.Name = "B_Cancel";
|
||||
this.B_Cancel.Size = new System.Drawing.Size(72, 23);
|
||||
this.B_Cancel.TabIndex = 7;
|
||||
this.B_Cancel.Text = "Cancel";
|
||||
this.B_Cancel.UseVisualStyleBackColor = true;
|
||||
this.B_Cancel.Click += new System.EventHandler(this.B_Cancel_Click);
|
||||
//
|
||||
// B_Save
|
||||
//
|
||||
this.B_Save.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.B_Save.Location = new System.Drawing.Point(173, 159);
|
||||
this.B_Save.Name = "B_Save";
|
||||
this.B_Save.Size = new System.Drawing.Size(72, 23);
|
||||
this.B_Save.TabIndex = 6;
|
||||
this.B_Save.Text = "Save";
|
||||
this.B_Save.UseVisualStyleBackColor = true;
|
||||
this.B_Save.Click += new System.EventHandler(this.B_Save_Click);
|
||||
//
|
||||
// B_AccentWall
|
||||
//
|
||||
this.B_AccentWall.Location = new System.Drawing.Point(12, 12);
|
||||
this.B_AccentWall.Name = "B_AccentWall";
|
||||
this.B_AccentWall.Size = new System.Drawing.Size(100, 40);
|
||||
this.B_AccentWall.TabIndex = 8;
|
||||
this.B_AccentWall.Text = "Accent Wall";
|
||||
this.B_AccentWall.UseVisualStyleBackColor = true;
|
||||
this.B_AccentWall.Click += new System.EventHandler(this.B_AccentWall_Click);
|
||||
//
|
||||
// B_Wall
|
||||
//
|
||||
this.B_Wall.Location = new System.Drawing.Point(12, 58);
|
||||
this.B_Wall.Name = "B_Wall";
|
||||
this.B_Wall.Size = new System.Drawing.Size(100, 40);
|
||||
this.B_Wall.TabIndex = 9;
|
||||
this.B_Wall.Text = "Wall";
|
||||
this.B_Wall.UseVisualStyleBackColor = true;
|
||||
this.B_Wall.Click += new System.EventHandler(this.B_Wall_Click);
|
||||
//
|
||||
// B_Floor
|
||||
//
|
||||
this.B_Floor.Location = new System.Drawing.Point(12, 104);
|
||||
this.B_Floor.Name = "B_Floor";
|
||||
this.B_Floor.Size = new System.Drawing.Size(100, 40);
|
||||
this.B_Floor.TabIndex = 10;
|
||||
this.B_Floor.Text = "Floor";
|
||||
this.B_Floor.UseVisualStyleBackColor = true;
|
||||
this.B_Floor.Click += new System.EventHandler(this.B_Floor_Click);
|
||||
//
|
||||
// L_AccentDesign
|
||||
//
|
||||
this.L_AccentDesign.AutoSize = true;
|
||||
this.L_AccentDesign.Location = new System.Drawing.Point(122, 16);
|
||||
this.L_AccentDesign.Name = "L_AccentDesign";
|
||||
this.L_AccentDesign.Size = new System.Drawing.Size(51, 13);
|
||||
this.L_AccentDesign.TabIndex = 11;
|
||||
this.L_AccentDesign.Text = "DesignID";
|
||||
this.L_AccentDesign.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
|
||||
//
|
||||
// NUD_DesignAccent
|
||||
//
|
||||
this.NUD_DesignAccent.Font = new System.Drawing.Font("Courier New", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.NUD_DesignAccent.Location = new System.Drawing.Point(125, 32);
|
||||
this.NUD_DesignAccent.Maximum = new decimal(new int[] {
|
||||
65535,
|
||||
0,
|
||||
0,
|
||||
0});
|
||||
this.NUD_DesignAccent.Name = "NUD_DesignAccent";
|
||||
this.NUD_DesignAccent.Size = new System.Drawing.Size(55, 20);
|
||||
this.NUD_DesignAccent.TabIndex = 12;
|
||||
this.NUD_DesignAccent.Value = new decimal(new int[] {
|
||||
65535,
|
||||
0,
|
||||
0,
|
||||
0});
|
||||
//
|
||||
// NUD_DirAccent
|
||||
//
|
||||
this.NUD_DirAccent.Font = new System.Drawing.Font("Courier New", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.NUD_DirAccent.Location = new System.Drawing.Point(203, 32);
|
||||
this.NUD_DirAccent.Maximum = new decimal(new int[] {
|
||||
255,
|
||||
0,
|
||||
0,
|
||||
0});
|
||||
this.NUD_DirAccent.Name = "NUD_DirAccent";
|
||||
this.NUD_DirAccent.Size = new System.Drawing.Size(41, 20);
|
||||
this.NUD_DirAccent.TabIndex = 13;
|
||||
this.NUD_DirAccent.Value = new decimal(new int[] {
|
||||
255,
|
||||
0,
|
||||
0,
|
||||
0});
|
||||
//
|
||||
// L_AccentDirection
|
||||
//
|
||||
this.L_AccentDirection.AutoSize = true;
|
||||
this.L_AccentDirection.Location = new System.Drawing.Point(200, 17);
|
||||
this.L_AccentDirection.Name = "L_AccentDirection";
|
||||
this.L_AccentDirection.Size = new System.Drawing.Size(49, 13);
|
||||
this.L_AccentDirection.TabIndex = 14;
|
||||
this.L_AccentDirection.Text = "Direction";
|
||||
this.L_AccentDirection.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
|
||||
//
|
||||
// NUD_InfoBit
|
||||
//
|
||||
this.NUD_InfoBit.Font = new System.Drawing.Font("Courier New", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.NUD_InfoBit.Location = new System.Drawing.Point(203, 78);
|
||||
this.NUD_InfoBit.Maximum = new decimal(new int[] {
|
||||
255,
|
||||
0,
|
||||
0,
|
||||
0});
|
||||
this.NUD_InfoBit.Name = "NUD_InfoBit";
|
||||
this.NUD_InfoBit.Size = new System.Drawing.Size(41, 20);
|
||||
this.NUD_InfoBit.TabIndex = 16;
|
||||
this.NUD_InfoBit.Value = new decimal(new int[] {
|
||||
255,
|
||||
0,
|
||||
0,
|
||||
0});
|
||||
//
|
||||
// NUD_DesignWall
|
||||
//
|
||||
this.NUD_DesignWall.Font = new System.Drawing.Font("Courier New", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.NUD_DesignWall.Location = new System.Drawing.Point(125, 78);
|
||||
this.NUD_DesignWall.Maximum = new decimal(new int[] {
|
||||
65535,
|
||||
0,
|
||||
0,
|
||||
0});
|
||||
this.NUD_DesignWall.Name = "NUD_DesignWall";
|
||||
this.NUD_DesignWall.Size = new System.Drawing.Size(55, 20);
|
||||
this.NUD_DesignWall.TabIndex = 15;
|
||||
this.NUD_DesignWall.Value = new decimal(new int[] {
|
||||
65535,
|
||||
0,
|
||||
0,
|
||||
0});
|
||||
//
|
||||
// L_InfoBit
|
||||
//
|
||||
this.L_InfoBit.AutoSize = true;
|
||||
this.L_InfoBit.Location = new System.Drawing.Point(200, 63);
|
||||
this.L_InfoBit.Name = "L_InfoBit";
|
||||
this.L_InfoBit.Size = new System.Drawing.Size(37, 13);
|
||||
this.L_InfoBit.TabIndex = 18;
|
||||
this.L_InfoBit.Text = "InfoBit";
|
||||
this.L_InfoBit.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
|
||||
//
|
||||
// L_WallDesign
|
||||
//
|
||||
this.L_WallDesign.AutoSize = true;
|
||||
this.L_WallDesign.Location = new System.Drawing.Point(122, 62);
|
||||
this.L_WallDesign.Name = "L_WallDesign";
|
||||
this.L_WallDesign.Size = new System.Drawing.Size(51, 13);
|
||||
this.L_WallDesign.TabIndex = 17;
|
||||
this.L_WallDesign.Text = "DesignID";
|
||||
this.L_WallDesign.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
|
||||
//
|
||||
// L_FloorDirection
|
||||
//
|
||||
this.L_FloorDirection.AutoSize = true;
|
||||
this.L_FloorDirection.Location = new System.Drawing.Point(200, 109);
|
||||
this.L_FloorDirection.Name = "L_FloorDirection";
|
||||
this.L_FloorDirection.Size = new System.Drawing.Size(49, 13);
|
||||
this.L_FloorDirection.TabIndex = 22;
|
||||
this.L_FloorDirection.Text = "Direction";
|
||||
this.L_FloorDirection.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
|
||||
//
|
||||
// L_FloorDesign
|
||||
//
|
||||
this.L_FloorDesign.AutoSize = true;
|
||||
this.L_FloorDesign.Location = new System.Drawing.Point(122, 108);
|
||||
this.L_FloorDesign.Name = "L_FloorDesign";
|
||||
this.L_FloorDesign.Size = new System.Drawing.Size(51, 13);
|
||||
this.L_FloorDesign.TabIndex = 21;
|
||||
this.L_FloorDesign.Text = "DesignID";
|
||||
this.L_FloorDesign.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
|
||||
//
|
||||
// NUD_DirFloor
|
||||
//
|
||||
this.NUD_DirFloor.Font = new System.Drawing.Font("Courier New", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.NUD_DirFloor.Location = new System.Drawing.Point(203, 124);
|
||||
this.NUD_DirFloor.Maximum = new decimal(new int[] {
|
||||
255,
|
||||
0,
|
||||
0,
|
||||
0});
|
||||
this.NUD_DirFloor.Name = "NUD_DirFloor";
|
||||
this.NUD_DirFloor.Size = new System.Drawing.Size(41, 20);
|
||||
this.NUD_DirFloor.TabIndex = 20;
|
||||
this.NUD_DirFloor.Value = new decimal(new int[] {
|
||||
255,
|
||||
0,
|
||||
0,
|
||||
0});
|
||||
//
|
||||
// NUD_DesignFloor
|
||||
//
|
||||
this.NUD_DesignFloor.Font = new System.Drawing.Font("Courier New", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.NUD_DesignFloor.Location = new System.Drawing.Point(125, 124);
|
||||
this.NUD_DesignFloor.Maximum = new decimal(new int[] {
|
||||
65535,
|
||||
0,
|
||||
0,
|
||||
0});
|
||||
this.NUD_DesignFloor.Name = "NUD_DesignFloor";
|
||||
this.NUD_DesignFloor.Size = new System.Drawing.Size(55, 20);
|
||||
this.NUD_DesignFloor.TabIndex = 19;
|
||||
this.NUD_DesignFloor.Value = new decimal(new int[] {
|
||||
65535,
|
||||
0,
|
||||
0,
|
||||
0});
|
||||
//
|
||||
// SaveRoomFloorWallEditor
|
||||
//
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||
this.ClientSize = new System.Drawing.Size(257, 194);
|
||||
this.Controls.Add(this.L_FloorDirection);
|
||||
this.Controls.Add(this.L_FloorDesign);
|
||||
this.Controls.Add(this.NUD_DirFloor);
|
||||
this.Controls.Add(this.NUD_DesignFloor);
|
||||
this.Controls.Add(this.L_InfoBit);
|
||||
this.Controls.Add(this.L_WallDesign);
|
||||
this.Controls.Add(this.NUD_InfoBit);
|
||||
this.Controls.Add(this.NUD_DesignWall);
|
||||
this.Controls.Add(this.L_AccentDirection);
|
||||
this.Controls.Add(this.NUD_DirAccent);
|
||||
this.Controls.Add(this.NUD_DesignAccent);
|
||||
this.Controls.Add(this.L_AccentDesign);
|
||||
this.Controls.Add(this.B_Floor);
|
||||
this.Controls.Add(this.B_Wall);
|
||||
this.Controls.Add(this.B_AccentWall);
|
||||
this.Controls.Add(this.B_Cancel);
|
||||
this.Controls.Add(this.B_Save);
|
||||
this.Icon = global::NHSE.WinForms.Properties.Resources.icon;
|
||||
this.MaximizeBox = false;
|
||||
this.MinimizeBox = false;
|
||||
this.Name = "SaveRoomFloorWallEditor";
|
||||
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
|
||||
this.Text = "Room Editor";
|
||||
((System.ComponentModel.ISupportInitialize)(this.NUD_DesignAccent)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.NUD_DirAccent)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.NUD_InfoBit)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.NUD_DesignWall)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.NUD_DirFloor)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.NUD_DesignFloor)).EndInit();
|
||||
this.ResumeLayout(false);
|
||||
this.PerformLayout();
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
private System.Windows.Forms.Button B_Cancel;
|
||||
private System.Windows.Forms.Button B_Save;
|
||||
private System.Windows.Forms.Button B_AccentWall;
|
||||
private System.Windows.Forms.Button B_Wall;
|
||||
private System.Windows.Forms.Button B_Floor;
|
||||
private System.Windows.Forms.Label L_AccentDesign;
|
||||
private System.Windows.Forms.NumericUpDown NUD_DesignAccent;
|
||||
private System.Windows.Forms.NumericUpDown NUD_DirAccent;
|
||||
private System.Windows.Forms.Label L_AccentDirection;
|
||||
private System.Windows.Forms.NumericUpDown NUD_InfoBit;
|
||||
private System.Windows.Forms.NumericUpDown NUD_DesignWall;
|
||||
private System.Windows.Forms.Label L_InfoBit;
|
||||
private System.Windows.Forms.Label L_WallDesign;
|
||||
private System.Windows.Forms.Label L_FloorDirection;
|
||||
private System.Windows.Forms.Label L_FloorDesign;
|
||||
private System.Windows.Forms.NumericUpDown NUD_DirFloor;
|
||||
private System.Windows.Forms.NumericUpDown NUD_DesignFloor;
|
||||
}
|
||||
}
|
||||
81
NHSE.WinForms/Subforms/Villager/SaveRoomFloorWallEditor.cs
Normal file
81
NHSE.WinForms/Subforms/Villager/SaveRoomFloorWallEditor.cs
Normal file
|
|
@ -0,0 +1,81 @@
|
|||
using System;
|
||||
using System.Windows.Forms;
|
||||
using NHSE.Core;
|
||||
|
||||
namespace NHSE.WinForms
|
||||
{
|
||||
public partial class SaveRoomFloorWallEditor : Form
|
||||
{
|
||||
public GSaveRoomFloorWall Entity { get; private set; }
|
||||
|
||||
public SaveRoomFloorWallEditor(GSaveRoomFloorWall v)
|
||||
{
|
||||
Entity = v;
|
||||
InitializeComponent();
|
||||
this.TranslateInterface(GameInfo.CurrentLanguage);
|
||||
DialogResult = DialogResult.Cancel;
|
||||
|
||||
var ent = Entity;
|
||||
NUD_DesignAccent.Value = ent.AccentWallMyDesignID;
|
||||
NUD_DesignWall.Value = ent.WallMyDesignID;
|
||||
NUD_DesignFloor.Value = ent.FloorMyDesignID;
|
||||
|
||||
NUD_DirAccent.Value = ent.AccentWallDirection;
|
||||
NUD_InfoBit.Value = ent.InfoBit;
|
||||
NUD_DirFloor.Value = ent.FloorDirection;
|
||||
}
|
||||
|
||||
private void B_Cancel_Click(object sender, EventArgs e) => Close();
|
||||
|
||||
private void B_Save_Click(object sender, EventArgs e)
|
||||
{
|
||||
var ent = Entity;
|
||||
|
||||
ent.AccentWallMyDesignID = (ushort)NUD_DesignAccent.Value;
|
||||
ent.WallMyDesignID = (ushort)NUD_DesignWall.Value;
|
||||
ent.FloorMyDesignID = (ushort)NUD_DesignFloor.Value;
|
||||
|
||||
ent.AccentWallDirection = (byte)NUD_DirAccent.Value;
|
||||
ent.InfoBit = (byte)NUD_InfoBit.Value;
|
||||
ent.FloorDirection = (byte)NUD_DirFloor.Value;
|
||||
|
||||
Entity = ent;
|
||||
|
||||
DialogResult = DialogResult.OK;
|
||||
Close();
|
||||
}
|
||||
|
||||
private void B_AccentWall_Click(object sender, EventArgs e)
|
||||
{
|
||||
var ent = Entity;
|
||||
var accent = ent.AccentWallItem.ToBytes().ToClass<Item>();
|
||||
using var editor = new SingleItemEditor(accent);
|
||||
editor.ShowDialog();
|
||||
if (editor.DialogResult == DialogResult.OK)
|
||||
ent.AccentWallItem = editor.Item.ToBytesClass().ToStructure<GSaveItemName>();
|
||||
Entity = ent;
|
||||
}
|
||||
|
||||
private void B_Wall_Click(object sender, EventArgs e)
|
||||
{
|
||||
var ent = Entity;
|
||||
var accent = ent.WallItem.ToBytes().ToClass<Item>();
|
||||
using var editor = new SingleItemEditor(accent);
|
||||
editor.ShowDialog();
|
||||
if (editor.DialogResult == DialogResult.OK)
|
||||
ent.WallItem = editor.Item.ToBytesClass().ToStructure<GSaveItemName>();
|
||||
Entity = ent;
|
||||
}
|
||||
|
||||
private void B_Floor_Click(object sender, EventArgs e)
|
||||
{
|
||||
var ent = Entity;
|
||||
var accent = ent.FloorItem.ToBytes().ToClass<Item>();
|
||||
using var editor = new SingleItemEditor(accent);
|
||||
editor.ShowDialog();
|
||||
if (editor.DialogResult == DialogResult.OK)
|
||||
ent.FloorItem = editor.Item.ToBytesClass().ToStructure<GSaveItemName>();
|
||||
Entity = ent;
|
||||
}
|
||||
}
|
||||
}
|
||||
120
NHSE.WinForms/Subforms/Villager/SaveRoomFloorWallEditor.resx
Normal file
120
NHSE.WinForms/Subforms/Villager/SaveRoomFloorWallEditor.resx
Normal file
|
|
@ -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
Block a user