more logSprites refinement

This commit is contained in:
2023-09-12 13:38:14 -06:00
parent 3e556127ea
commit 0e713b4945

View File

@@ -116,18 +116,18 @@
([:FlxText text] ([:FlxText text]
(_print "${tab}${_idx++}. ${text.text} $(spriteToString text)")) (_print "${tab}${_idx++}. ${text.text} $(spriteToString text)"))
([:SimpleWindow window] ([:SimpleWindow window]
(_print "${tab}SimpleWindow '${window.title}': $(spriteToString window)")) (_print "${tab}${_idx++}. SimpleWindow '${window.title}': $(spriteToString window)"))
([:FlxSprite sprite] ([:FlxSprite sprite]
(_print "${tab}${_idx++}. $(spriteToString sprite)")) (_print "${tab}${_idx++}. $(spriteToString sprite)"))
([:DebugLayer innerGroup] ([:DebugLayer innerGroup]
(_print "${tab}DebugLayer:") (_print "${tab}${_idx++}. DebugLayer:")
(logSprites _camera (cast innerGroup) "${tab}| " buf)) (logSprites _camera (cast innerGroup) "${tab}| " buf))
([:FlxTypedGroup<FlxBasic> innerGroup] ([:FlxTypedGroup<FlxBasic> innerGroup]
(logSprites _camera innerGroup "${tab}| " buf)) (logSprites _camera innerGroup "${tab}| " buf))
(otherwise (otherwise
(_print "${tab}${_idx++}. Unknown type")))) (_print "${tab}${_idx++}. Unhandled type $(Type.getClassName (Type.getClass obj))"))))
(true (true
(+= _idx 1)))) null)))
(_print "${tab}---------------") (_print "${tab}---------------")
"") "")