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/GridRow.go6
-rw-r--r--engine/UI/Label.go2
-rw-r--r--engine/UI/Void.go2
4 files changed, 6 insertions, 6 deletions
diff --git a/engine/UI/FlexElement.go b/engine/UI/FlexElement.go
index b8107ee..1c307da 100644
--- a/engine/UI/FlexElement.go
+++ b/engine/UI/FlexElement.go
@@ -92,7 +92,7 @@ func (base *layoutCache) CalculateRowsLocations (rows []UIElement, WeightToPixel
func (base layoutCache) String() string {
var outp, jsonErr = json.Marshal(base)
if jsonErr != nil {
- return fmt.Sprintf("Failed to parse settings: %s", jsonErr.Error())
+ return fmt.Sprintf("Failed to parse layour cache: %s", jsonErr.Error())
}
return string(outp)
}
diff --git a/engine/UI/GridRow.go b/engine/UI/GridRow.go
index 4940948..58d834d 100644
--- a/engine/UI/GridRow.go
+++ b/engine/UI/GridRow.go
@@ -76,10 +76,10 @@ func (base *GridRow) RecalculateCache(span *rl.Rectangle) {
X: float32(rl.GetScreenWidth()),
Y: float32(rl.GetScreenHeight()),
}
- rl.TraceLog(rl.LogInfo, "Span: %vx%v \tPadding: %v", span.Width, span.Height, *base.Style.Padding)
+ // rl.TraceLog(rl.LogInfo, "Span: %vx%v \tPadding: %v", span.Width, span.Height, *base.Style.Padding)
base.cache.CalculateOffsets(span.Width, span.Height, *base.Style.Padding, *base.Style.Padding)
var weightToScale = getWeightToPixelsRatio(base, base.cache.Width)
- rl.TraceLog(rl.LogInfo, "Ratio: %v", weightToScale)
+ // rl.TraceLog(rl.LogInfo, "Ratio: %v", weightToScale)
var spacingPx = base.Spacing * span.Width
base.cache.CalculateRowsLocations(base.Objects, weightToScale, spacingPx, span.X)
}
@@ -87,7 +87,7 @@ func (base *GridRow) RecalculateCache(span *rl.Rectangle) {
func (base GridRow) String() string {
var outp, jsonErr = json.Marshal(base)
if jsonErr != nil {
- return fmt.Sprintf("Failed to parse settings: %s", jsonErr.Error())
+ return fmt.Sprintf("Failed to parse grid row: %s", jsonErr.Error())
}
return string(outp)
}
diff --git a/engine/UI/Label.go b/engine/UI/Label.go
index 9d47187..08f5943 100644
--- a/engine/UI/Label.go
+++ b/engine/UI/Label.go
@@ -105,7 +105,7 @@ func (base *Label) getTextHeight(position *rl.Rectangle) int32 {
func (base Label) String() string {
var outp, jsonErr = json.Marshal(base)
if jsonErr != nil {
- return fmt.Sprintf("Failed to parse settings: %s", jsonErr.Error())
+ return fmt.Sprintf("Failed to parse label: %s", jsonErr.Error())
}
return string(outp)
}
diff --git a/engine/UI/Void.go b/engine/UI/Void.go
index 61d83e8..e23d252 100644
--- a/engine/UI/Void.go
+++ b/engine/UI/Void.go
@@ -33,7 +33,7 @@ func (base *Void) Draw(*rl.Rectangle) {
func (base Void) String() string {
var outp, jsonErr = json.Marshal(base)
if jsonErr != nil {
- return fmt.Sprintf("Failed to parse settings: %s", jsonErr.Error())
+ return fmt.Sprintf("Failed to parse void: %s", jsonErr.Error())
}
return string(outp)
}