From b1b0c7e23e86aad24f3fade1623bc50dab992209 Mon Sep 17 00:00:00 2001 From: Anna Clemens Date: Sat, 3 Sep 2022 22:53:37 -0400 Subject: [PATCH] oops --- client/PluginUi.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/client/PluginUi.cs b/client/PluginUi.cs index 77a836b..e82d560 100644 --- a/client/PluginUi.cs +++ b/client/PluginUi.cs @@ -349,7 +349,7 @@ public class PluginUi : IDisposable { if (ImGui.TableSetColumnIndex(0)) { var height = ImGui.GetContentRegionAvail().Y; var buttonHeight = ImGuiHelpers.GetButtonSize("<").Y; - ImGui.Dummy(new Vector2(1, height / 2 - buttonHeight / 2)); + ImGui.Dummy(new Vector2(1, height / 2 - buttonHeight / 2 - ImGui.GetStyle().ItemSpacing.Y)); if (this._viewerIdx == 0) { ImGui.BeginDisabled(); } @@ -363,7 +363,7 @@ public class PluginUi : IDisposable { } } - if (ImGui.TableSetColumnIndex(1) && this._viewerIdx > 0 && this._viewerIdx < nearby.Count) { + if (ImGui.TableSetColumnIndex(1) && this._viewerIdx > -1 && this._viewerIdx < nearby.Count) { var message = nearby[this._viewerIdx]; ImGui.TextUnformatted(message.Text); } @@ -371,7 +371,7 @@ public class PluginUi : IDisposable { if (ImGui.TableSetColumnIndex(2)) { var height = ImGui.GetContentRegionAvail().Y; var buttonHeight = ImGuiHelpers.GetButtonSize(">").Y; - ImGui.Dummy(new Vector2(1, height / 2 - buttonHeight / 2)); + ImGui.Dummy(new Vector2(1, height / 2 - buttonHeight / 2 - ImGui.GetStyle().ItemSpacing.Y)); if (this._viewerIdx == nearby.Count - 1) { ImGui.BeginDisabled();