Skip to content
This repository has been archived by the owner on Aug 28, 2024. It is now read-only.

Commit

Permalink
fix: change AssemblyInfo from list to table.
Browse files Browse the repository at this point in the history
  • Loading branch information
ArchiDog1998 committed Apr 11, 2023
1 parent 242ca55 commit ec4a0e5
Showing 1 changed file with 18 additions and 2 deletions.
20 changes: 18 additions & 2 deletions RotationSolver/UI/RotationConfigWindow_RotationDev.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
using Dalamud.Utility;
using RotationSolver.Localization;
using RotationSolver.Updaters;
using System.Diagnostics;
using System.Xml.Linq;

namespace RotationSolver.UI;
internal partial class RotationConfigWindow
Expand Down Expand Up @@ -90,9 +92,23 @@ private void DrawAssemblyInfos()
.Select(r => r.GetType().Assembly)
.ToHashSet();

foreach (var assembly in assemblies)
if(ImGui.BeginTable("AssemblyTable", 2))
{
ImGui.Text(assembly.GetName().Name + " - " + assembly.GetAuthor());
foreach (var assembly in assemblies)
{
ImGui.TableNextRow();
if (ImGui.Button(assembly.GetName().Name + assembly.GetName().Version))
{
if (!RotationLoadContext.AssemblyPaths.TryGetValue(assembly.GetName().Name, out var path))
path = assembly.Location;

Process.Start("explorer.exe", path);
}

ImGui.TableNextColumn();
ImGui.Text(assembly.GetAuthor());
}
ImGui.EndTable();
}
}
}

0 comments on commit ec4a0e5

Please sign in to comment.