Button size schenanigans

This commit is contained in:
Asriel Camora
2023-07-23 04:19:23 +04:00
parent 1f39be40c8
commit 20e3dcf758
4 changed files with 29 additions and 18 deletions
+3
View File
@@ -9,6 +9,9 @@ namespace Craftimizer.Plugin;
internal static class ImGuiUtils
{
public static float ButtonHeight =>
ImGui.CalcTextSize("A").Y + (ImGui.GetStyle().FramePadding.Y * 2);
private static readonly Stack<(Vector2 Min, Vector2 Max)> GroupPanelLabelStack = new();
// Adapted from https://github.com/ocornut/imgui/issues/1496#issuecomment-655048353