aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlempamo <[email protected]>2017-03-25 19:22:45 -0400
committerlempamo <[email protected]>2017-03-25 19:22:45 -0400
commitf7b024c4b804ce64a00e62cb2655ae9c10bbd567 (patch)
tree20a6265043bf35e96e81a9b9de20be4e06e09aab
parente7c98b0d10568df4c3e4a72c26088d1fd6d62ec6 (diff)
downloadhistacom2-f7b024c4b804ce64a00e62cb2655ae9c10bbd567.tar.gz
histacom2-f7b024c4b804ce64a00e62cb2655ae9c10bbd567.tar.bz2
histacom2-f7b024c4b804ce64a00e62cb2655ae9c10bbd567.zip
added font part2
-rw-r--r--.vs/TimeHACK/v14/.suobin62976 -> 74240 bytes
-rw-r--r--TimeHACK.Main/Program.cs2
-rw-r--r--TimeHACK.Main/Properties/Resources.resx3
-rw-r--r--TimeHACK.Main/TimeHACK.Main.csproj2
-rw-r--r--TimeHACK.Main/TitleScreen.cs5
5 files changed, 12 insertions, 0 deletions
diff --git a/.vs/TimeHACK/v14/.suo b/.vs/TimeHACK/v14/.suo
index cbb0d77..0515285 100644
--- a/.vs/TimeHACK/v14/.suo
+++ b/.vs/TimeHACK/v14/.suo
Binary files 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;
+
/// <summary>
/// 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 @@
<data name="TaskBarClock" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\resources\titlescreen\taskbarclock.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
+ <data name="LeviWindows" type="System.Resources.ResXFileRef, System.Windows.Forms">
+ <value>..\Resources\LeviWindows.ttf;System.Byte[], mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
+ </data>
</root> \ 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 @@
<Content Include="Resources\TitleScreen\TaskBarClock.png" />
<Content Include="Resources\TitleScreen\TimeHACK_Logo.png" />
<Content Include="Resources\TitleScreen\TitleScreenBG.png" />
+ <None Include="Resources\LeviWindows.ttf" />
+ <None Include="Resources\WinClassicFont.bmp" />
<Content Include="Resources\WinClassic\16Color.png" />
<Content Include="Resources\WinClassic\256Color.png" />
<Content Include="Resources\WinClassic\TrueColor.png" />
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();
}