diff --git a/OSCCollar/ConsoleOutput.cs b/OSCCollar/ConsoleOutput.cs index 209bd87..f930160 100644 --- a/OSCCollar/ConsoleOutput.cs +++ b/OSCCollar/ConsoleOutput.cs @@ -30,7 +30,7 @@ public partial class OSCCollar variableTable.AddColumn("OscVar"); variableTable.AddColumn("Value"); - layout["Top"].Update(new FigletText(FigletFont.Load("Alligator.flf"), "OSC Collar").LeftJustified()); + layout["Top"].Update(new FigletText(FigletFont.Parse(Resources.alligatorFont), "OSC Collar").LeftJustified()); layout["Config-Values"].Update(configTable); layout["Variable-Values"].Update(variableTable); layout["Position"].Update(new Panel(new Text(GetCoordinateSystem()))); diff --git a/OSCCollar/OSCCollar.csproj b/OSCCollar/OSCCollar.csproj index 95450ec..133e243 100644 --- a/OSCCollar/OSCCollar.csproj +++ b/OSCCollar/OSCCollar.csproj @@ -24,8 +24,23 @@ - Always + Never + + + ResXFileCodeGenerator + Resources.Designer.cs + + + + + + True + True + Resources.resx + + + diff --git a/OSCCollar/Resources.Designer.cs b/OSCCollar/Resources.Designer.cs new file mode 100644 index 0000000..5add5e3 --- /dev/null +++ b/OSCCollar/Resources.Designer.cs @@ -0,0 +1,104 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +namespace VRC_Console { + using System; + + + /// + /// A strongly-typed resource class, for looking up localized strings, etc. + /// + // This class was auto-generated by the StronglyTypedResourceBuilder + // class via a tool like ResGen or Visual Studio. + // To add or remove a member, edit your .ResX file then rerun ResGen + // with the /str option, or rebuild your VS project. + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] + internal class Resources { + + private static global::System.Resources.ResourceManager resourceMan; + + private static global::System.Globalization.CultureInfo resourceCulture; + + [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")] + internal Resources() { + } + + /// + /// Returns the cached ResourceManager instance used by this class. + /// + [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] + internal static global::System.Resources.ResourceManager ResourceManager { + get { + if (object.ReferenceEquals(resourceMan, null)) { + global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("VRC_Console.Resources", typeof(Resources).Assembly); + resourceMan = temp; + } + return resourceMan; + } + } + + /// + /// Overrides the current thread's CurrentUICulture property for all + /// resource lookups using this strongly typed resource class. + /// + [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] + internal static global::System.Globalization.CultureInfo Culture { + get { + return resourceCulture; + } + set { + resourceCulture = value; + } + } + + /// + /// Looks up a localized string similar to flf2a$ 7 7 26 32 3 + ///Alligator by Simon Bradley <syb3@aber.ac.uk> + ///17th June, 1994 + /// + ///$ $@ + ///$ $@ + ///$ $@ + ///$ $@ + ///$ $@ + ///$ $@ + ///$ $@@ + /// :::$@ + /// :+:$ @ + /// +:+$ @ + /// +#+$ @ + /// +#+$ @ + /// $ $ @ + ///###$ @@ + /// ::: :::$@ + /// :+: :+:$ @ + /// $ $ @ + /// $ $ @ + /// $ $ @ + /// $ $ @ + ///$ $ @@ + /// ::: :::$ @ + /// :+: :+:$ @ + /// +:+:+:+:+:+:+:+$@ + /// +#+ +:+$ @ + ///+#+#+#+#+#+#+#+$ @ + /// #+# #+#$ @ + /// ### ###$ @@ + /// :::$ @ + /// [rest of string was truncated]";. + /// + internal static string alligatorFont { + get { + return ResourceManager.GetString("alligatorFont", resourceCulture); + } + } + } +} diff --git a/OSCCollar/Resources.resx b/OSCCollar/Resources.resx new file mode 100644 index 0000000..6526475 --- /dev/null +++ b/OSCCollar/Resources.resx @@ -0,0 +1,24 @@ + + + + + + + + + + text/microsoft-resx + + + 1.3 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + Alligator.flf;System.String, mscorlib, Version=4.0.0.0, Culture=neutral + + \ No newline at end of file diff --git a/VRC_Collar.sln.DotSettings.user b/VRC_Collar.sln.DotSettings.user index a2ed6d6..ddaf78c 100644 --- a/VRC_Collar.sln.DotSettings.user +++ b/VRC_Collar.sln.DotSettings.user @@ -1,2 +1,4 @@  - True \ No newline at end of file + True + True + True \ No newline at end of file