From f7b024c4b804ce64a00e62cb2655ae9c10bbd567 Mon Sep 17 00:00:00 2001 From: lempamo Date: Sat, 25 Mar 2017 19:22:45 -0400 Subject: added font part2 --- .vs/TimeHACK/v14/.suo | Bin 62976 -> 74240 bytes TimeHACK.Main/Program.cs | 2 ++ TimeHACK.Main/Properties/Resources.resx | 3 +++ TimeHACK.Main/TimeHACK.Main.csproj | 2 ++ TimeHACK.Main/TitleScreen.cs | 5 +++++ 5 files changed, 12 insertions(+) diff --git a/.vs/TimeHACK/v14/.suo b/.vs/TimeHACK/v14/.suo index cbb0d77..0515285 100644 Binary files a/.vs/TimeHACK/v14/.suo and b/.vs/TimeHACK/v14/.suo differ diff --git a/TimeHACK.Main/Program.cs b/TimeHACK.Main/Program.cs index 56b0bf8..e910d08 100644 --- a/TimeHACK.Main/Program.cs +++ b/TimeHACK.Main/Program.cs @@ -1,4 +1,5 @@ using System; +using System.Drawing.Text; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; @@ -9,6 +10,7 @@ namespace TimeHACK static class Program { internal static string gameID; + /// /// The main entry point for the application. /// Run TitleScreen.cs at launch. diff --git a/TimeHACK.Main/Properties/Resources.resx b/TimeHACK.Main/Properties/Resources.resx index 033b11d..44a0a3b 100644 --- a/TimeHACK.Main/Properties/Resources.resx +++ b/TimeHACK.Main/Properties/Resources.resx @@ -256,4 +256,7 @@ ..\resources\titlescreen\taskbarclock.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + ..\Resources\LeviWindows.ttf;System.Byte[], mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + \ No newline at end of file diff --git a/TimeHACK.Main/TimeHACK.Main.csproj b/TimeHACK.Main/TimeHACK.Main.csproj index d8bcf76..b3db64f 100644 --- a/TimeHACK.Main/TimeHACK.Main.csproj +++ b/TimeHACK.Main/TimeHACK.Main.csproj @@ -222,6 +222,8 @@ + + diff --git a/TimeHACK.Main/TitleScreen.cs b/TimeHACK.Main/TitleScreen.cs index afc8dab..8b9d0b4 100644 --- a/TimeHACK.Main/TitleScreen.cs +++ b/TimeHACK.Main/TitleScreen.cs @@ -8,6 +8,8 @@ namespace TimeHACK { public partial class TitleScreen : Form { + System.Drawing.Text.PrivateFontCollection pfc = new System.Drawing.Text.PrivateFontCollection(); + public TitleScreen() { InitializeComponent(); @@ -25,6 +27,9 @@ namespace TimeHACK // Set GameVersion gameversion.Text = "TimeHACK " + Program.gameID + " by AShifter"; + // Initialize Font + pfc.AddFontFile(AppDomain.CurrentDomain.BaseDirectory + "\\LeviWindows.ttf"); + // Start the VM Mode timer vmModeTimer.Start(); } -- cgit v1.2.3