From 077fef3baf82e23a4a03bb3c73d83f8d8103fdb9 Mon Sep 17 00:00:00 2001 From: lempamo Date: Sun, 30 Jul 2017 00:10:22 -0400 Subject: better infoboxes --- TimeHACK.Engine/WindowManager.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'TimeHACK.Engine/WindowManager.cs') diff --git a/TimeHACK.Engine/WindowManager.cs b/TimeHACK.Engine/WindowManager.cs index 156da2f..4aa82d7 100644 --- a/TimeHACK.Engine/WindowManager.cs +++ b/TimeHACK.Engine/WindowManager.cs @@ -72,13 +72,13 @@ namespace TimeHACK.Engine return app; } - public WinClassic StartInfobox95(string title, string text, Image erroricon) + public WinClassic StartInfobox95(string title, string text, InfoboxType type, InfoboxButtons btns) { - Infobox95 app = new Infobox95(); + pfc.AddFontFile(SaveSystem.GameDirectory + "\\Data\\LeviWindows.ttf"); + Infobox95 app = new Infobox95(type, btns); app.infoText.Text = text; + app.infoText.Font = new Font(pfc.Families[0], 16F, FontStyle.Regular, GraphicsUnit.Point, ((0))); - SoundPlayer sp = new SoundPlayer(Properties.Resources.CHORD); - sp.Play(); return StartWin95(app, title, null, false, false); } -- cgit v1.2.3