summaryrefslogtreecommitdiff
path: root/engine/UI
diff options
context:
space:
mode:
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,