File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed
catroid/src/main/java/org/catrobat/catroid/sensing Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -186,10 +186,10 @@ class ColorAtXYDetection(
186186 }
187187
188188 private fun rgbaColorToRGBHexString (color : Color ): String =
189- COLOR_HEX_PREFIX + color.toString().substring(RGBA_START_INDEX , RGBA_END_INDEX )
189+ COLOR_HEX_PREFIX + color.toString().substring(RGBA_START_INDEX , RGBA_END_INDEX ).uppercase()
190190
191191 private fun argbColorToRGBHexString (color : Color ): String =
192- COLOR_HEX_PREFIX + color.toString().substring(ARGB_START_INDEX , ARGB_END_INDEX )
192+ COLOR_HEX_PREFIX + color.toString().substring(ARGB_START_INDEX , ARGB_END_INDEX ).uppercase()
193193
194194 private fun convertStageToBitmapCoordinate (
195195 position : Int ,
Original file line number Diff line number Diff line change @@ -85,7 +85,8 @@ abstract class ColorDetection(
8585 }
8686
8787 private fun drawSprites (lookList : List <Look >, batch : SpriteBatch ) {
88- lookList.forEach { it.draw(batch, 1f ) }
88+ val sortedLookList = lookList.sortedBy { it.zIndex }
89+ sortedLookList.forEach { it.draw(batch, 1f ) }
8990 }
9091
9192 protected fun createViewport (
You can’t perform that action at this time.
0 commit comments