forked from AerysBat/XNALara
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathAboutBox.cs
More file actions
26 lines (21 loc) · 694 Bytes
/
AboutBox.cs
File metadata and controls
26 lines (21 loc) · 694 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
using System;
using System.Windows.Forms;
namespace XNALara
{
public partial class AboutBox : Form
{
private Game game;
public AboutBox(Game game) {
this.game = game;
InitializeComponent();
labelVersionAndDate.Text = string.Format("v{0}, {1}", game.ReleaseVersion, game.ReleaseDate);
labelShaders.Text = string.Format("{0}, {1}", game.MaxVertexShaderProfile, game.MaxPixelShaderProfile);
}
protected override void OnActivated(EventArgs e) {
game.HasFocus = false;
}
protected override void OnDeactivate(EventArgs e) {
game.HasFocus = true;
}
}
}