added font part2

This commit is contained in:
lempamo 2017-03-25 19:22:45 -04:00
parent e7c98b0d10
commit f7b024c4b8
5 changed files with 12 additions and 0 deletions

Binary file not shown.

View file

@ -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.

View file

@ -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>

View file

@ -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" />

View file

@ -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 @@ private void TitleScreen_Load(object sender, EventArgs e)
// 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();
}