增加关于对话框
This commit is contained in:
3
SpineViewer/MainForm.Designer.cs
generated
3
SpineViewer/MainForm.Designer.cs
generated
@@ -164,8 +164,9 @@
|
||||
// toolStripMenuItem_About
|
||||
//
|
||||
toolStripMenuItem_About.Name = "toolStripMenuItem_About";
|
||||
toolStripMenuItem_About.Size = new Size(171, 34);
|
||||
toolStripMenuItem_About.Size = new Size(270, 34);
|
||||
toolStripMenuItem_About.Text = "关于(&A)";
|
||||
toolStripMenuItem_About.Click += toolStripMenuItem_About_Click;
|
||||
//
|
||||
// rtbLog
|
||||
//
|
||||
|
||||
@@ -67,7 +67,7 @@ namespace SpineViewer
|
||||
spine.CurrentAnimation = spine.CurrentAnimation;
|
||||
|
||||
Program.Logger.Info(
|
||||
"Begin exporting png frames to output dir {}, duration: {}, fps: {}, totally {} spines",
|
||||
"Begin exporting png frames to output dir {}, duration: {}, fps: {}, totally {} spines",
|
||||
[outputDir, duration, fps, spinesReverse.Count()]
|
||||
);
|
||||
|
||||
@@ -81,7 +81,7 @@ namespace SpineViewer
|
||||
|
||||
tex.Clear(SFML.Graphics.Color.Transparent);
|
||||
|
||||
foreach(var spine in spinesReverse)
|
||||
foreach (var spine in spinesReverse)
|
||||
{
|
||||
tex.Draw(spine);
|
||||
spine.Update(delta);
|
||||
@@ -90,7 +90,7 @@ namespace SpineViewer
|
||||
tex.Display();
|
||||
using (var img = tex.Texture.CopyToImage())
|
||||
{
|
||||
img.SaveToFile(Path.Combine(outputDir, $"{timestamp}_{fps}_{frameIndex:d6}.png"));
|
||||
img.SaveToFile(Path.Combine(outputDir, $"{timestamp}_{fps}_{frameIndex:d6}.png"));
|
||||
}
|
||||
|
||||
success++;
|
||||
@@ -158,6 +158,11 @@ namespace SpineViewer
|
||||
}
|
||||
}
|
||||
|
||||
private void toolStripMenuItem_About_Click(object sender, EventArgs e)
|
||||
{
|
||||
(new Dialogs.AboutDialog()).ShowDialog();
|
||||
}
|
||||
|
||||
private void splitContainer_SplitterMoved(object sender, SplitterEventArgs e)
|
||||
{
|
||||
ActiveControl = null;
|
||||
|
||||
Reference in New Issue
Block a user