feat: add skeleton view button
This commit is contained in:
parent
9ffb0e7854
commit
6997af9431
|
@ -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");
|
||||
|
|
Loading…
Reference in New Issue