unneeded prints

This commit is contained in:
Michael Freno
2025-10-15 20:29:13 -04:00
parent e16d831232
commit a2d8abe9e6

View File

@@ -661,7 +661,6 @@ function Theme.new(definition)
if parseResult then if parseResult then
component.insets = parseResult.insets component.insets = parseResult.insets
component._ninePatchData = parseResult -- Store full data including stretch regions component._ninePatchData = parseResult -- Store full data including stretch regions
print("[FlexLove] Auto-parsed 9-patch: " .. component.atlas)
else else
print("[FlexLove] Warning: Failed to parse 9-patch '" .. component.atlas .. "': " .. tostring(parseErr)) print("[FlexLove] Warning: Failed to parse 9-patch '" .. component.atlas .. "': " .. tostring(parseErr))
end end
@@ -730,7 +729,6 @@ function Theme.new(definition)
if parseResult then if parseResult then
stateComponent.insets = parseResult.insets stateComponent.insets = parseResult.insets
stateComponent._ninePatchData = parseResult stateComponent._ninePatchData = parseResult
print("[FlexLove] Auto-parsed 9-patch state '" .. stateName .. "': " .. stateComponent.atlas)
else else
print("[FlexLove] Warning: Failed to parse 9-patch state '" .. stateName .. "': " .. tostring(parseErr)) print("[FlexLove] Warning: Failed to parse 9-patch state '" .. stateName .. "': " .. tostring(parseErr))
end end
@@ -1657,13 +1655,11 @@ function Gui.init(config)
Theme.load(config.theme) Theme.load(config.theme)
Theme.setActive(config.theme) Theme.setActive(config.theme)
Gui.defaultTheme = config.theme Gui.defaultTheme = config.theme
print("[FlexLove] Theme loaded: " .. config.theme)
elseif type(config.theme) == "table" then elseif type(config.theme) == "table" then
-- Load theme from definition -- Load theme from definition
local theme = Theme.new(config.theme) local theme = Theme.new(config.theme)
Theme.setActive(theme) Theme.setActive(theme)
Gui.defaultTheme = theme.name Gui.defaultTheme = theme.name
print("[FlexLove] Theme loaded: " .. theme.name)
end end
end) end)
@@ -3426,11 +3422,6 @@ function Element:layoutChildren()
-- Apply positioning offsets (top, right, bottom, left) -- Apply positioning offsets (top, right, bottom, left)
self:applyPositioningOffsets(child) self:applyPositioningOffsets(child)
-- Final position DEBUG for elements with debugId
if child.debugId then
print(string.format("DEBUG [%s]: Final Y position: %.2f", child.debugId, child.y))
end
-- If child has children, re-layout them after position change -- If child has children, re-layout them after position change
if #child.children > 0 then if #child.children > 0 then
child:layoutChildren() child:layoutChildren()