Add more info to the about page
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
<Project Sdk="Microsoft.NET.Sdk">
|
<Project Sdk="Microsoft.NET.Sdk">
|
||||||
|
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<Version>1.20.1</Version>
|
<Version>1.20.2</Version>
|
||||||
<TargetFramework>net8.0-windows</TargetFramework>
|
<TargetFramework>net8.0-windows</TargetFramework>
|
||||||
<ImplicitUsings>enable</ImplicitUsings>
|
<ImplicitUsings>enable</ImplicitUsings>
|
||||||
<Nullable>enable</Nullable>
|
<Nullable>enable</Nullable>
|
||||||
|
|||||||
+4
-1
@@ -1,5 +1,6 @@
|
|||||||
using System.Diagnostics;
|
using System.Diagnostics;
|
||||||
using System.Globalization;
|
using System.Globalization;
|
||||||
|
using System.Reflection;
|
||||||
using ChatTwo.Ipc;
|
using ChatTwo.Ipc;
|
||||||
using ChatTwo.Resources;
|
using ChatTwo.Resources;
|
||||||
using ChatTwo.Ui;
|
using ChatTwo.Ui;
|
||||||
@@ -37,8 +38,10 @@ public sealed class Plugin : IDalamudPlugin {
|
|||||||
[PluginService] internal static INotificationManager Notification { get; private set; } = null!;
|
[PluginService] internal static INotificationManager Notification { get; private set; } = null!;
|
||||||
[PluginService] internal static IAddonLifecycle AddonLifecycle { 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 SettingsWindow SettingsWindow { get; }
|
||||||
public ChatLogWindow ChatLogWindow { get; }
|
public ChatLogWindow ChatLogWindow { get; }
|
||||||
public CommandHelpWindow CommandHelpWindow { get; }
|
public CommandHelpWindow CommandHelpWindow { get; }
|
||||||
|
|||||||
Generated
+55
-9
@@ -1059,14 +1059,6 @@ namespace ChatTwo.Resources {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <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.
|
/// Looks up a localized string similar to Copy link to clipboard.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
internal static string Context_CopyLink {
|
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>
|
/// <summary>
|
||||||
/// Looks up a localized string similar to Hide chat.
|
/// Looks up a localized string similar to Hide chat.
|
||||||
/// </summary>
|
/// </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>
|
/// <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..
|
/// 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>
|
/// </summary>
|
||||||
@@ -1436,7 +1446,7 @@ namespace ChatTwo.Resources {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <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>
|
/// </summary>
|
||||||
internal static string Options_About_CrowdIn {
|
internal static string Options_About_CrowdIn {
|
||||||
get {
|
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>
|
/// <summary>
|
||||||
/// Looks up a localized string similar to {0} is a project to completely recreate the in-game chat and make it even better..
|
/// Looks up a localized string similar to {0} is a project to completely recreate the in-game chat and make it even better..
|
||||||
/// </summary>
|
/// </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>
|
/// <summary>
|
||||||
/// Looks up a localized string similar to Allow moving chat.
|
/// Looks up a localized string similar to Allow moving chat.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|||||||
@@ -377,7 +377,7 @@
|
|||||||
<value>Click the button to the left to see what's being worked on and what's next.</value>
|
<value>Click the button to the left to see what's being worked on and what's next.</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="Options_About_CrowdIn">
|
<data name="Options_About_CrowdIn">
|
||||||
<value>Click the button to the left to help translate {0}.</value>
|
<value>Help to translate: </value>
|
||||||
</data>
|
</data>
|
||||||
<data name="Options_About_Translators">
|
<data name="Options_About_Translators">
|
||||||
<value>Translators</value>
|
<value>Translators</value>
|
||||||
@@ -899,4 +899,19 @@
|
|||||||
<data name="Context_URLWarning" xml:space="preserve">
|
<data name="Context_URLWarning" xml:space="preserve">
|
||||||
<value>Only open URLs from websites you trust</value>
|
<value>Only open URLs from websites you trust</value>
|
||||||
</data>
|
</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>
|
</root>
|
||||||
|
|||||||
@@ -37,14 +37,14 @@ public class SeStringDebugger : Window
|
|||||||
ImGui.TextUnformatted("SeString Content");
|
ImGui.TextUnformatted("SeString Content");
|
||||||
ImGui.Spacing();
|
ImGui.Spacing();
|
||||||
|
|
||||||
if (Plugin.Store.LastMessage.Sender == null)
|
if (Plugin.Store.LastMessage.Message == null)
|
||||||
{
|
{
|
||||||
ImGui.TextUnformatted("Nothing to show");
|
ImGui.TextUnformatted("Nothing to show");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
// TODO: Make SeString freely selectable through chat
|
// 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)
|
switch (payload)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -2,6 +2,8 @@ using System.Numerics;
|
|||||||
using ChatTwo.Resources;
|
using ChatTwo.Resources;
|
||||||
using ChatTwo.Util;
|
using ChatTwo.Util;
|
||||||
using Dalamud.Interface;
|
using Dalamud.Interface;
|
||||||
|
using Dalamud.Interface.Colors;
|
||||||
|
using Dalamud.Interface.Utility;
|
||||||
using ImGuiNET;
|
using ImGuiNET;
|
||||||
|
|
||||||
namespace ChatTwo.Ui.SettingsTabs;
|
namespace ChatTwo.Ui.SettingsTabs;
|
||||||
@@ -31,23 +33,40 @@ internal sealed class About : ISettingsTab {
|
|||||||
|
|
||||||
ImGui.TextUnformatted(string.Format(Language.Options_About_Opening, Plugin.PluginName));
|
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();
|
ImGui.Spacing();
|
||||||
|
|
||||||
if (ImGuiUtil.IconButton(FontAwesomeIcon.ExternalLinkAlt, "clickup"))
|
ImGui.TextUnformatted(Language.Options_About_Github_Issues);
|
||||||
{
|
|
||||||
Dalamud.Utility.Util.OpenLink("https://sharing.clickup.com/b/h/6-122378074-2/1047d21a39a4140");
|
|
||||||
}
|
|
||||||
|
|
||||||
ImGui.SameLine();
|
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"))
|
if (ImGuiUtil.IconButton(FontAwesomeIcon.ExternalLinkAlt, "crowdin"))
|
||||||
{
|
|
||||||
Dalamud.Utility.Util.OpenLink("https://crowdin.com/project/chattwo");
|
Dalamud.Utility.Util.OpenLink("https://crowdin.com/project/chattwo");
|
||||||
}
|
|
||||||
|
|
||||||
ImGui.SameLine();
|
|
||||||
ImGui.TextUnformatted(string.Format(Language.Options_About_CrowdIn, Plugin.PluginName));
|
|
||||||
|
|
||||||
ImGui.Spacing();
|
ImGui.Spacing();
|
||||||
|
|
||||||
@@ -68,7 +87,6 @@ internal sealed class About : ISettingsTab {
|
|||||||
ImGui.EndChild();
|
ImGui.EndChild();
|
||||||
}
|
}
|
||||||
|
|
||||||
ImGuiUtil.HelpText($"{Plugin.PluginName} v{GetType().Assembly.GetName().Version?.ToString(3)}");
|
|
||||||
ImGui.PopTextWrapPos();
|
ImGui.PopTextWrapPos();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user