feat: base function to switch language
This commit is contained in:
576
SpineViewer/Forms/SpineViewerForm.Designer.cs
generated
576
SpineViewer/Forms/SpineViewerForm.Designer.cs
generated
@@ -30,6 +30,19 @@
|
|||||||
{
|
{
|
||||||
components = new System.ComponentModel.Container();
|
components = new System.ComponentModel.Container();
|
||||||
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(SpineViewerForm));
|
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(SpineViewerForm));
|
||||||
|
splitContainer_MainForm = new SplitContainer();
|
||||||
|
splitContainer_Functional = new SplitContainer();
|
||||||
|
splitContainer_Information = new SplitContainer();
|
||||||
|
groupBox_SkelList = new GroupBox();
|
||||||
|
spineListView = new Controls.SpineListView();
|
||||||
|
spineViewPropertyGrid = new Controls.SpineViewPropertyGrid();
|
||||||
|
splitContainer_Config = new SplitContainer();
|
||||||
|
groupBox_PreviewConfig = new GroupBox();
|
||||||
|
propertyGrid_Previewer = new PropertyGrid();
|
||||||
|
groupBox_SkelConfig = new GroupBox();
|
||||||
|
groupBox_Preview = new GroupBox();
|
||||||
|
spinePreviewPanel = new Controls.SpinePreviewPanel();
|
||||||
|
rtbLog = new RichTextBox();
|
||||||
menuStrip = new MenuStrip();
|
menuStrip = new MenuStrip();
|
||||||
toolStripMenuItem_File = new ToolStripMenuItem();
|
toolStripMenuItem_File = new ToolStripMenuItem();
|
||||||
toolStripMenuItem_Open = new ToolStripMenuItem();
|
toolStripMenuItem_Open = new ToolStripMenuItem();
|
||||||
@@ -62,22 +75,11 @@
|
|||||||
toolStripMenuItem_Debug = new ToolStripMenuItem();
|
toolStripMenuItem_Debug = new ToolStripMenuItem();
|
||||||
toolStripMenuItem_Experiment = new ToolStripMenuItem();
|
toolStripMenuItem_Experiment = new ToolStripMenuItem();
|
||||||
toolStripMenuItem_DesktopProjection = new ToolStripMenuItem();
|
toolStripMenuItem_DesktopProjection = new ToolStripMenuItem();
|
||||||
rtbLog = new RichTextBox();
|
ToolStripMenuItem_Language = new ToolStripMenuItem();
|
||||||
splitContainer_MainForm = new SplitContainer();
|
ToolStripMenuItem_English = new ToolStripMenuItem();
|
||||||
splitContainer_Functional = new SplitContainer();
|
ToolStripMenuItem_Chinese = new ToolStripMenuItem();
|
||||||
splitContainer_Information = new SplitContainer();
|
|
||||||
groupBox_SkelList = new GroupBox();
|
|
||||||
spineListView = new SpineViewer.Controls.SpineListView();
|
|
||||||
spineViewPropertyGrid = new SpineViewer.Controls.SpineViewPropertyGrid();
|
|
||||||
splitContainer_Config = new SplitContainer();
|
|
||||||
groupBox_PreviewConfig = new GroupBox();
|
|
||||||
propertyGrid_Previewer = new PropertyGrid();
|
|
||||||
groupBox_SkelConfig = new GroupBox();
|
|
||||||
groupBox_Preview = new GroupBox();
|
|
||||||
spinePreviewPanel = new SpineViewer.Controls.SpinePreviewPanel();
|
|
||||||
panel_MainForm = new Panel();
|
panel_MainForm = new Panel();
|
||||||
toolTip = new ToolTip(components);
|
toolTip = new ToolTip(components);
|
||||||
menuStrip.SuspendLayout();
|
|
||||||
((System.ComponentModel.ISupportInitialize)splitContainer_MainForm).BeginInit();
|
((System.ComponentModel.ISupportInitialize)splitContainer_MainForm).BeginInit();
|
||||||
splitContainer_MainForm.Panel1.SuspendLayout();
|
splitContainer_MainForm.Panel1.SuspendLayout();
|
||||||
splitContainer_MainForm.Panel2.SuspendLayout();
|
splitContainer_MainForm.Panel2.SuspendLayout();
|
||||||
@@ -98,251 +100,16 @@
|
|||||||
groupBox_PreviewConfig.SuspendLayout();
|
groupBox_PreviewConfig.SuspendLayout();
|
||||||
groupBox_SkelConfig.SuspendLayout();
|
groupBox_SkelConfig.SuspendLayout();
|
||||||
groupBox_Preview.SuspendLayout();
|
groupBox_Preview.SuspendLayout();
|
||||||
|
menuStrip.SuspendLayout();
|
||||||
panel_MainForm.SuspendLayout();
|
panel_MainForm.SuspendLayout();
|
||||||
SuspendLayout();
|
SuspendLayout();
|
||||||
//
|
//
|
||||||
// menuStrip
|
|
||||||
//
|
|
||||||
menuStrip.BackColor = SystemColors.Control;
|
|
||||||
menuStrip.ImageScalingSize = new Size(24, 24);
|
|
||||||
menuStrip.Items.AddRange(new ToolStripItem[] { toolStripMenuItem_File, toolStripMenuItem_Tool, toolStripMenuItem_Download, toolStripMenuItem_Help, toolStripMenuItem_Experiment });
|
|
||||||
menuStrip.Location = new Point(0, 0);
|
|
||||||
menuStrip.Name = "menuStrip";
|
|
||||||
menuStrip.Size = new Size(1778, 36);
|
|
||||||
menuStrip.TabIndex = 0;
|
|
||||||
menuStrip.Text = "菜单";
|
|
||||||
//
|
|
||||||
// toolStripMenuItem_File
|
|
||||||
//
|
|
||||||
toolStripMenuItem_File.DropDownItems.AddRange(new ToolStripItem[] { toolStripMenuItem_Open, toolStripMenuItem_BatchOpen, toolStripSeparator1, toolStripMenuItem_Export, toolStripSeparator2, toolStripMenuItem_Exit });
|
|
||||||
toolStripMenuItem_File.Name = "toolStripMenuItem_File";
|
|
||||||
toolStripMenuItem_File.Size = new Size(84, 30);
|
|
||||||
toolStripMenuItem_File.Text = "文件(&F)";
|
|
||||||
//
|
|
||||||
// toolStripMenuItem_Open
|
|
||||||
//
|
|
||||||
toolStripMenuItem_Open.Name = "toolStripMenuItem_Open";
|
|
||||||
toolStripMenuItem_Open.ShortcutKeys = Keys.Control | Keys.O;
|
|
||||||
toolStripMenuItem_Open.Size = new Size(254, 34);
|
|
||||||
toolStripMenuItem_Open.Text = "打开(&O)...";
|
|
||||||
toolStripMenuItem_Open.Click += toolStripMenuItem_Open_Click;
|
|
||||||
//
|
|
||||||
// toolStripMenuItem_BatchOpen
|
|
||||||
//
|
|
||||||
toolStripMenuItem_BatchOpen.Name = "toolStripMenuItem_BatchOpen";
|
|
||||||
toolStripMenuItem_BatchOpen.Size = new Size(254, 34);
|
|
||||||
toolStripMenuItem_BatchOpen.Text = "批量打开(&B)...";
|
|
||||||
toolStripMenuItem_BatchOpen.Click += toolStripMenuItem_BatchOpen_Click;
|
|
||||||
//
|
|
||||||
// toolStripSeparator1
|
|
||||||
//
|
|
||||||
toolStripSeparator1.Name = "toolStripSeparator1";
|
|
||||||
toolStripSeparator1.Size = new Size(251, 6);
|
|
||||||
//
|
|
||||||
// toolStripMenuItem_Export
|
|
||||||
//
|
|
||||||
toolStripMenuItem_Export.DropDownItems.AddRange(new ToolStripItem[] { toolStripMenuItem_ExportFrame, toolStripMenuItem_ExportFrameSequence, toolStripSeparator4, toolStripMenuItem_ExportGif, toolStripMenuItem_ExportWebp, toolStripMenuItem_ExportAvif, toolStripSeparator5, toolStripMenuItem_ExportMp4, toolStripMenuItem_ExportWebm, toolStripMenuItem_ExportMkv, toolStripMenuItem_ExportMov, toolStripSeparator6, toolStripMenuItem_ExportCustom });
|
|
||||||
toolStripMenuItem_Export.Name = "toolStripMenuItem_Export";
|
|
||||||
toolStripMenuItem_Export.Size = new Size(254, 34);
|
|
||||||
toolStripMenuItem_Export.Text = "导出(&E)";
|
|
||||||
//
|
|
||||||
// toolStripMenuItem_ExportFrame
|
|
||||||
//
|
|
||||||
toolStripMenuItem_ExportFrame.Name = "toolStripMenuItem_ExportFrame";
|
|
||||||
toolStripMenuItem_ExportFrame.Size = new Size(288, 34);
|
|
||||||
toolStripMenuItem_ExportFrame.Text = "单帧画面...";
|
|
||||||
toolStripMenuItem_ExportFrame.Click += toolStripMenuItem_ExportFrame_Click;
|
|
||||||
//
|
|
||||||
// toolStripMenuItem_ExportFrameSequence
|
|
||||||
//
|
|
||||||
toolStripMenuItem_ExportFrameSequence.Name = "toolStripMenuItem_ExportFrameSequence";
|
|
||||||
toolStripMenuItem_ExportFrameSequence.Size = new Size(288, 34);
|
|
||||||
toolStripMenuItem_ExportFrameSequence.Text = "帧序列...";
|
|
||||||
toolStripMenuItem_ExportFrameSequence.Click += toolStripMenuItem_ExportFrameSequence_Click;
|
|
||||||
//
|
|
||||||
// toolStripSeparator4
|
|
||||||
//
|
|
||||||
toolStripSeparator4.Name = "toolStripSeparator4";
|
|
||||||
toolStripSeparator4.Size = new Size(285, 6);
|
|
||||||
//
|
|
||||||
// toolStripMenuItem_ExportGif
|
|
||||||
//
|
|
||||||
toolStripMenuItem_ExportGif.Name = "toolStripMenuItem_ExportGif";
|
|
||||||
toolStripMenuItem_ExportGif.Size = new Size(288, 34);
|
|
||||||
toolStripMenuItem_ExportGif.Text = "GIF...";
|
|
||||||
toolStripMenuItem_ExportGif.Click += toolStripMenuItem_ExportGif_Click;
|
|
||||||
//
|
|
||||||
// toolStripMenuItem_ExportWebp
|
|
||||||
//
|
|
||||||
toolStripMenuItem_ExportWebp.Name = "toolStripMenuItem_ExportWebp";
|
|
||||||
toolStripMenuItem_ExportWebp.Size = new Size(288, 34);
|
|
||||||
toolStripMenuItem_ExportWebp.Text = "WebP...";
|
|
||||||
toolStripMenuItem_ExportWebp.Click += toolStripMenuItem_ExportWebp_Click;
|
|
||||||
//
|
|
||||||
// toolStripMenuItem_ExportAvif
|
|
||||||
//
|
|
||||||
toolStripMenuItem_ExportAvif.Name = "toolStripMenuItem_ExportAvif";
|
|
||||||
toolStripMenuItem_ExportAvif.Size = new Size(288, 34);
|
|
||||||
toolStripMenuItem_ExportAvif.Text = "AVIF...";
|
|
||||||
toolStripMenuItem_ExportAvif.Click += toolStripMenuItem_ExportAvif_Click;
|
|
||||||
//
|
|
||||||
// toolStripSeparator5
|
|
||||||
//
|
|
||||||
toolStripSeparator5.Name = "toolStripSeparator5";
|
|
||||||
toolStripSeparator5.Size = new Size(285, 6);
|
|
||||||
//
|
|
||||||
// toolStripMenuItem_ExportMp4
|
|
||||||
//
|
|
||||||
toolStripMenuItem_ExportMp4.Name = "toolStripMenuItem_ExportMp4";
|
|
||||||
toolStripMenuItem_ExportMp4.Size = new Size(288, 34);
|
|
||||||
toolStripMenuItem_ExportMp4.Text = "MP4...";
|
|
||||||
toolStripMenuItem_ExportMp4.Click += toolStripMenuItem_ExportMp4_Click;
|
|
||||||
//
|
|
||||||
// toolStripMenuItem_ExportWebm
|
|
||||||
//
|
|
||||||
toolStripMenuItem_ExportWebm.Name = "toolStripMenuItem_ExportWebm";
|
|
||||||
toolStripMenuItem_ExportWebm.Size = new Size(288, 34);
|
|
||||||
toolStripMenuItem_ExportWebm.Text = "WebM...";
|
|
||||||
toolStripMenuItem_ExportWebm.Click += toolStripMenuItem_ExportWebm_Click;
|
|
||||||
//
|
|
||||||
// toolStripMenuItem_ExportMkv
|
|
||||||
//
|
|
||||||
toolStripMenuItem_ExportMkv.Name = "toolStripMenuItem_ExportMkv";
|
|
||||||
toolStripMenuItem_ExportMkv.Size = new Size(288, 34);
|
|
||||||
toolStripMenuItem_ExportMkv.Text = "MKV...";
|
|
||||||
toolStripMenuItem_ExportMkv.Click += toolStripMenuItem_ExportMkv_Click;
|
|
||||||
//
|
|
||||||
// toolStripMenuItem_ExportMov
|
|
||||||
//
|
|
||||||
toolStripMenuItem_ExportMov.Name = "toolStripMenuItem_ExportMov";
|
|
||||||
toolStripMenuItem_ExportMov.Size = new Size(288, 34);
|
|
||||||
toolStripMenuItem_ExportMov.Text = "MOV...";
|
|
||||||
toolStripMenuItem_ExportMov.Click += toolStripMenuItem_ExportMov_Click;
|
|
||||||
//
|
|
||||||
// toolStripSeparator6
|
|
||||||
//
|
|
||||||
toolStripSeparator6.Name = "toolStripSeparator6";
|
|
||||||
toolStripSeparator6.Size = new Size(285, 6);
|
|
||||||
//
|
|
||||||
// toolStripMenuItem_ExportCustom
|
|
||||||
//
|
|
||||||
toolStripMenuItem_ExportCustom.Name = "toolStripMenuItem_ExportCustom";
|
|
||||||
toolStripMenuItem_ExportCustom.Size = new Size(288, 34);
|
|
||||||
toolStripMenuItem_ExportCustom.Text = "FFmpeg 自定义导出...";
|
|
||||||
toolStripMenuItem_ExportCustom.Click += toolStripMenuItem_ExportCustom_Click;
|
|
||||||
//
|
|
||||||
// toolStripSeparator2
|
|
||||||
//
|
|
||||||
toolStripSeparator2.Name = "toolStripSeparator2";
|
|
||||||
toolStripSeparator2.Size = new Size(251, 6);
|
|
||||||
//
|
|
||||||
// toolStripMenuItem_Exit
|
|
||||||
//
|
|
||||||
toolStripMenuItem_Exit.Name = "toolStripMenuItem_Exit";
|
|
||||||
toolStripMenuItem_Exit.ShortcutKeys = Keys.Alt | Keys.F4;
|
|
||||||
toolStripMenuItem_Exit.Size = new Size(254, 34);
|
|
||||||
toolStripMenuItem_Exit.Text = "退出(&X)";
|
|
||||||
toolStripMenuItem_Exit.Click += toolStripMenuItem_Exit_Click;
|
|
||||||
//
|
|
||||||
// toolStripMenuItem_Tool
|
|
||||||
//
|
|
||||||
toolStripMenuItem_Tool.DropDownItems.AddRange(new ToolStripItem[] { toolStripMenuItem_ConvertFileFormat });
|
|
||||||
toolStripMenuItem_Tool.Name = "toolStripMenuItem_Tool";
|
|
||||||
toolStripMenuItem_Tool.Size = new Size(84, 30);
|
|
||||||
toolStripMenuItem_Tool.Text = "工具(&T)";
|
|
||||||
//
|
|
||||||
// toolStripMenuItem_ConvertFileFormat
|
|
||||||
//
|
|
||||||
toolStripMenuItem_ConvertFileFormat.Name = "toolStripMenuItem_ConvertFileFormat";
|
|
||||||
toolStripMenuItem_ConvertFileFormat.Size = new Size(254, 34);
|
|
||||||
toolStripMenuItem_ConvertFileFormat.Text = "转换文件格式(&C)...";
|
|
||||||
toolStripMenuItem_ConvertFileFormat.Click += toolStripMenuItem_ConvertFileFormat_Click;
|
|
||||||
//
|
|
||||||
// toolStripMenuItem_Download
|
|
||||||
//
|
|
||||||
toolStripMenuItem_Download.DropDownItems.AddRange(new ToolStripItem[] { toolStripMenuItem_ManageResource });
|
|
||||||
toolStripMenuItem_Download.Name = "toolStripMenuItem_Download";
|
|
||||||
toolStripMenuItem_Download.Size = new Size(88, 30);
|
|
||||||
toolStripMenuItem_Download.Text = "下载(&D)";
|
|
||||||
//
|
|
||||||
// toolStripMenuItem_ManageResource
|
|
||||||
//
|
|
||||||
toolStripMenuItem_ManageResource.Name = "toolStripMenuItem_ManageResource";
|
|
||||||
toolStripMenuItem_ManageResource.Size = new Size(260, 34);
|
|
||||||
toolStripMenuItem_ManageResource.Text = "管理下载资源(&M)...";
|
|
||||||
toolStripMenuItem_ManageResource.Click += toolStripMenuItem_ManageResource_Click;
|
|
||||||
//
|
|
||||||
// toolStripMenuItem_Help
|
|
||||||
//
|
|
||||||
toolStripMenuItem_Help.DropDownItems.AddRange(new ToolStripItem[] { toolStripMenuItem_Diagnostics, toolStripSeparator3, toolStripMenuItem_About, toolStripMenuItem_Debug });
|
|
||||||
toolStripMenuItem_Help.Name = "toolStripMenuItem_Help";
|
|
||||||
toolStripMenuItem_Help.Size = new Size(88, 30);
|
|
||||||
toolStripMenuItem_Help.Text = "帮助(&H)";
|
|
||||||
//
|
|
||||||
// toolStripMenuItem_Diagnostics
|
|
||||||
//
|
|
||||||
toolStripMenuItem_Diagnostics.Name = "toolStripMenuItem_Diagnostics";
|
|
||||||
toolStripMenuItem_Diagnostics.Size = new Size(270, 34);
|
|
||||||
toolStripMenuItem_Diagnostics.Text = "诊断信息(&D)";
|
|
||||||
toolStripMenuItem_Diagnostics.Click += toolStripMenuItem_Diagnostics_Click;
|
|
||||||
//
|
|
||||||
// toolStripSeparator3
|
|
||||||
//
|
|
||||||
toolStripSeparator3.Name = "toolStripSeparator3";
|
|
||||||
toolStripSeparator3.Size = new Size(267, 6);
|
|
||||||
//
|
|
||||||
// toolStripMenuItem_About
|
|
||||||
//
|
|
||||||
toolStripMenuItem_About.Name = "toolStripMenuItem_About";
|
|
||||||
toolStripMenuItem_About.Size = new Size(270, 34);
|
|
||||||
toolStripMenuItem_About.Text = "关于(&A)";
|
|
||||||
toolStripMenuItem_About.Click += toolStripMenuItem_About_Click;
|
|
||||||
//
|
|
||||||
// toolStripMenuItem_Debug
|
|
||||||
//
|
|
||||||
toolStripMenuItem_Debug.Name = "toolStripMenuItem_Debug";
|
|
||||||
toolStripMenuItem_Debug.Size = new Size(270, 34);
|
|
||||||
toolStripMenuItem_Debug.Text = "调试";
|
|
||||||
toolStripMenuItem_Debug.Visible = false;
|
|
||||||
toolStripMenuItem_Debug.Click += toolStripMenuItem_Debug_Click;
|
|
||||||
//
|
|
||||||
// toolStripMenuItem_Experiment
|
|
||||||
//
|
|
||||||
toolStripMenuItem_Experiment.DropDownItems.AddRange(new ToolStripItem[] { toolStripMenuItem_DesktopProjection });
|
|
||||||
toolStripMenuItem_Experiment.Name = "toolStripMenuItem_Experiment";
|
|
||||||
toolStripMenuItem_Experiment.Size = new Size(138, 30);
|
|
||||||
toolStripMenuItem_Experiment.Text = "实验性功能(&E)";
|
|
||||||
//
|
|
||||||
// toolStripMenuItem_DesktopProjection
|
|
||||||
//
|
|
||||||
toolStripMenuItem_DesktopProjection.Name = "toolStripMenuItem_DesktopProjection";
|
|
||||||
toolStripMenuItem_DesktopProjection.Size = new Size(182, 34);
|
|
||||||
toolStripMenuItem_DesktopProjection.Text = "桌面投影";
|
|
||||||
toolStripMenuItem_DesktopProjection.Click += toolStripMenuItem_DesktopProjection_Click;
|
|
||||||
//
|
|
||||||
// rtbLog
|
|
||||||
//
|
|
||||||
rtbLog.BackColor = SystemColors.Window;
|
|
||||||
rtbLog.BorderStyle = BorderStyle.None;
|
|
||||||
rtbLog.Dock = DockStyle.Fill;
|
|
||||||
rtbLog.Font = new Font("Consolas", 9F);
|
|
||||||
rtbLog.Location = new Point(0, 0);
|
|
||||||
rtbLog.Margin = new Padding(3, 2, 3, 2);
|
|
||||||
rtbLog.Name = "rtbLog";
|
|
||||||
rtbLog.ReadOnly = true;
|
|
||||||
rtbLog.Size = new Size(1758, 158);
|
|
||||||
rtbLog.TabIndex = 0;
|
|
||||||
rtbLog.Text = "";
|
|
||||||
rtbLog.WordWrap = false;
|
|
||||||
//
|
|
||||||
// splitContainer_MainForm
|
// splitContainer_MainForm
|
||||||
//
|
//
|
||||||
splitContainer_MainForm.Cursor = Cursors.SizeNS;
|
splitContainer_MainForm.Cursor = Cursors.SizeNS;
|
||||||
splitContainer_MainForm.Dock = DockStyle.Fill;
|
resources.ApplyResources(splitContainer_MainForm, "splitContainer_MainForm");
|
||||||
splitContainer_MainForm.FixedPanel = FixedPanel.Panel2;
|
splitContainer_MainForm.FixedPanel = FixedPanel.Panel2;
|
||||||
splitContainer_MainForm.Location = new Point(10, 5);
|
|
||||||
splitContainer_MainForm.Name = "splitContainer_MainForm";
|
splitContainer_MainForm.Name = "splitContainer_MainForm";
|
||||||
splitContainer_MainForm.Orientation = Orientation.Horizontal;
|
|
||||||
//
|
//
|
||||||
// splitContainer_MainForm.Panel1
|
// splitContainer_MainForm.Panel1
|
||||||
//
|
//
|
||||||
@@ -353,10 +120,6 @@
|
|||||||
//
|
//
|
||||||
splitContainer_MainForm.Panel2.Controls.Add(rtbLog);
|
splitContainer_MainForm.Panel2.Controls.Add(rtbLog);
|
||||||
splitContainer_MainForm.Panel2.Cursor = Cursors.Default;
|
splitContainer_MainForm.Panel2.Cursor = Cursors.Default;
|
||||||
splitContainer_MainForm.Size = new Size(1758, 1093);
|
|
||||||
splitContainer_MainForm.SplitterDistance = 927;
|
|
||||||
splitContainer_MainForm.SplitterWidth = 8;
|
|
||||||
splitContainer_MainForm.TabIndex = 3;
|
|
||||||
splitContainer_MainForm.TabStop = false;
|
splitContainer_MainForm.TabStop = false;
|
||||||
splitContainer_MainForm.SplitterMoved += splitContainer_SplitterMoved;
|
splitContainer_MainForm.SplitterMoved += splitContainer_SplitterMoved;
|
||||||
splitContainer_MainForm.MouseUp += splitContainer_MouseUp;
|
splitContainer_MainForm.MouseUp += splitContainer_MouseUp;
|
||||||
@@ -364,9 +127,8 @@
|
|||||||
// splitContainer_Functional
|
// splitContainer_Functional
|
||||||
//
|
//
|
||||||
splitContainer_Functional.Cursor = Cursors.SizeWE;
|
splitContainer_Functional.Cursor = Cursors.SizeWE;
|
||||||
splitContainer_Functional.Dock = DockStyle.Fill;
|
resources.ApplyResources(splitContainer_Functional, "splitContainer_Functional");
|
||||||
splitContainer_Functional.FixedPanel = FixedPanel.Panel1;
|
splitContainer_Functional.FixedPanel = FixedPanel.Panel1;
|
||||||
splitContainer_Functional.Location = new Point(0, 0);
|
|
||||||
splitContainer_Functional.Name = "splitContainer_Functional";
|
splitContainer_Functional.Name = "splitContainer_Functional";
|
||||||
//
|
//
|
||||||
// splitContainer_Functional.Panel1
|
// splitContainer_Functional.Panel1
|
||||||
@@ -378,10 +140,6 @@
|
|||||||
//
|
//
|
||||||
splitContainer_Functional.Panel2.Controls.Add(groupBox_Preview);
|
splitContainer_Functional.Panel2.Controls.Add(groupBox_Preview);
|
||||||
splitContainer_Functional.Panel2.Cursor = Cursors.Default;
|
splitContainer_Functional.Panel2.Cursor = Cursors.Default;
|
||||||
splitContainer_Functional.Size = new Size(1758, 927);
|
|
||||||
splitContainer_Functional.SplitterDistance = 788;
|
|
||||||
splitContainer_Functional.SplitterWidth = 8;
|
|
||||||
splitContainer_Functional.TabIndex = 2;
|
|
||||||
splitContainer_Functional.TabStop = false;
|
splitContainer_Functional.TabStop = false;
|
||||||
splitContainer_Functional.SplitterMoved += splitContainer_SplitterMoved;
|
splitContainer_Functional.SplitterMoved += splitContainer_SplitterMoved;
|
||||||
splitContainer_Functional.MouseUp += splitContainer_MouseUp;
|
splitContainer_Functional.MouseUp += splitContainer_MouseUp;
|
||||||
@@ -389,8 +147,7 @@
|
|||||||
// splitContainer_Information
|
// splitContainer_Information
|
||||||
//
|
//
|
||||||
splitContainer_Information.Cursor = Cursors.SizeWE;
|
splitContainer_Information.Cursor = Cursors.SizeWE;
|
||||||
splitContainer_Information.Dock = DockStyle.Fill;
|
resources.ApplyResources(splitContainer_Information, "splitContainer_Information");
|
||||||
splitContainer_Information.Location = new Point(0, 0);
|
|
||||||
splitContainer_Information.Name = "splitContainer_Information";
|
splitContainer_Information.Name = "splitContainer_Information";
|
||||||
//
|
//
|
||||||
// splitContainer_Information.Panel1
|
// splitContainer_Information.Panel1
|
||||||
@@ -402,10 +159,6 @@
|
|||||||
//
|
//
|
||||||
splitContainer_Information.Panel2.Controls.Add(splitContainer_Config);
|
splitContainer_Information.Panel2.Controls.Add(splitContainer_Config);
|
||||||
splitContainer_Information.Panel2.Cursor = Cursors.Default;
|
splitContainer_Information.Panel2.Cursor = Cursors.Default;
|
||||||
splitContainer_Information.Size = new Size(788, 927);
|
|
||||||
splitContainer_Information.SplitterDistance = 351;
|
|
||||||
splitContainer_Information.SplitterWidth = 8;
|
|
||||||
splitContainer_Information.TabIndex = 1;
|
|
||||||
splitContainer_Information.TabStop = false;
|
splitContainer_Information.TabStop = false;
|
||||||
splitContainer_Information.SplitterMoved += splitContainer_SplitterMoved;
|
splitContainer_Information.SplitterMoved += splitContainer_SplitterMoved;
|
||||||
splitContainer_Information.MouseUp += splitContainer_MouseUp;
|
splitContainer_Information.MouseUp += splitContainer_MouseUp;
|
||||||
@@ -413,37 +166,25 @@
|
|||||||
// groupBox_SkelList
|
// groupBox_SkelList
|
||||||
//
|
//
|
||||||
groupBox_SkelList.Controls.Add(spineListView);
|
groupBox_SkelList.Controls.Add(spineListView);
|
||||||
groupBox_SkelList.Dock = DockStyle.Fill;
|
resources.ApplyResources(groupBox_SkelList, "groupBox_SkelList");
|
||||||
groupBox_SkelList.Location = new Point(0, 0);
|
|
||||||
groupBox_SkelList.Name = "groupBox_SkelList";
|
groupBox_SkelList.Name = "groupBox_SkelList";
|
||||||
groupBox_SkelList.Size = new Size(351, 927);
|
|
||||||
groupBox_SkelList.TabIndex = 0;
|
|
||||||
groupBox_SkelList.TabStop = false;
|
groupBox_SkelList.TabStop = false;
|
||||||
groupBox_SkelList.Text = "模型列表";
|
|
||||||
//
|
//
|
||||||
// spineListView
|
// spineListView
|
||||||
//
|
//
|
||||||
spineListView.Dock = DockStyle.Fill;
|
resources.ApplyResources(spineListView, "spineListView");
|
||||||
spineListView.Location = new Point(3, 26);
|
|
||||||
spineListView.Name = "spineListView";
|
spineListView.Name = "spineListView";
|
||||||
spineListView.Size = new Size(345, 898);
|
|
||||||
spineListView.SpinePropertyGrid = spineViewPropertyGrid;
|
spineListView.SpinePropertyGrid = spineViewPropertyGrid;
|
||||||
spineListView.TabIndex = 0;
|
|
||||||
//
|
//
|
||||||
// spineViewPropertyGrid
|
// spineViewPropertyGrid
|
||||||
//
|
//
|
||||||
spineViewPropertyGrid.Dock = DockStyle.Fill;
|
resources.ApplyResources(spineViewPropertyGrid, "spineViewPropertyGrid");
|
||||||
spineViewPropertyGrid.Location = new Point(3, 26);
|
|
||||||
spineViewPropertyGrid.Name = "spineViewPropertyGrid";
|
spineViewPropertyGrid.Name = "spineViewPropertyGrid";
|
||||||
spineViewPropertyGrid.Size = new Size(423, 575);
|
|
||||||
spineViewPropertyGrid.TabIndex = 0;
|
|
||||||
//
|
//
|
||||||
// splitContainer_Config
|
// splitContainer_Config
|
||||||
//
|
//
|
||||||
splitContainer_Config.Dock = DockStyle.Fill;
|
resources.ApplyResources(splitContainer_Config, "splitContainer_Config");
|
||||||
splitContainer_Config.Location = new Point(0, 0);
|
|
||||||
splitContainer_Config.Name = "splitContainer_Config";
|
splitContainer_Config.Name = "splitContainer_Config";
|
||||||
splitContainer_Config.Orientation = Orientation.Horizontal;
|
|
||||||
//
|
//
|
||||||
// splitContainer_Config.Panel1
|
// splitContainer_Config.Panel1
|
||||||
//
|
//
|
||||||
@@ -452,75 +193,260 @@
|
|||||||
// splitContainer_Config.Panel2
|
// splitContainer_Config.Panel2
|
||||||
//
|
//
|
||||||
splitContainer_Config.Panel2.Controls.Add(groupBox_SkelConfig);
|
splitContainer_Config.Panel2.Controls.Add(groupBox_SkelConfig);
|
||||||
splitContainer_Config.Size = new Size(429, 927);
|
|
||||||
splitContainer_Config.SplitterDistance = 315;
|
|
||||||
splitContainer_Config.SplitterWidth = 8;
|
|
||||||
splitContainer_Config.TabIndex = 0;
|
|
||||||
//
|
//
|
||||||
// groupBox_PreviewConfig
|
// groupBox_PreviewConfig
|
||||||
//
|
//
|
||||||
groupBox_PreviewConfig.Controls.Add(propertyGrid_Previewer);
|
groupBox_PreviewConfig.Controls.Add(propertyGrid_Previewer);
|
||||||
groupBox_PreviewConfig.Dock = DockStyle.Fill;
|
resources.ApplyResources(groupBox_PreviewConfig, "groupBox_PreviewConfig");
|
||||||
groupBox_PreviewConfig.Location = new Point(0, 0);
|
|
||||||
groupBox_PreviewConfig.Margin = new Padding(0);
|
|
||||||
groupBox_PreviewConfig.Name = "groupBox_PreviewConfig";
|
groupBox_PreviewConfig.Name = "groupBox_PreviewConfig";
|
||||||
groupBox_PreviewConfig.Size = new Size(429, 315);
|
|
||||||
groupBox_PreviewConfig.TabIndex = 1;
|
|
||||||
groupBox_PreviewConfig.TabStop = false;
|
groupBox_PreviewConfig.TabStop = false;
|
||||||
groupBox_PreviewConfig.Text = "画面参数";
|
|
||||||
//
|
//
|
||||||
// propertyGrid_Previewer
|
// propertyGrid_Previewer
|
||||||
//
|
//
|
||||||
propertyGrid_Previewer.Dock = DockStyle.Fill;
|
resources.ApplyResources(propertyGrid_Previewer, "propertyGrid_Previewer");
|
||||||
propertyGrid_Previewer.HelpVisible = false;
|
|
||||||
propertyGrid_Previewer.Location = new Point(3, 26);
|
|
||||||
propertyGrid_Previewer.Name = "propertyGrid_Previewer";
|
propertyGrid_Previewer.Name = "propertyGrid_Previewer";
|
||||||
propertyGrid_Previewer.Size = new Size(423, 286);
|
|
||||||
propertyGrid_Previewer.TabIndex = 1;
|
|
||||||
propertyGrid_Previewer.ToolbarVisible = false;
|
propertyGrid_Previewer.ToolbarVisible = false;
|
||||||
//
|
//
|
||||||
// groupBox_SkelConfig
|
// groupBox_SkelConfig
|
||||||
//
|
//
|
||||||
groupBox_SkelConfig.Controls.Add(spineViewPropertyGrid);
|
groupBox_SkelConfig.Controls.Add(spineViewPropertyGrid);
|
||||||
groupBox_SkelConfig.Dock = DockStyle.Fill;
|
resources.ApplyResources(groupBox_SkelConfig, "groupBox_SkelConfig");
|
||||||
groupBox_SkelConfig.Location = new Point(0, 0);
|
|
||||||
groupBox_SkelConfig.Margin = new Padding(0);
|
|
||||||
groupBox_SkelConfig.Name = "groupBox_SkelConfig";
|
groupBox_SkelConfig.Name = "groupBox_SkelConfig";
|
||||||
groupBox_SkelConfig.Size = new Size(429, 604);
|
|
||||||
groupBox_SkelConfig.TabIndex = 0;
|
|
||||||
groupBox_SkelConfig.TabStop = false;
|
groupBox_SkelConfig.TabStop = false;
|
||||||
groupBox_SkelConfig.Text = "模型参数";
|
|
||||||
//
|
//
|
||||||
// groupBox_Preview
|
// groupBox_Preview
|
||||||
//
|
//
|
||||||
groupBox_Preview.Controls.Add(spinePreviewPanel);
|
groupBox_Preview.Controls.Add(spinePreviewPanel);
|
||||||
groupBox_Preview.Dock = DockStyle.Fill;
|
resources.ApplyResources(groupBox_Preview, "groupBox_Preview");
|
||||||
groupBox_Preview.Location = new Point(0, 0);
|
|
||||||
groupBox_Preview.Name = "groupBox_Preview";
|
groupBox_Preview.Name = "groupBox_Preview";
|
||||||
groupBox_Preview.Size = new Size(962, 927);
|
|
||||||
groupBox_Preview.TabIndex = 1;
|
|
||||||
groupBox_Preview.TabStop = false;
|
groupBox_Preview.TabStop = false;
|
||||||
groupBox_Preview.Text = "预览画面";
|
|
||||||
//
|
//
|
||||||
// spinePreviewPanel
|
// spinePreviewPanel
|
||||||
//
|
//
|
||||||
spinePreviewPanel.Dock = DockStyle.Fill;
|
resources.ApplyResources(spinePreviewPanel, "spinePreviewPanel");
|
||||||
spinePreviewPanel.Location = new Point(3, 26);
|
|
||||||
spinePreviewPanel.Name = "spinePreviewPanel";
|
spinePreviewPanel.Name = "spinePreviewPanel";
|
||||||
spinePreviewPanel.PropertyGrid = propertyGrid_Previewer;
|
spinePreviewPanel.PropertyGrid = propertyGrid_Previewer;
|
||||||
spinePreviewPanel.Size = new Size(956, 898);
|
|
||||||
spinePreviewPanel.SpineListView = spineListView;
|
spinePreviewPanel.SpineListView = spineListView;
|
||||||
spinePreviewPanel.TabIndex = 0;
|
//
|
||||||
|
// rtbLog
|
||||||
|
//
|
||||||
|
rtbLog.BackColor = SystemColors.Window;
|
||||||
|
rtbLog.BorderStyle = BorderStyle.None;
|
||||||
|
resources.ApplyResources(rtbLog, "rtbLog");
|
||||||
|
rtbLog.Name = "rtbLog";
|
||||||
|
rtbLog.ReadOnly = true;
|
||||||
|
//
|
||||||
|
// menuStrip
|
||||||
|
//
|
||||||
|
menuStrip.BackColor = SystemColors.Control;
|
||||||
|
menuStrip.ImageScalingSize = new Size(24, 24);
|
||||||
|
menuStrip.Items.AddRange(new ToolStripItem[] { toolStripMenuItem_File, toolStripMenuItem_Tool, toolStripMenuItem_Download, toolStripMenuItem_Help, toolStripMenuItem_Experiment, ToolStripMenuItem_Language });
|
||||||
|
resources.ApplyResources(menuStrip, "menuStrip");
|
||||||
|
menuStrip.Name = "menuStrip";
|
||||||
|
//
|
||||||
|
// toolStripMenuItem_File
|
||||||
|
//
|
||||||
|
toolStripMenuItem_File.DropDownItems.AddRange(new ToolStripItem[] { toolStripMenuItem_Open, toolStripMenuItem_BatchOpen, toolStripSeparator1, toolStripMenuItem_Export, toolStripSeparator2, toolStripMenuItem_Exit });
|
||||||
|
toolStripMenuItem_File.Name = "toolStripMenuItem_File";
|
||||||
|
resources.ApplyResources(toolStripMenuItem_File, "toolStripMenuItem_File");
|
||||||
|
//
|
||||||
|
// toolStripMenuItem_Open
|
||||||
|
//
|
||||||
|
toolStripMenuItem_Open.Name = "toolStripMenuItem_Open";
|
||||||
|
resources.ApplyResources(toolStripMenuItem_Open, "toolStripMenuItem_Open");
|
||||||
|
toolStripMenuItem_Open.Click += toolStripMenuItem_Open_Click;
|
||||||
|
//
|
||||||
|
// toolStripMenuItem_BatchOpen
|
||||||
|
//
|
||||||
|
toolStripMenuItem_BatchOpen.Name = "toolStripMenuItem_BatchOpen";
|
||||||
|
resources.ApplyResources(toolStripMenuItem_BatchOpen, "toolStripMenuItem_BatchOpen");
|
||||||
|
toolStripMenuItem_BatchOpen.Click += toolStripMenuItem_BatchOpen_Click;
|
||||||
|
//
|
||||||
|
// toolStripSeparator1
|
||||||
|
//
|
||||||
|
toolStripSeparator1.Name = "toolStripSeparator1";
|
||||||
|
resources.ApplyResources(toolStripSeparator1, "toolStripSeparator1");
|
||||||
|
//
|
||||||
|
// toolStripMenuItem_Export
|
||||||
|
//
|
||||||
|
toolStripMenuItem_Export.DropDownItems.AddRange(new ToolStripItem[] { toolStripMenuItem_ExportFrame, toolStripMenuItem_ExportFrameSequence, toolStripSeparator4, toolStripMenuItem_ExportGif, toolStripMenuItem_ExportWebp, toolStripMenuItem_ExportAvif, toolStripSeparator5, toolStripMenuItem_ExportMp4, toolStripMenuItem_ExportWebm, toolStripMenuItem_ExportMkv, toolStripMenuItem_ExportMov, toolStripSeparator6, toolStripMenuItem_ExportCustom });
|
||||||
|
toolStripMenuItem_Export.Name = "toolStripMenuItem_Export";
|
||||||
|
resources.ApplyResources(toolStripMenuItem_Export, "toolStripMenuItem_Export");
|
||||||
|
//
|
||||||
|
// toolStripMenuItem_ExportFrame
|
||||||
|
//
|
||||||
|
toolStripMenuItem_ExportFrame.Name = "toolStripMenuItem_ExportFrame";
|
||||||
|
resources.ApplyResources(toolStripMenuItem_ExportFrame, "toolStripMenuItem_ExportFrame");
|
||||||
|
toolStripMenuItem_ExportFrame.Click += toolStripMenuItem_ExportFrame_Click;
|
||||||
|
//
|
||||||
|
// toolStripMenuItem_ExportFrameSequence
|
||||||
|
//
|
||||||
|
toolStripMenuItem_ExportFrameSequence.Name = "toolStripMenuItem_ExportFrameSequence";
|
||||||
|
resources.ApplyResources(toolStripMenuItem_ExportFrameSequence, "toolStripMenuItem_ExportFrameSequence");
|
||||||
|
toolStripMenuItem_ExportFrameSequence.Click += toolStripMenuItem_ExportFrameSequence_Click;
|
||||||
|
//
|
||||||
|
// toolStripSeparator4
|
||||||
|
//
|
||||||
|
toolStripSeparator4.Name = "toolStripSeparator4";
|
||||||
|
resources.ApplyResources(toolStripSeparator4, "toolStripSeparator4");
|
||||||
|
//
|
||||||
|
// toolStripMenuItem_ExportGif
|
||||||
|
//
|
||||||
|
toolStripMenuItem_ExportGif.Name = "toolStripMenuItem_ExportGif";
|
||||||
|
resources.ApplyResources(toolStripMenuItem_ExportGif, "toolStripMenuItem_ExportGif");
|
||||||
|
toolStripMenuItem_ExportGif.Click += toolStripMenuItem_ExportGif_Click;
|
||||||
|
//
|
||||||
|
// toolStripMenuItem_ExportWebp
|
||||||
|
//
|
||||||
|
toolStripMenuItem_ExportWebp.Name = "toolStripMenuItem_ExportWebp";
|
||||||
|
resources.ApplyResources(toolStripMenuItem_ExportWebp, "toolStripMenuItem_ExportWebp");
|
||||||
|
toolStripMenuItem_ExportWebp.Click += toolStripMenuItem_ExportWebp_Click;
|
||||||
|
//
|
||||||
|
// toolStripMenuItem_ExportAvif
|
||||||
|
//
|
||||||
|
toolStripMenuItem_ExportAvif.Name = "toolStripMenuItem_ExportAvif";
|
||||||
|
resources.ApplyResources(toolStripMenuItem_ExportAvif, "toolStripMenuItem_ExportAvif");
|
||||||
|
toolStripMenuItem_ExportAvif.Click += toolStripMenuItem_ExportAvif_Click;
|
||||||
|
//
|
||||||
|
// toolStripSeparator5
|
||||||
|
//
|
||||||
|
toolStripSeparator5.Name = "toolStripSeparator5";
|
||||||
|
resources.ApplyResources(toolStripSeparator5, "toolStripSeparator5");
|
||||||
|
//
|
||||||
|
// toolStripMenuItem_ExportMp4
|
||||||
|
//
|
||||||
|
toolStripMenuItem_ExportMp4.Name = "toolStripMenuItem_ExportMp4";
|
||||||
|
resources.ApplyResources(toolStripMenuItem_ExportMp4, "toolStripMenuItem_ExportMp4");
|
||||||
|
toolStripMenuItem_ExportMp4.Click += toolStripMenuItem_ExportMp4_Click;
|
||||||
|
//
|
||||||
|
// toolStripMenuItem_ExportWebm
|
||||||
|
//
|
||||||
|
toolStripMenuItem_ExportWebm.Name = "toolStripMenuItem_ExportWebm";
|
||||||
|
resources.ApplyResources(toolStripMenuItem_ExportWebm, "toolStripMenuItem_ExportWebm");
|
||||||
|
toolStripMenuItem_ExportWebm.Click += toolStripMenuItem_ExportWebm_Click;
|
||||||
|
//
|
||||||
|
// toolStripMenuItem_ExportMkv
|
||||||
|
//
|
||||||
|
toolStripMenuItem_ExportMkv.Name = "toolStripMenuItem_ExportMkv";
|
||||||
|
resources.ApplyResources(toolStripMenuItem_ExportMkv, "toolStripMenuItem_ExportMkv");
|
||||||
|
toolStripMenuItem_ExportMkv.Click += toolStripMenuItem_ExportMkv_Click;
|
||||||
|
//
|
||||||
|
// toolStripMenuItem_ExportMov
|
||||||
|
//
|
||||||
|
toolStripMenuItem_ExportMov.Name = "toolStripMenuItem_ExportMov";
|
||||||
|
resources.ApplyResources(toolStripMenuItem_ExportMov, "toolStripMenuItem_ExportMov");
|
||||||
|
toolStripMenuItem_ExportMov.Click += toolStripMenuItem_ExportMov_Click;
|
||||||
|
//
|
||||||
|
// toolStripSeparator6
|
||||||
|
//
|
||||||
|
toolStripSeparator6.Name = "toolStripSeparator6";
|
||||||
|
resources.ApplyResources(toolStripSeparator6, "toolStripSeparator6");
|
||||||
|
//
|
||||||
|
// toolStripMenuItem_ExportCustom
|
||||||
|
//
|
||||||
|
toolStripMenuItem_ExportCustom.Name = "toolStripMenuItem_ExportCustom";
|
||||||
|
resources.ApplyResources(toolStripMenuItem_ExportCustom, "toolStripMenuItem_ExportCustom");
|
||||||
|
toolStripMenuItem_ExportCustom.Click += toolStripMenuItem_ExportCustom_Click;
|
||||||
|
//
|
||||||
|
// toolStripSeparator2
|
||||||
|
//
|
||||||
|
toolStripSeparator2.Name = "toolStripSeparator2";
|
||||||
|
resources.ApplyResources(toolStripSeparator2, "toolStripSeparator2");
|
||||||
|
//
|
||||||
|
// toolStripMenuItem_Exit
|
||||||
|
//
|
||||||
|
toolStripMenuItem_Exit.Name = "toolStripMenuItem_Exit";
|
||||||
|
resources.ApplyResources(toolStripMenuItem_Exit, "toolStripMenuItem_Exit");
|
||||||
|
toolStripMenuItem_Exit.Click += toolStripMenuItem_Exit_Click;
|
||||||
|
//
|
||||||
|
// toolStripMenuItem_Tool
|
||||||
|
//
|
||||||
|
toolStripMenuItem_Tool.DropDownItems.AddRange(new ToolStripItem[] { toolStripMenuItem_ConvertFileFormat });
|
||||||
|
toolStripMenuItem_Tool.Name = "toolStripMenuItem_Tool";
|
||||||
|
resources.ApplyResources(toolStripMenuItem_Tool, "toolStripMenuItem_Tool");
|
||||||
|
//
|
||||||
|
// toolStripMenuItem_ConvertFileFormat
|
||||||
|
//
|
||||||
|
toolStripMenuItem_ConvertFileFormat.Name = "toolStripMenuItem_ConvertFileFormat";
|
||||||
|
resources.ApplyResources(toolStripMenuItem_ConvertFileFormat, "toolStripMenuItem_ConvertFileFormat");
|
||||||
|
toolStripMenuItem_ConvertFileFormat.Click += toolStripMenuItem_ConvertFileFormat_Click;
|
||||||
|
//
|
||||||
|
// toolStripMenuItem_Download
|
||||||
|
//
|
||||||
|
toolStripMenuItem_Download.DropDownItems.AddRange(new ToolStripItem[] { toolStripMenuItem_ManageResource });
|
||||||
|
toolStripMenuItem_Download.Name = "toolStripMenuItem_Download";
|
||||||
|
resources.ApplyResources(toolStripMenuItem_Download, "toolStripMenuItem_Download");
|
||||||
|
//
|
||||||
|
// toolStripMenuItem_ManageResource
|
||||||
|
//
|
||||||
|
toolStripMenuItem_ManageResource.Name = "toolStripMenuItem_ManageResource";
|
||||||
|
resources.ApplyResources(toolStripMenuItem_ManageResource, "toolStripMenuItem_ManageResource");
|
||||||
|
toolStripMenuItem_ManageResource.Click += toolStripMenuItem_ManageResource_Click;
|
||||||
|
//
|
||||||
|
// toolStripMenuItem_Help
|
||||||
|
//
|
||||||
|
toolStripMenuItem_Help.DropDownItems.AddRange(new ToolStripItem[] { toolStripMenuItem_Diagnostics, toolStripSeparator3, toolStripMenuItem_About, toolStripMenuItem_Debug });
|
||||||
|
toolStripMenuItem_Help.Name = "toolStripMenuItem_Help";
|
||||||
|
resources.ApplyResources(toolStripMenuItem_Help, "toolStripMenuItem_Help");
|
||||||
|
//
|
||||||
|
// toolStripMenuItem_Diagnostics
|
||||||
|
//
|
||||||
|
toolStripMenuItem_Diagnostics.Name = "toolStripMenuItem_Diagnostics";
|
||||||
|
resources.ApplyResources(toolStripMenuItem_Diagnostics, "toolStripMenuItem_Diagnostics");
|
||||||
|
toolStripMenuItem_Diagnostics.Click += toolStripMenuItem_Diagnostics_Click;
|
||||||
|
//
|
||||||
|
// toolStripSeparator3
|
||||||
|
//
|
||||||
|
toolStripSeparator3.Name = "toolStripSeparator3";
|
||||||
|
resources.ApplyResources(toolStripSeparator3, "toolStripSeparator3");
|
||||||
|
//
|
||||||
|
// toolStripMenuItem_About
|
||||||
|
//
|
||||||
|
toolStripMenuItem_About.Name = "toolStripMenuItem_About";
|
||||||
|
resources.ApplyResources(toolStripMenuItem_About, "toolStripMenuItem_About");
|
||||||
|
toolStripMenuItem_About.Click += toolStripMenuItem_About_Click;
|
||||||
|
//
|
||||||
|
// toolStripMenuItem_Debug
|
||||||
|
//
|
||||||
|
toolStripMenuItem_Debug.Name = "toolStripMenuItem_Debug";
|
||||||
|
resources.ApplyResources(toolStripMenuItem_Debug, "toolStripMenuItem_Debug");
|
||||||
|
toolStripMenuItem_Debug.Click += toolStripMenuItem_Debug_Click;
|
||||||
|
//
|
||||||
|
// toolStripMenuItem_Experiment
|
||||||
|
//
|
||||||
|
toolStripMenuItem_Experiment.DropDownItems.AddRange(new ToolStripItem[] { toolStripMenuItem_DesktopProjection });
|
||||||
|
toolStripMenuItem_Experiment.Name = "toolStripMenuItem_Experiment";
|
||||||
|
resources.ApplyResources(toolStripMenuItem_Experiment, "toolStripMenuItem_Experiment");
|
||||||
|
//
|
||||||
|
// toolStripMenuItem_DesktopProjection
|
||||||
|
//
|
||||||
|
toolStripMenuItem_DesktopProjection.Name = "toolStripMenuItem_DesktopProjection";
|
||||||
|
resources.ApplyResources(toolStripMenuItem_DesktopProjection, "toolStripMenuItem_DesktopProjection");
|
||||||
|
toolStripMenuItem_DesktopProjection.Click += toolStripMenuItem_DesktopProjection_Click;
|
||||||
|
//
|
||||||
|
// ToolStripMenuItem_Language
|
||||||
|
//
|
||||||
|
ToolStripMenuItem_Language.DropDownItems.AddRange(new ToolStripItem[] { ToolStripMenuItem_English, ToolStripMenuItem_Chinese });
|
||||||
|
ToolStripMenuItem_Language.Name = "ToolStripMenuItem_Language";
|
||||||
|
resources.ApplyResources(ToolStripMenuItem_Language, "ToolStripMenuItem_Language");
|
||||||
|
//
|
||||||
|
// ToolStripMenuItem_English
|
||||||
|
//
|
||||||
|
ToolStripMenuItem_English.Name = "ToolStripMenuItem_English";
|
||||||
|
resources.ApplyResources(ToolStripMenuItem_English, "ToolStripMenuItem_English");
|
||||||
|
ToolStripMenuItem_English.Click += ToolStripMenuItem_English_Click;
|
||||||
|
//
|
||||||
|
// ToolStripMenuItem_Chinese
|
||||||
|
//
|
||||||
|
ToolStripMenuItem_Chinese.Name = "ToolStripMenuItem_Chinese";
|
||||||
|
resources.ApplyResources(ToolStripMenuItem_Chinese, "ToolStripMenuItem_Chinese");
|
||||||
|
ToolStripMenuItem_Chinese.Click += ToolStripMenuItem_Chinese_Click;
|
||||||
//
|
//
|
||||||
// panel_MainForm
|
// panel_MainForm
|
||||||
//
|
//
|
||||||
panel_MainForm.Controls.Add(splitContainer_MainForm);
|
panel_MainForm.Controls.Add(splitContainer_MainForm);
|
||||||
panel_MainForm.Dock = DockStyle.Fill;
|
resources.ApplyResources(panel_MainForm, "panel_MainForm");
|
||||||
panel_MainForm.Location = new Point(0, 36);
|
|
||||||
panel_MainForm.Name = "panel_MainForm";
|
panel_MainForm.Name = "panel_MainForm";
|
||||||
panel_MainForm.Padding = new Padding(10, 5, 10, 10);
|
|
||||||
panel_MainForm.Size = new Size(1778, 1108);
|
|
||||||
panel_MainForm.TabIndex = 4;
|
|
||||||
//
|
//
|
||||||
// toolTip
|
// toolTip
|
||||||
//
|
//
|
||||||
@@ -528,21 +454,14 @@
|
|||||||
//
|
//
|
||||||
// SpineViewerForm
|
// SpineViewerForm
|
||||||
//
|
//
|
||||||
AutoScaleDimensions = new SizeF(144F, 144F);
|
resources.ApplyResources(this, "$this");
|
||||||
AutoScaleMode = AutoScaleMode.Dpi;
|
AutoScaleMode = AutoScaleMode.Dpi;
|
||||||
ClientSize = new Size(1778, 1144);
|
|
||||||
Controls.Add(panel_MainForm);
|
Controls.Add(panel_MainForm);
|
||||||
Controls.Add(menuStrip);
|
Controls.Add(menuStrip);
|
||||||
Icon = (Icon)resources.GetObject("$this.Icon");
|
|
||||||
MainMenuStrip = menuStrip;
|
MainMenuStrip = menuStrip;
|
||||||
Margin = new Padding(3, 2, 3, 2);
|
|
||||||
Name = "SpineViewerForm";
|
Name = "SpineViewerForm";
|
||||||
StartPosition = FormStartPosition.CenterScreen;
|
|
||||||
Text = "SpineViewer";
|
|
||||||
FormClosing += MainForm_FormClosing;
|
FormClosing += MainForm_FormClosing;
|
||||||
Load += MainForm_Load;
|
Load += MainForm_Load;
|
||||||
menuStrip.ResumeLayout(false);
|
|
||||||
menuStrip.PerformLayout();
|
|
||||||
splitContainer_MainForm.Panel1.ResumeLayout(false);
|
splitContainer_MainForm.Panel1.ResumeLayout(false);
|
||||||
splitContainer_MainForm.Panel2.ResumeLayout(false);
|
splitContainer_MainForm.Panel2.ResumeLayout(false);
|
||||||
((System.ComponentModel.ISupportInitialize)splitContainer_MainForm).EndInit();
|
((System.ComponentModel.ISupportInitialize)splitContainer_MainForm).EndInit();
|
||||||
@@ -563,6 +482,8 @@
|
|||||||
groupBox_PreviewConfig.ResumeLayout(false);
|
groupBox_PreviewConfig.ResumeLayout(false);
|
||||||
groupBox_SkelConfig.ResumeLayout(false);
|
groupBox_SkelConfig.ResumeLayout(false);
|
||||||
groupBox_Preview.ResumeLayout(false);
|
groupBox_Preview.ResumeLayout(false);
|
||||||
|
menuStrip.ResumeLayout(false);
|
||||||
|
menuStrip.PerformLayout();
|
||||||
panel_MainForm.ResumeLayout(false);
|
panel_MainForm.ResumeLayout(false);
|
||||||
ResumeLayout(false);
|
ResumeLayout(false);
|
||||||
PerformLayout();
|
PerformLayout();
|
||||||
@@ -617,5 +538,8 @@
|
|||||||
private ToolStripMenuItem toolStripMenuItem_Experiment;
|
private ToolStripMenuItem toolStripMenuItem_Experiment;
|
||||||
private ToolStripMenuItem toolStripMenuItem_DesktopProjection;
|
private ToolStripMenuItem toolStripMenuItem_DesktopProjection;
|
||||||
private ToolStripMenuItem toolStripMenuItem_Debug;
|
private ToolStripMenuItem toolStripMenuItem_Debug;
|
||||||
|
private ToolStripMenuItem ToolStripMenuItem_Language;
|
||||||
|
private ToolStripMenuItem ToolStripMenuItem_English;
|
||||||
|
private ToolStripMenuItem ToolStripMenuItem_Chinese;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -441,6 +441,40 @@ namespace SpineViewer
|
|||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private void ToolStripMenuItem_English_Click(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
LocalizeConfiguration.SetCulture("en-US");
|
||||||
|
DialogResult result = MessageBox.Show(
|
||||||
|
"The language has been changed. The application needs to restart for changes to take effect.\nDo you want to restart now?",
|
||||||
|
"Restart Required",
|
||||||
|
MessageBoxButtons.YesNo,
|
||||||
|
MessageBoxIcon.Question
|
||||||
|
);
|
||||||
|
|
||||||
|
if (result == DialogResult.Yes)
|
||||||
|
{
|
||||||
|
Application.Restart(); // Restarts the app
|
||||||
|
Environment.Exit(0); // Ensures the current process ends
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private void ToolStripMenuItem_Chinese_Click(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
LocalizeConfiguration.SetCulture();
|
||||||
|
DialogResult result = MessageBox.Show(
|
||||||
|
"The language has been changed. The application needs to restart for changes to take effect.\nDo you want to restart now?",
|
||||||
|
"Restart Required",
|
||||||
|
MessageBoxButtons.YesNo,
|
||||||
|
MessageBoxIcon.Question
|
||||||
|
);
|
||||||
|
|
||||||
|
if (result == DialogResult.Yes)
|
||||||
|
{
|
||||||
|
Application.Restart(); // Restarts the app
|
||||||
|
Environment.Exit(0); // Ensures the current process ends
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
//private void spinePreviewer_KeyDown(object sender, KeyEventArgs e)
|
//private void spinePreviewer_KeyDown(object sender, KeyEventArgs e)
|
||||||
//{
|
//{
|
||||||
// switch (e.KeyCode)
|
// switch (e.KeyCode)
|
||||||
|
|||||||
3400
SpineViewer/Forms/SpineViewerForm.en-AS.resx
Normal file
3400
SpineViewer/Forms/SpineViewerForm.en-AS.resx
Normal file
File diff suppressed because it is too large
Load Diff
3316
SpineViewer/Forms/SpineViewerForm.en.resx
Normal file
3316
SpineViewer/Forms/SpineViewerForm.en.resx
Normal file
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@@ -1,6 +1,8 @@
|
|||||||
using NLog;
|
using NLog;
|
||||||
using SpineViewer.Utils;
|
using SpineViewer.Utils;
|
||||||
|
using System.Configuration;
|
||||||
using System.Diagnostics;
|
using System.Diagnostics;
|
||||||
|
using System.Globalization;
|
||||||
using System.Reflection;
|
using System.Reflection;
|
||||||
|
|
||||||
namespace SpineViewer
|
namespace SpineViewer
|
||||||
@@ -44,6 +46,10 @@ namespace SpineViewer
|
|||||||
InitializeLogConfiguration();
|
InitializeLogConfiguration();
|
||||||
logger.Info("Program Started");
|
logger.Info("Program Started");
|
||||||
|
|
||||||
|
string localize = ConfigurationManager.AppSettings["localize"];
|
||||||
|
LocalizeConfiguration.SetCulture(localize);
|
||||||
|
logger.Info($"Culture info: {CultureInfo.CurrentCulture}");
|
||||||
|
|
||||||
// To customize application configuration such as set high DPI settings or default font,
|
// To customize application configuration such as set high DPI settings or default font,
|
||||||
// see https://aka.ms/applicationconfiguration.
|
// see https://aka.ms/applicationconfiguration.
|
||||||
ApplicationConfiguration.Initialize();
|
ApplicationConfiguration.Initialize();
|
||||||
|
|||||||
27
SpineViewer/Utils/LocalizeConfiguration.cs
Normal file
27
SpineViewer/Utils/LocalizeConfiguration.cs
Normal file
@@ -0,0 +1,27 @@
|
|||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Configuration;
|
||||||
|
using System.Globalization;
|
||||||
|
using System.Linq;
|
||||||
|
using System.Text;
|
||||||
|
using System.Threading.Tasks;
|
||||||
|
|
||||||
|
namespace SpineViewer.Utils
|
||||||
|
{
|
||||||
|
public static class LocalizeConfiguration
|
||||||
|
{
|
||||||
|
|
||||||
|
public static void SetCulture(string cultureName = null)
|
||||||
|
{
|
||||||
|
CultureInfo culture;
|
||||||
|
|
||||||
|
if (string.IsNullOrWhiteSpace(cultureName))
|
||||||
|
culture = CultureInfo.InstalledUICulture;
|
||||||
|
else
|
||||||
|
culture = new CultureInfo(cultureName);
|
||||||
|
|
||||||
|
Thread.CurrentThread.CurrentCulture = culture;
|
||||||
|
Thread.CurrentThread.CurrentUICulture = culture;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user