diff --git a/.vs/NSModCreator/DesignTimeBuild/.dtbcache.v2 b/.vs/NSModCreator/DesignTimeBuild/.dtbcache.v2 index 7f9b5e0..63eab99 100644 Binary files a/.vs/NSModCreator/DesignTimeBuild/.dtbcache.v2 and b/.vs/NSModCreator/DesignTimeBuild/.dtbcache.v2 differ diff --git a/.vs/NSModCreator/project-colors.json b/.vs/NSModCreator/project-colors.json new file mode 100644 index 0000000..7307d01 --- /dev/null +++ b/.vs/NSModCreator/project-colors.json @@ -0,0 +1,11 @@ +{ + "Version": 1, + "ProjectMap": { + "5d354e3f-ea1a-4fcc-9228-fefa125bcfa8": { + "ProjectGuid": "5d354e3f-ea1a-4fcc-9228-fefa125bcfa8", + "DisplayName": "NSModCreator", + "ColorIndex": 0 + } + }, + "NextColorIndex": 1 +} \ No newline at end of file diff --git a/.vs/NSModCreator/v17/.futdcache.v1 b/.vs/NSModCreator/v17/.futdcache.v1 new file mode 100644 index 0000000..9d71e4b Binary files /dev/null and b/.vs/NSModCreator/v17/.futdcache.v1 differ diff --git a/.vs/NSModCreator/v17/.suo b/.vs/NSModCreator/v17/.suo new file mode 100644 index 0000000..cf68744 Binary files /dev/null and b/.vs/NSModCreator/v17/.suo differ diff --git a/NSModCreator/LocalizationAttachedPropertyHolder.cs b/NSModCreator/LocalizationAttachedPropertyHolder.cs new file mode 100644 index 0000000..4a4866c --- /dev/null +++ b/NSModCreator/LocalizationAttachedPropertyHolder.cs @@ -0,0 +1,57 @@ +using Avalonia; +using Avalonia.Controls; +using NSModCreator.Localizations; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace NSModCreator.Localizations +{ + public class LocalizationAttachedPropertyHolder + { + public static AvaloniaProperty UidProperty = + AvaloniaProperty.RegisterAttached("Uid"); + + static LocalizationAttachedPropertyHolder() + { + TextBlock.TextProperty.Changed.Subscribe(next => + { + var uid = GetUid((AvaloniaObject)next.Sender); + if (uid != null) + { + next.Sender.SetValue(TextBlock.TextProperty, AppResources.ResourceManager.GetString(uid.ToString())); + } + }); + + ContentControl.ContentProperty.Changed.Subscribe(next => + { + var uid = GetUid((AvaloniaObject)next.Sender); + if (uid != null) + { + next.Sender.SetValue(ContentControl.ContentProperty, AppResources.ResourceManager.GetString(uid.ToString())); + } + }); + + TextBox.WatermarkProperty.Changed.Subscribe(next => + { + var uid = GetUid((AvaloniaObject)next.Sender); + if (uid != null) + { + next.Sender.SetValue(TextBox.WatermarkProperty, AppResources.ResourceManager.GetString(uid.ToString())); + } + }); + } + + public static void SetUid(AvaloniaObject target, string value) + { + target.SetValue(UidProperty, value); + } + + public static string GetUid(AvaloniaObject target) + { + return (string)target.GetValue(UidProperty); + } + } +} diff --git a/NSModCreator/Localizations/AppResources.Designer.cs b/NSModCreator/Localizations/AppResources.Designer.cs new file mode 100644 index 0000000..30dde61 --- /dev/null +++ b/NSModCreator/Localizations/AppResources.Designer.cs @@ -0,0 +1,324 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Runtime Version:4.0.30319.42000 +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +namespace NSModCreator.Localizations { + 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", "17.0.0.0")] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] + internal class AppResources { + + private static global::System.Resources.ResourceManager resourceMan; + + private static global::System.Globalization.CultureInfo resourceCulture; + + [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")] + internal AppResources() { + } + + /// + /// 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("NSModCreator.Localizations.AppResources", typeof(AppResources).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 Takyon's Mod Creator. + /// + internal static string AppName { + get { + return ResourceManager.GetString("AppName", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Browse. + /// + internal static string BrowseButton { + get { + return ResourceManager.GetString("BrowseButton", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Clear. + /// + internal static string ClearButton { + get { + return ResourceManager.GetString("ClearButton", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Create. + /// + internal static string CreateButton { + get { + return ResourceManager.GetString("CreateButton", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Create. + /// + internal static string CreateTab { + get { + return ResourceManager.GetString("CreateTab", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to For help hover over the labels. + /// + internal static string HelpText { + get { + return ResourceManager.GetString("HelpText", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Icon Path. + /// + internal static string IconPath { + get { + return ResourceManager.GetString("IconPath", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Install Folder. + /// + internal static string InstallFolder { + get { + return ResourceManager.GetString("InstallFolder", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to English. + /// + internal static string LangButton { + get { + return ResourceManager.GetString("LangButton", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Load Priority. + /// + internal static string LoadPriority { + get { + return ResourceManager.GetString("LoadPriority", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Dependencies. + /// + internal static string ModDependencies { + get { + return ResourceManager.GetString("ModDependencies", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Description. + /// + internal static string ModDescriptionLabel { + get { + return ResourceManager.GetString("ModDescriptionLabel", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to This is a very cool mod that only does cool stuff. + /// + internal static string ModDescWatermark { + get { + return ResourceManager.GetString("ModDescWatermark", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Mod Folder. + /// + internal static string ModFolder { + get { + return ResourceManager.GetString("ModFolder", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Mod Name. + /// + internal static string ModName { + get { + return ResourceManager.GetString("ModName", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to YourName.ModName. + /// + internal static string ModNameWatermark { + get { + return ResourceManager.GetString("ModNameWatermark", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Output Folder. + /// + internal static string OutputFolder { + get { + return ResourceManager.GetString("OutputFolder", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Publish. + /// + internal static string PublishTab { + get { + return ResourceManager.GetString("PublishTab", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to RequiredOnClient. + /// + internal static string RequiredOnClient { + get { + return ResourceManager.GetString("RequiredOnClient", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Run on. + /// + internal static string RunOn { + get { + return ResourceManager.GetString("RunOn", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Path to the mod icon. 256x256 and PNG. + /// + internal static string ToolTipIconPath { + get { + return ResourceManager.GetString("ToolTipIconPath", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Path where the mod will be installed. + /// + internal static string ToolTipInstallFolder { + get { + return ResourceManager.GetString("ToolTipInstallFolder", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Doesn't matter for most projects and can be left default. May be the reason for mods conflicting however. + /// + internal static string ToolTipLoadPriority { + get { + return ResourceManager.GetString("ToolTipLoadPriority", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Path to the mod you want to release. + /// + internal static string ToolTipModFolder { + get { + return ResourceManager.GetString("ToolTipModFolder", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Path where the release will be stored. + /// + internal static string ToolTipOutputFolder { + get { + return ResourceManager.GetString("ToolTipOutputFolder", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Whether or not your mod is required on Client. True for mods that modify client files, false for server only. + /// + internal static string ToolTipRequiredOnClient { + get { + return ResourceManager.GetString("ToolTipRequiredOnClient", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Depends on where your scripts are going to run. + /// + internal static string ToolTipRunOn { + get { + return ResourceManager.GetString("ToolTipRunOn", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Version. + /// + internal static string Version { + get { + return ResourceManager.GetString("Version", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Website. + /// + internal static string Website { + get { + return ResourceManager.GetString("Website", resourceCulture); + } + } + } +} diff --git a/NSModCreator/Localizations/AppResources.de-DE.resx b/NSModCreator/Localizations/AppResources.de-DE.resx new file mode 100644 index 0000000..26f98a1 --- /dev/null +++ b/NSModCreator/Localizations/AppResources.de-DE.resx @@ -0,0 +1,207 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + Takyon's Mod Creator + + + Browse + + + Clear + + + Create + + + Create + + + For help hover over the labels + + + Icon Path + + + Install Folder + + + Deutsch + + + Load Priority + + + Dependencies + + + Description + + + This is a very cool mod that only does cool stuff + + + Mod Folder + + + Mod Name + + + YourName.ModName + + + Output Folder + + + Publish + + + RequiredOnClient + + + Run on + + + Path to the mod icon. 256x256 and PNG + + + Path where the mod will be installed + + + Doesn't matter for most projects and can be left default. May be the reason for mods conflicting however + + + Path to the mod you want to release + + + Path where the release will be stored + + + Whether or not your mod is required on Client. True for mods that modify client files, false for server only + + + Depends on where your scripts are going to run + + + Version + + + Website + + \ No newline at end of file diff --git a/NSModCreator/Localizations/AppResources.es.resx b/NSModCreator/Localizations/AppResources.es.resx new file mode 100644 index 0000000..26f98a1 --- /dev/null +++ b/NSModCreator/Localizations/AppResources.es.resx @@ -0,0 +1,207 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + Takyon's Mod Creator + + + Browse + + + Clear + + + Create + + + Create + + + For help hover over the labels + + + Icon Path + + + Install Folder + + + Deutsch + + + Load Priority + + + Dependencies + + + Description + + + This is a very cool mod that only does cool stuff + + + Mod Folder + + + Mod Name + + + YourName.ModName + + + Output Folder + + + Publish + + + RequiredOnClient + + + Run on + + + Path to the mod icon. 256x256 and PNG + + + Path where the mod will be installed + + + Doesn't matter for most projects and can be left default. May be the reason for mods conflicting however + + + Path to the mod you want to release + + + Path where the release will be stored + + + Whether or not your mod is required on Client. True for mods that modify client files, false for server only + + + Depends on where your scripts are going to run + + + Version + + + Website + + \ No newline at end of file diff --git a/NSModCreator/Localizations/AppResources.fr.resx b/NSModCreator/Localizations/AppResources.fr.resx new file mode 100644 index 0000000..26f98a1 --- /dev/null +++ b/NSModCreator/Localizations/AppResources.fr.resx @@ -0,0 +1,207 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + Takyon's Mod Creator + + + Browse + + + Clear + + + Create + + + Create + + + For help hover over the labels + + + Icon Path + + + Install Folder + + + Deutsch + + + Load Priority + + + Dependencies + + + Description + + + This is a very cool mod that only does cool stuff + + + Mod Folder + + + Mod Name + + + YourName.ModName + + + Output Folder + + + Publish + + + RequiredOnClient + + + Run on + + + Path to the mod icon. 256x256 and PNG + + + Path where the mod will be installed + + + Doesn't matter for most projects and can be left default. May be the reason for mods conflicting however + + + Path to the mod you want to release + + + Path where the release will be stored + + + Whether or not your mod is required on Client. True for mods that modify client files, false for server only + + + Depends on where your scripts are going to run + + + Version + + + Website + + \ No newline at end of file diff --git a/NSModCreator/Localizations/AppResources.resx b/NSModCreator/Localizations/AppResources.resx new file mode 100644 index 0000000..593cf19 --- /dev/null +++ b/NSModCreator/Localizations/AppResources.resx @@ -0,0 +1,207 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + Takyon's Mod Creator + + + Browse + + + Clear + + + Create + + + Create + + + For help hover over the labels + + + Icon Path + + + Install Folder + + + English + + + Load Priority + + + Dependencies + + + Description + + + This is a very cool mod that only does cool stuff + + + Mod Folder + + + Mod Name + + + YourName.ModName + + + Output Folder + + + Publish + + + RequiredOnClient + + + Run on + + + Path to the mod icon. 256x256 and PNG + + + Path where the mod will be installed + + + Doesn't matter for most projects and can be left default. May be the reason for mods conflicting however + + + Path to the mod you want to release + + + Path where the release will be stored + + + Whether or not your mod is required on Client. True for mods that modify client files, false for server only + + + Depends on where your scripts are going to run + + + Version + + + Website + + \ No newline at end of file diff --git a/NSModCreator/Localizations/AppResources.ru.resx b/NSModCreator/Localizations/AppResources.ru.resx new file mode 100644 index 0000000..26f98a1 --- /dev/null +++ b/NSModCreator/Localizations/AppResources.ru.resx @@ -0,0 +1,207 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + Takyon's Mod Creator + + + Browse + + + Clear + + + Create + + + Create + + + For help hover over the labels + + + Icon Path + + + Install Folder + + + Deutsch + + + Load Priority + + + Dependencies + + + Description + + + This is a very cool mod that only does cool stuff + + + Mod Folder + + + Mod Name + + + YourName.ModName + + + Output Folder + + + Publish + + + RequiredOnClient + + + Run on + + + Path to the mod icon. 256x256 and PNG + + + Path where the mod will be installed + + + Doesn't matter for most projects and can be left default. May be the reason for mods conflicting however + + + Path to the mod you want to release + + + Path where the release will be stored + + + Whether or not your mod is required on Client. True for mods that modify client files, false for server only + + + Depends on where your scripts are going to run + + + Version + + + Website + + \ No newline at end of file diff --git a/NSModCreator/Localizations/AppResources.zh-Hans.resx b/NSModCreator/Localizations/AppResources.zh-Hans.resx new file mode 100644 index 0000000..ac8adf8 --- /dev/null +++ b/NSModCreator/Localizations/AppResources.zh-Hans.resx @@ -0,0 +1,207 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + Takyon的Mod生成器 + + + 浏览... + + + 清空 + + + 生成 + + + 创建 + + + 悬浮光标在文字上可以查看帮助信息 + + + 图标路径 + + + 安装路径 + + + 中文 + + + 读取优先级 + + + 前置Mods + + + Mod介绍 + + + 这是一个很酷炫的Mod... + + + Mod文件夹 + + + Mod名称 + + + 你的名称.Mod的名称 + + + 输出文件夹 + + + 发布 + + + 需要客户端安装 + + + 执行于 + + + Mod图标的路径,需要 256x256 的PNG图片 + + + Mod的安装路径 + + + 对大部分项目来说这个并不重要,但修改这个可能会解决与其他Mod的部分兼容性问题 + + + 用于发布Mod的文件夹 + + + 用于输出Mod的文件夹 + + + 是否需要你的Mod被安装到客户端,如果你修改了客户端文件请勾选此项,服务器Mod请留空。 + + + 选择脚本运行的环境 ( 运行在服务器上或客户端上,或服务器与客户端同时运行 ) + + + 版本 + + + 网站 + + \ No newline at end of file diff --git a/NSModCreator/MainWindow.axaml b/NSModCreator/MainWindow.axaml index 445b575..3cd9e71 100644 --- a/NSModCreator/MainWindow.axaml +++ b/NSModCreator/MainWindow.axaml @@ -1,29 +1,37 @@ + Title="NSModCreator" WindowStartupLocation="CenterScreen" Background="#424242" MinWidth="800" MinHeight="450"> + + Create + - Takyon's Mod Creator - For help hover over the labels + Text="Takyon's Mod Creator" + For help hover over the labels - + - - - + + -