feat: add skeleton view button

This commit is contained in:
Anna 2024-02-18 15:54:48 -05:00
parent 9ffb0e7854
commit 6997af9431
Signed by: anna
GPG Key ID: D0943384CD9F87D1
1 changed files with 11 additions and 1 deletions

View File

@ -167,12 +167,22 @@ internal class DatabaseTab : ITab {
using var treePop = new OnDispose(ImGui.TreePop);
if (ImGui.Button("Open", new Vector2(ImGui.GetContentRegionAvail().X, 0))) {
var availWidth = ImGui.GetContentRegionAvail().X;
var buttonWidth = availWidth / 2 - ImGui.GetStyle().ItemSpacing.X;
if (ImGui.Button("Open", new Vector2(buttonWidth, 0))) {
Process.Start(new ProcessStartInfo(shot.Path) {
UseShellExecute = true,
});
}
ImGui.SameLine();
if (ImGui.Button("View", new Vector2(buttonWidth, 0))) {
// TODO: make image viewer
// TODO: draw dots where players are (on hover?)
}
if (ImGui.CollapsingHeader("Players visible in shot")) {
if (shot.Metadata.VisibleCharacters.Length == 0) {
ImGui.TextUnformatted("None");