Add more info to the about page
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<Version>1.20.1</Version>
|
||||
<Version>1.20.2</Version>
|
||||
<TargetFramework>net8.0-windows</TargetFramework>
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
<Nullable>enable</Nullable>
|
||||
|
||||
+4
-1
@@ -1,5 +1,6 @@
|
||||
using System.Diagnostics;
|
||||
using System.Globalization;
|
||||
using System.Reflection;
|
||||
using ChatTwo.Ipc;
|
||||
using ChatTwo.Resources;
|
||||
using ChatTwo.Ui;
|
||||
@@ -37,8 +38,10 @@ public sealed class Plugin : IDalamudPlugin {
|
||||
[PluginService] internal static INotificationManager Notification { get; private set; } = null!;
|
||||
[PluginService] internal static IAddonLifecycle AddonLifecycle { get; private set; } = null!;
|
||||
|
||||
public readonly WindowSystem WindowSystem = new(PluginName);
|
||||
public const string Authors = "Infi, Anna";
|
||||
public static readonly string Version = Assembly.GetExecutingAssembly().GetName().Version?.ToString(3) ?? "Unknown";
|
||||
|
||||
public readonly WindowSystem WindowSystem = new(PluginName);
|
||||
public SettingsWindow SettingsWindow { get; }
|
||||
public ChatLogWindow ChatLogWindow { get; }
|
||||
public CommandHelpWindow CommandHelpWindow { get; }
|
||||
|
||||
Generated
+55
-9
@@ -1059,14 +1059,6 @@ namespace ChatTwo.Resources {
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Copied message to clipboard.
|
||||
/// </summary>
|
||||
internal static string Context_CopySuccess {
|
||||
get {
|
||||
return ResourceManager.GetString("Context_CopySuccess", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// Looks up a localized string similar to Copy link to clipboard.
|
||||
/// </summary>
|
||||
internal static string Context_CopyLink {
|
||||
@@ -1084,6 +1076,15 @@ namespace ChatTwo.Resources {
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Copied message to clipboard.
|
||||
/// </summary>
|
||||
internal static string Context_CopySuccess {
|
||||
get {
|
||||
return ResourceManager.GetString("Context_CopySuccess", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Hide chat.
|
||||
/// </summary>
|
||||
@@ -1426,6 +1427,15 @@ namespace ChatTwo.Resources {
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Authors: .
|
||||
/// </summary>
|
||||
internal static string Options_About_Authors {
|
||||
get {
|
||||
return ResourceManager.GetString("Options_About_Authors", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Click the button to the left to see what's being worked on and what's next..
|
||||
/// </summary>
|
||||
@@ -1436,7 +1446,7 @@ namespace ChatTwo.Resources {
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Click the button to the left to help translate {0}..
|
||||
/// Looks up a localized string similar to Help to translate: .
|
||||
/// </summary>
|
||||
internal static string Options_About_CrowdIn {
|
||||
get {
|
||||
@@ -1444,6 +1454,33 @@ namespace ChatTwo.Resources {
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Discord: .
|
||||
/// </summary>
|
||||
internal static string Options_About_Discord {
|
||||
get {
|
||||
return ResourceManager.GetString("Options_About_Discord", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Get help in the discord thread: .
|
||||
/// </summary>
|
||||
internal static string Options_About_Discord_Thread {
|
||||
get {
|
||||
return ResourceManager.GetString("Options_About_Discord_Thread", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Get help through github issues: .
|
||||
/// </summary>
|
||||
internal static string Options_About_Github_Issues {
|
||||
get {
|
||||
return ResourceManager.GetString("Options_About_Github_Issues", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to {0} is a project to completely recreate the in-game chat and make it even better..
|
||||
/// </summary>
|
||||
@@ -1471,6 +1508,15 @@ namespace ChatTwo.Resources {
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Version: .
|
||||
/// </summary>
|
||||
internal static string Options_About_Version {
|
||||
get {
|
||||
return ResourceManager.GetString("Options_About_Version", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Allow moving chat.
|
||||
/// </summary>
|
||||
|
||||
@@ -377,7 +377,7 @@
|
||||
<value>Click the button to the left to see what's being worked on and what's next.</value>
|
||||
</data>
|
||||
<data name="Options_About_CrowdIn">
|
||||
<value>Click the button to the left to help translate {0}.</value>
|
||||
<value>Help to translate: </value>
|
||||
</data>
|
||||
<data name="Options_About_Translators">
|
||||
<value>Translators</value>
|
||||
@@ -871,7 +871,7 @@
|
||||
<data name="Options_TooltipOffset_Desc">
|
||||
<value>Use this option if you experience cut-off tooltips.</value>
|
||||
</data>
|
||||
|
||||
|
||||
<data name="Context_CopyContent">
|
||||
<value>Copy content</value>
|
||||
</data>
|
||||
@@ -899,4 +899,19 @@
|
||||
<data name="Context_URLWarning" xml:space="preserve">
|
||||
<value>Only open URLs from websites you trust</value>
|
||||
</data>
|
||||
<data name="Options_About_Authors" xml:space="preserve">
|
||||
<value>Authors: </value>
|
||||
</data>
|
||||
<data name="Options_About_Discord" xml:space="preserve">
|
||||
<value>Discord: </value>
|
||||
</data>
|
||||
<data name="Options_About_Version" xml:space="preserve">
|
||||
<value>Version: </value>
|
||||
</data>
|
||||
<data name="Options_About_Github_Issues" xml:space="preserve">
|
||||
<value>Get help through github issues: </value>
|
||||
</data>
|
||||
<data name="Options_About_Discord_Thread" xml:space="preserve">
|
||||
<value>Get help in the discord thread: </value>
|
||||
</data>
|
||||
</root>
|
||||
|
||||
@@ -37,14 +37,14 @@ public class SeStringDebugger : Window
|
||||
ImGui.TextUnformatted("SeString Content");
|
||||
ImGui.Spacing();
|
||||
|
||||
if (Plugin.Store.LastMessage.Sender == null)
|
||||
if (Plugin.Store.LastMessage.Message == null)
|
||||
{
|
||||
ImGui.TextUnformatted("Nothing to show");
|
||||
return;
|
||||
}
|
||||
|
||||
// TODO: Make SeString freely selectable through chat
|
||||
foreach (var payload in Plugin.Store.LastMessage.Sender.Payloads)
|
||||
foreach (var payload in Plugin.Store.LastMessage.Message.Payloads)
|
||||
{
|
||||
switch (payload)
|
||||
{
|
||||
@@ -316,4 +316,4 @@ public class SeStringDebugger : Window
|
||||
|
||||
ImGui.PopStyleVar();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -2,6 +2,8 @@ using System.Numerics;
|
||||
using ChatTwo.Resources;
|
||||
using ChatTwo.Util;
|
||||
using Dalamud.Interface;
|
||||
using Dalamud.Interface.Colors;
|
||||
using Dalamud.Interface.Utility;
|
||||
using ImGuiNET;
|
||||
|
||||
namespace ChatTwo.Ui.SettingsTabs;
|
||||
@@ -31,23 +33,40 @@ internal sealed class About : ISettingsTab {
|
||||
|
||||
ImGui.TextUnformatted(string.Format(Language.Options_About_Opening, Plugin.PluginName));
|
||||
|
||||
ImGuiHelpers.ScaledDummy(10.0f);
|
||||
|
||||
ImGui.TextUnformatted(Language.Options_About_Authors);
|
||||
ImGui.SameLine();
|
||||
ImGui.TextColored(ImGuiColors.ParsedGold, Plugin.Authors);
|
||||
|
||||
ImGui.TextUnformatted(Language.Options_About_Discord);
|
||||
ImGui.SameLine();
|
||||
ImGui.TextColored(ImGuiColors.ParsedGold, "@infi");
|
||||
|
||||
ImGui.TextUnformatted(Language.Options_About_Version);
|
||||
ImGui.SameLine();
|
||||
ImGui.TextColored(ImGuiColors.ParsedOrange, Plugin.Version);
|
||||
|
||||
ImGuiHelpers.ScaledDummy(10.0f);
|
||||
|
||||
ImGui.TextUnformatted(Language.Options_About_Discord_Thread);
|
||||
ImGui.SameLine();
|
||||
if (ImGuiUtil.IconButton(FontAwesomeIcon.ExternalLinkAlt, "discordThread"))
|
||||
Dalamud.Utility.Util.OpenLink("https://canary.discord.com/channels/581875019861328007/1224865018789761126");
|
||||
|
||||
ImGui.Spacing();
|
||||
|
||||
if (ImGuiUtil.IconButton(FontAwesomeIcon.ExternalLinkAlt, "clickup"))
|
||||
{
|
||||
Dalamud.Utility.Util.OpenLink("https://sharing.clickup.com/b/h/6-122378074-2/1047d21a39a4140");
|
||||
}
|
||||
|
||||
ImGui.TextUnformatted(Language.Options_About_Github_Issues);
|
||||
ImGui.SameLine();
|
||||
ImGui.TextUnformatted(Language.Options_About_ClickUp);
|
||||
if (ImGuiUtil.IconButton(FontAwesomeIcon.ExternalLinkAlt, "githubIssues"))
|
||||
Dalamud.Utility.Util.OpenLink("https://github.com/Infiziert90/ChatTwo/issues");
|
||||
|
||||
ImGuiHelpers.ScaledDummy(10.0f);
|
||||
|
||||
ImGui.TextUnformatted(Language.Options_About_CrowdIn);
|
||||
ImGui.SameLine();
|
||||
if (ImGuiUtil.IconButton(FontAwesomeIcon.ExternalLinkAlt, "crowdin"))
|
||||
{
|
||||
Dalamud.Utility.Util.OpenLink("https://crowdin.com/project/chattwo");
|
||||
}
|
||||
|
||||
ImGui.SameLine();
|
||||
ImGui.TextUnformatted(string.Format(Language.Options_About_CrowdIn, Plugin.PluginName));
|
||||
|
||||
ImGui.Spacing();
|
||||
|
||||
@@ -68,7 +87,6 @@ internal sealed class About : ISettingsTab {
|
||||
ImGui.EndChild();
|
||||
}
|
||||
|
||||
ImGuiUtil.HelpText($"{Plugin.PluginName} v{GetType().Assembly.GetName().Version?.ToString(3)}");
|
||||
ImGui.PopTextWrapPos();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user