From f4f7659a1a92378465caeb29a58adfadc1569a3c Mon Sep 17 00:00:00 2001 From: Geronimo Ferruccio Date: Sun, 29 Dec 2024 03:21:39 -0300 Subject: [PATCH] Draw indicators on top --- src/com/reco1l/andengine/container/ScrollableContainer.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/com/reco1l/andengine/container/ScrollableContainer.kt b/src/com/reco1l/andengine/container/ScrollableContainer.kt index d84d41190..c6cf72417 100644 --- a/src/com/reco1l/andengine/container/ScrollableContainer.kt +++ b/src/com/reco1l/andengine/container/ScrollableContainer.kt @@ -270,9 +270,10 @@ open class ScrollableContainer : Container() { } override fun onManagedDrawChildren(pGL: GL10, pCamera: Camera) { + super.onManagedDrawChildren(pGL, pCamera) + indicatorX?.onDraw(pGL, pCamera) indicatorY?.onDraw(pGL, pCamera) - super.onManagedDrawChildren(pGL, pCamera) } override fun onAreaTouched(event: TouchEvent, localX: Float, localY: Float): Boolean {