# HG changeset patch # User Alys Brooks # Date 2021-07-13 02:46:46 # Node ID dea101eaaedad65891311c4c9e0bce9cedd02019 # Parent 1936e6b7a8a6f901a0ee6da0d2eb942bb8ccab40 Add approximate adjustment to menubar. diff --git a/isometric-park-fna/UI/Menu.cs b/isometric-park-fna/UI/Menu.cs --- a/isometric-park-fna/UI/Menu.cs +++ b/isometric-park-fna/UI/Menu.cs @@ -42,7 +42,12 @@ { ImGui.Text(header); - ImGui.SetCursorPosX(width - 520); + + var dimensions = ImGui.CalcTextSize("X Contracts $ Budget X Forest X News X | Pause 1 2 3 4 5") ; + + // ImGui.SetCursorPosX(width - 520); + // Add 12 pixels for each button, plus separator + ImGui.SetCursorPosX(width - (dimensions.X + 11*12)); if (Menu.activeButton("\ue0c2 Contracts", bridgeEngine.windowStatuses[Window.Contracts], StyleSets.selected, StyleSets.white)) {