summaryrefslogtreecommitdiff
path: root/engine/UI
diff options
context:
space:
mode:
authorPhyscik <mynameisgennadiy@vk.com>2026-02-07 23:20:48 +0500
committerPhyscik <mynameisgennadiy@vk.com>2026-02-07 23:20:48 +0500
commit64f718a1cd694be0952fd3700636d81ba05d30f0 (patch)
tree3e9a19e34328072e15b2c8e1387484c7a3099265 /engine/UI
parent08242fe7c284d8e02c662d65831a08a6482e87a3 (diff)
Dynamic menus
Diffstat (limited to 'engine/UI')
-rw-r--r--engine/UI/FlexElement.go2
-rw-r--r--engine/UI/GridColumn.go4
2 files changed, 4 insertions, 2 deletions
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,