1 parent a7cb971 commit a552691Copy full SHA for a552691
1 file changed
CentrED/Tools/MoveTool.cs
@@ -22,7 +22,8 @@ public class MoveTool : BaseTool
22
internal override void Draw()
23
{
24
base.Draw();
25
- var buttonSize = new Vector2(19, 19);
+ var buttonHeight = ImGui.GetFrameHeight();
26
+ var buttonSize = new Vector2(buttonHeight, buttonHeight);
27
var spacing = new Vector2(4, 4);
28
var totalWidth = 3 * buttonSize.X + 2 * spacing.X;
29
var xOffset = (ImGui.GetContentRegionAvail().X - totalWidth) / 2;
0 commit comments