Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions Directory.Packages.props
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
<PackageVersion Include="CommunityToolkit.HighPerformance" Version="8.4.0" />
<PackageVersion Include="Cyotek.Drawing.BitmapFont" Version="2.0.4" />
<PackageVersion Include="DotNetAnalyzers.DocumentationAnalyzers" Version="1.0.0-beta.59" />
<PackageVersion Include="Fluent.Net" Version="1.0.63" />
<PackageVersion Include="Google.FlatBuffers" Version="23.5.26" /> <!-- last version with .NET Standard 2.0 support -->
<PackageVersion Include="ImGui.NET" Version="1.90.6.1" />
<PackageVersion Include="JunitXml.TestLogger" Version="3.1.12" />
Expand Down
93 changes: 0 additions & 93 deletions src/BizHawk.Client.DiscoHawk/About.Designer.cs

This file was deleted.

57 changes: 45 additions & 12 deletions src/BizHawk.Client.DiscoHawk/About.cs
Original file line number Diff line number Diff line change
@@ -1,25 +1,58 @@
using System.Reflection;
using System.Windows.Forms;

using BizHawk.Common;

namespace BizHawk.Client.DiscoHawk
{
public partial class About : Form
public class About : Form
{
public About()
public About(MultiMessageContext i18n)
{
InitializeComponent();
lblVersion.Text = $"v{System.Reflection.Assembly.GetExecutingAssembly().GetName().Version}";
}
SuspendLayout();

private void richTextBox1_LinkClicked(object sender, LinkClickedEventArgs e)
{
Util.OpenUrlExternal(e.LinkText);
}
RichTextBox richTextBox1 = new();
richTextBox1.Location = new(12, 12);
richTextBox1.Name = "richTextBox1";
richTextBox1.ReadOnly = true;
richTextBox1.Size = new(499, 236);
richTextBox1.TabIndex = 1;
richTextBox1.Text = i18n["discohawkabout-4584-lbl-explainer"]!.Replace("\n", Environment.NewLine);
richTextBox1.LinkClicked += (_, clickedArgs) => Util.OpenUrlExternal(clickedArgs.LinkText);

private void button1_Click(object sender, EventArgs e)
{
Close();
Button button1 = new();
button1.DialogResult = DialogResult.Cancel;
button1.Location = new(436, 254);
button1.Name = "button1";
button1.Size = new(75, 23);
button1.TabIndex = 2;
button1.Text = i18n.GetWithMnemonic("discohawkabout-9804-btn-dismiss");
button1.UseVisualStyleBackColor = true;
button1.Click += (_, _) => Close();

Label lblVersion = new();
lblVersion.AutoSize = true;
lblVersion.Location = new(12, 259);
lblVersion.Name = "lblVersion";
lblVersion.Size = new(79, 13);
lblVersion.TabIndex = 3;
lblVersion.Text = $"v{Assembly.GetExecutingAssembly().GetName().Version}";

AcceptButton = button1;
AutoScaleDimensions = new(6.0f, 13.0f);
AutoScaleMode = AutoScaleMode.Font;
CancelButton = button1;
ClientSize = new(525, 282);
ControlBox = false;
Controls.Add(lblVersion);
Controls.Add(button1);
Controls.Add(richTextBox1);
FormBorderStyle = FormBorderStyle.FixedDialog;
MinimizeBox = false;
Name = "About";
Text = i18n["discohawkabout-2822-windowtitlestatic"];
ResumeLayout(performLayout: false);
PerformLayout();
}
}
}
131 changes: 0 additions & 131 deletions src/BizHawk.Client.DiscoHawk/About.resx

This file was deleted.

2 changes: 2 additions & 0 deletions src/BizHawk.Client.DiscoHawk/BizHawk.Client.DiscoHawk.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,11 @@
<UseWindowsForms>true</UseWindowsForms>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Fluent.Net" PrivateAssets="all" />
<ProjectReference Include="$(ProjectDir)../BizHawk.Emulation.DiscSystem/BizHawk.Emulation.DiscSystem.csproj" />
<Content Include="discohawk.ico" />
<EmbeddedResource Include="discohawk.ico" />
<EmbeddedResource Include="locale/*.ftl" />
</ItemGroup>
<ItemGroup>
<Compile Update="About.cs" SubType="Form" />
Expand Down
Loading