Move support button, improve text alignment in support log
This commit is contained in:
@@ -60,29 +60,29 @@ public class SupportLogBuilderService
|
|||||||
sb.Append($"> **`Count: `** {_templateManager.Templates.Count}\n");
|
sb.Append($"> **`Count: `** {_templateManager.Templates.Count}\n");
|
||||||
foreach (var template in _templateManager.Templates)
|
foreach (var template in _templateManager.Templates)
|
||||||
{
|
{
|
||||||
sb.Append($"> > **`{template.ToString(),-29}`**\n");
|
sb.Append($"> > **`{template.ToString(),-32}`**\n");
|
||||||
}
|
}
|
||||||
sb.AppendLine("**Profiles**");
|
sb.AppendLine("**Profiles**");
|
||||||
sb.Append($"> **`Count: `** {_profileManager.Profiles.Count}\n");
|
sb.Append($"> **`Count: `** {_profileManager.Profiles.Count}\n");
|
||||||
foreach (var profile in _profileManager.Profiles)
|
foreach (var profile in _profileManager.Profiles)
|
||||||
{
|
{
|
||||||
sb.Append($"> > =====\n");
|
sb.Append($"> > =====\n");
|
||||||
sb.Append($"> > **`{profile.ToString(),-29}`*\n");
|
sb.Append($"> > **`{profile.ToString(),-32}`*\n");
|
||||||
sb.Append($"> > **`Name: {profile.Name.Text.Incognify()}`**\n");
|
sb.Append($"> > **`Name: `** {profile.Name.Text.Incognify()}\n");
|
||||||
sb.Append($"> > **`Type: {profile.ProfileType}`**\n");
|
sb.Append($"> > **`Type: `** {profile.ProfileType} \n");
|
||||||
sb.Append($"> > **`Character name: {profile.CharacterName.Text.Incognify()}`**\n");
|
sb.Append($"> > **`Character name: `** {profile.CharacterName.Text.Incognify()}\n");
|
||||||
sb.Append($"> > **`Limit to my creatures: {profile.LimitLookupToOwnedObjects}`**\n");
|
sb.Append($"> > **`Limit to my creatures: `** {profile.LimitLookupToOwnedObjects}\n");
|
||||||
sb.Append($"> > **`Templates:`**\n");
|
sb.Append($"> > **`Templates:`**\n");
|
||||||
sb.Append($"> > > **`Count: {profile.Templates.Count}`**\n");
|
sb.Append($"> > > **`Count: `** {profile.Templates.Count}\n");
|
||||||
foreach (var template in profile.Templates)
|
foreach (var template in profile.Templates)
|
||||||
{
|
{
|
||||||
sb.Append($"> > > **`{template.ToString()}`**\n");
|
sb.Append($"> > > **`{template.ToString(), -32}`**\n");
|
||||||
}
|
}
|
||||||
sb.Append($"> > **`Armatures:`**\n");
|
sb.Append($"> > **`Armatures:`**\n");
|
||||||
sb.Append($"> > > **`Count: {profile.Armatures.Count}`**\n");
|
sb.Append($"> > > **`Count: `** {profile.Armatures.Count}\n");
|
||||||
foreach (var armature in profile.Armatures)
|
foreach (var armature in profile.Armatures)
|
||||||
{
|
{
|
||||||
sb.Append($"> > > **`{armature.ToString()}`**\n");
|
sb.Append($"> > > **`{armature.ToString(), -32}`**\n");
|
||||||
}
|
}
|
||||||
sb.Append($"> > =====\n");
|
sb.Append($"> > =====\n");
|
||||||
}
|
}
|
||||||
@@ -93,14 +93,13 @@ public class SupportLogBuilderService
|
|||||||
var identifier = kvPair.Key;
|
var identifier = kvPair.Key;
|
||||||
var armature = kvPair.Value;
|
var armature = kvPair.Value;
|
||||||
sb.Append($"> > =====\n");
|
sb.Append($"> > =====\n");
|
||||||
sb.Append($"> > **`{armature.ToString(),-29}`**\n");
|
sb.Append($"> > **`{armature.ToString(),-32}`**\n");
|
||||||
sb.Append($"> > **`Actor: {armature.ActorIdentifier.Incognito(null) ?? "None"}`**\n");
|
sb.Append($"> > **`Actor: `** {armature.ActorIdentifier.Incognito(null) ?? "None"}\n");
|
||||||
sb.Append($"> > **`Built: {armature.IsBuilt}`**\n");
|
sb.Append($"> > **`Built: `** {armature.IsBuilt}\n");
|
||||||
sb.Append($"> > **`Visible: {armature.IsVisible}`**\n");
|
sb.Append($"> > **`Visible: `** {armature.IsVisible}\n");
|
||||||
sb.Append($"> > **`Pending rebind: {armature.IsPendingProfileRebind}`**\n");
|
sb.Append($"> > **`Pending rebind: `** {armature.IsPendingProfileRebind}\n");
|
||||||
sb.Append($"> > **`Last seen: {armature.LastSeen}`**\n");
|
sb.Append($"> > **`Last seen: `** {armature.LastSeen}\n");
|
||||||
sb.Append($"> > **`Profile: {armature.Profile?.ToString() ?? "None"}`**\n");
|
sb.Append($"> > **`Profile: `** {armature.Profile?.ToString() ?? "None"}\n");
|
||||||
sb.Append($"> > **`Main Root Bone/Total Bones/Partial Skeleton Count: {armature.MainRootBone}/{armature.TotalBoneCount}/{armature.PartialSkeletonCount}`**\n");
|
|
||||||
sb.Append($"> > **`Bone template bindings:`**\n");
|
sb.Append($"> > **`Bone template bindings:`**\n");
|
||||||
foreach (var bindingKvPair in armature.BoneTemplateBinding)
|
foreach (var bindingKvPair in armature.BoneTemplateBinding)
|
||||||
{
|
{
|
||||||
@@ -128,7 +127,7 @@ public class SupportLogBuilderService
|
|||||||
foreach (var plugin in relevantPlugins)
|
foreach (var plugin in relevantPlugins)
|
||||||
{
|
{
|
||||||
if (plugins.TryGetValue(plugin, out var data))
|
if (plugins.TryGetValue(plugin, out var data))
|
||||||
sb.Append($"> **`{data.Name + ':',-29}`** {data.Version}{(data.IsLoaded ? string.Empty : " (Disabled)")}\n");
|
sb.Append($"> **`{data.Name + ':',-32}`** {data.Version}{(data.IsLoaded ? string.Empty : " (Disabled)")}\n");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -313,18 +313,18 @@ public class SettingsTab
|
|||||||
DrawDiscordButton(width);
|
DrawDiscordButton(width);
|
||||||
|
|
||||||
ImGui.SetCursorPos(new Vector2(xPos, 1 * ImGui.GetFrameHeightWithSpacing()));
|
ImGui.SetCursorPos(new Vector2(xPos, 1 * ImGui.GetFrameHeightWithSpacing()));
|
||||||
if (ImGui.Button("Show update history", new Vector2(width, 0)))
|
if (ImGui.Button("Copy Support Info to Clipboard"))
|
||||||
_changeLog.Changelog.ForceOpen = true;
|
{
|
||||||
|
|
||||||
ImGui.SetCursorPos(new Vector2(xPos, 2 * ImGui.GetFrameHeightWithSpacing()));
|
|
||||||
if (!ImGui.Button("Copy Support Info to Clipboard"))
|
|
||||||
return;
|
|
||||||
|
|
||||||
var text = _supportLogBuilderService.BuildSupportLog();
|
var text = _supportLogBuilderService.BuildSupportLog();
|
||||||
ImGui.SetClipboardText(text);
|
ImGui.SetClipboardText(text);
|
||||||
_messageService.NotificationMessage($"Copied Support Info to Clipboard.", NotificationType.Success, false);
|
_messageService.NotificationMessage($"Copied Support Info to Clipboard.", NotificationType.Success, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ImGui.SetCursorPos(new Vector2(xPos, 2 * ImGui.GetFrameHeightWithSpacing()));
|
||||||
|
if (ImGui.Button("Show update history", new Vector2(width, 0)))
|
||||||
|
_changeLog.Changelog.ForceOpen = true;
|
||||||
|
}
|
||||||
|
|
||||||
/// <summary> Draw a button to open the official discord server. </summary>
|
/// <summary> Draw a button to open the official discord server. </summary>
|
||||||
private void DrawDiscordButton(float width)
|
private void DrawDiscordButton(float width)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user