From 64f718a1cd694be0952fd3700636d81ba05d30f0 Mon Sep 17 00:00:00 2001 From: Physcik Date: Sat, 7 Feb 2026 23:20:48 +0500 Subject: Dynamic menus --- engine/UI/FlexElement.go | 2 +- engine/UI/GridColumn.go | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) (limited to 'engine/UI') diff --git a/engine/UI/FlexElement.go b/engine/UI/FlexElement.go index 4ec0f35..b8107ee 100644 --- a/engine/UI/FlexElement.go +++ b/engine/UI/FlexElement.go @@ -37,7 +37,7 @@ func getWeightToPixelsRatio(base flexElement, totalSpace float32) float32 { if totalSpacing < 0 { totalSpacing = 0 } - rl.TraceLog(rl.LogInfo, "SpacingPx %v \t Total spacing: %v", spacingPx, totalSpacing) + // rl.TraceLog(rl.LogInfo, "SpacingPx %v \t Total spacing: %v", spacingPx, totalSpacing) return (totalSpace - totalSpacing) / totalWeights } diff --git a/engine/UI/GridColumn.go b/engine/UI/GridColumn.go index b933cf4..46c12ad 100644 --- a/engine/UI/GridColumn.go +++ b/engine/UI/GridColumn.go @@ -2,6 +2,8 @@ package ui import rl "github.com/gen2brain/raylib-go/raylib" +const GridColumnTypeName string = "gridcolumn" + type GridColumn struct { // A portion of the screen the row will occupy. Works similar to CSS's 'flex-grow' Weight float32 @@ -41,7 +43,7 @@ func (base *GridColumn) Draw(span *rl.Rectangle) { } for i, v := range base.Objects { var offset = base.cache.RowLocations[i] - rl.TraceLog(rl.LogInfo, "Cache: %v", base.cache) + // rl.TraceLog(rl.LogInfo, "Cache: %v", base.cache) var elemSpan = rl.Rectangle { X: span.X + *base.Style.Padding, Y: offset.X, -- cgit v1.3