From 432db7f23b9bc22a4f50da0115e3ab71b270818a Mon Sep 17 00:00:00 2001 From: Anna 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();