|
|
|
|
@ -135,10 +135,15 @@ class TableDrawer(bitmap: Bitmap) : Canvas(bitmap) { |
|
|
|
|
if (computedAction?.positionIndex == i) { |
|
|
|
|
drawPlayerRectangle(i, true, config, canvas, context) |
|
|
|
|
drawAction(i, computedAction, config, canvas, context) |
|
|
|
|
} else { |
|
|
|
|
val info = if (config.isPlayerAllin(i)) { |
|
|
|
|
context.getString(R.string.allin) |
|
|
|
|
} else { |
|
|
|
|
val remainingStack = config.playerRemainingStack(i) |
|
|
|
|
remainingStack?.formatted |
|
|
|
|
} |
|
|
|
|
drawPlayerRectangle(i, false, config, canvas, context) |
|
|
|
|
drawPositionAndStack(i, remainingStack, config, canvas) |
|
|
|
|
drawPositionAndInfo(i, info, config, canvas) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
@ -403,7 +408,7 @@ class TableDrawer(bitmap: Bitmap) : Canvas(bitmap) { |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
private fun drawPositionAndStack(i: Int, stack: Double?, config: ReplayerConfiguration, canvas: Canvas) { |
|
|
|
|
private fun drawPositionAndInfo(i: Int, secondLine: String?, config: ReplayerConfiguration, canvas: Canvas) { |
|
|
|
|
|
|
|
|
|
val hh = config.handHistory |
|
|
|
|
// Player position |
|
|
|
|
@ -414,10 +419,11 @@ class TableDrawer(bitmap: Bitmap) : Canvas(bitmap) { |
|
|
|
|
canvas.drawText(name, pnPoint.x, pnPoint.y, this.textPaint) |
|
|
|
|
|
|
|
|
|
// Player stack |
|
|
|
|
secondLine?.let { |
|
|
|
|
val psPoint = config.pointForPlayerStack(i) |
|
|
|
|
this.textPaint.textSize = psPoint.fontSize |
|
|
|
|
val stackFormatted = stack?.formatted ?: "" |
|
|
|
|
canvas.drawText(stackFormatted, psPoint.x, psPoint.y, this.textPaint) |
|
|
|
|
canvas.drawText(it, psPoint.x, psPoint.y, this.textPaint) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|