Fixes frames for street

hh
Laurent 5 years ago
parent 70b1324fdd
commit ac196227b2
  1. 8
      app/src/main/java/net/pokeranalytics/android/ui/modules/handhistory/replayer/ReplayerConfiguration.kt

@ -41,13 +41,19 @@ class ReplayerConfiguration(var handHistory: HandHistory) {
get() { get() {
return when (val step = this.currentStep) { return when (val step = this.currentStep) {
is ComputedAction -> FrameType.STATE is ComputedAction -> FrameType.STATE
is Street -> { Street.SUMMARY -> {
when (this.currentFrame) { when (this.currentFrame) {
in (0 until framesForChipsAnimation) -> FrameType.GATHER_ANIMATION in (0 until framesForChipsAnimation) -> FrameType.GATHER_ANIMATION
in (framesForChipsAnimation until 2 * framesForChipsAnimation) -> FrameType.DISTRIBUTION_ANIMATION in (framesForChipsAnimation until 2 * framesForChipsAnimation) -> FrameType.DISTRIBUTION_ANIMATION
else -> FrameType.STATE else -> FrameType.STATE
} }
} }
is Street -> {
when (this.currentFrame) {
in (0 until framesForChipsAnimation) -> FrameType.GATHER_ANIMATION
else -> FrameType.STATE
}
}
else -> throw PAIllegalStateException("unmanaged step: $step") else -> throw PAIllegalStateException("unmanaged step: $step")
} }
} }

Loading…
Cancel
Save