diff --git a/shared/src/commonMain/kotlin/com/bumble/livemosaic/node/app/LiveMosaicAppNode.kt b/shared/src/commonMain/kotlin/com/bumble/livemosaic/node/app/LiveMosaicAppNode.kt index 44d42226..37983418 100644 --- a/shared/src/commonMain/kotlin/com/bumble/livemosaic/node/app/LiveMosaicAppNode.kt +++ b/shared/src/commonMain/kotlin/com/bumble/livemosaic/node/app/LiveMosaicAppNode.kt @@ -22,6 +22,7 @@ import androidx.compose.ui.Modifier import androidx.compose.ui.draw.alpha import androidx.compose.ui.graphics.Color import androidx.compose.ui.graphics.Shape +import androidx.compose.ui.layout.ContentScale import com.bumble.appyx.components.backstack.BackStack import com.bumble.appyx.components.backstack.BackStackModel import com.bumble.appyx.components.backstack.operation.replace @@ -36,6 +37,7 @@ import com.bumble.appyx.utils.multiplatform.Parcelize import com.bumble.livemosaic.appyx.component.backstackclipper.BackStackClipper import com.bumble.livemosaic.composable.AutoPlayScript import com.bumble.livemosaic.composable.CallToActionScreen +import com.bumble.livemosaic.imageloader.EmbeddableResourceImage import com.bumble.livemosaic.model.MosaicConfig.MOSAIC1 import com.bumble.livemosaic.model.MosaicConfig.MOSAIC2 import com.bumble.livemosaic.model.MosaicConfig.MOSAIC3 @@ -44,11 +46,13 @@ import com.bumble.livemosaic.model.hasMosaic2Entries import com.bumble.livemosaic.model.hasMosaic3Entries import com.bumble.livemosaic.node.app.LiveMosaicAppNode.NavTarget import com.bumble.livemosaic.node.app.LiveMosaicAppNode.NavTarget.CallToAction +import com.bumble.livemosaic.node.app.LiveMosaicAppNode.NavTarget.ManuelTalk import com.bumble.livemosaic.node.app.LiveMosaicAppNode.NavTarget.Mosaic1 import com.bumble.livemosaic.node.app.LiveMosaicAppNode.NavTarget.Mosaic2 import com.bumble.livemosaic.node.app.LiveMosaicAppNode.NavTarget.Mosaic3 import com.bumble.livemosaic.node.app.LiveMosaicAppNode.NavTarget.StackedMessages import com.bumble.livemosaic.node.app.LiveMosaicAppNode.NavTarget.StarField +import com.bumble.livemosaic.node.app.LiveMosaicAppNode.NavTarget.ZsoltTalk import com.bumble.livemosaic.node.messages.StackedMessagesNode import com.bumble.livemosaic.node.mosaic.MosaicNode import com.bumble.livemosaic.node.starfield.StarFieldNode @@ -58,7 +62,9 @@ import com.bumble.livemosaic.ui.LocalAutoPlayFlow private val screens = listOfNotNull( Mosaic1, CallToAction, + ManuelTalk, StarField, + ZsoltTalk, Mosaic2.takeIf { entries.hasMosaic2Entries() }, CallToAction.takeIf { entries.hasMosaic2Entries() }, StackedMessages.takeIf { entries.hasMosaic2Entries() }, @@ -100,6 +106,12 @@ class LiveMosaicAppNode( @Parcelize data object StarField : NavTarget() + + @Parcelize + data object ZsoltTalk : NavTarget() + + @Parcelize + data object ManuelTalk : NavTarget() } @@ -128,6 +140,24 @@ class LiveMosaicAppNode( is StarField -> StarFieldNode(buildContext) is StackedMessages -> StackedMessagesNode(buildContext) + + is ZsoltTalk -> node(buildContext) { + AutoPlayScript(initialDelayMs = 10000) { nextScreen() } + EmbeddableResourceImage( + path = "bumble/zsolt_talk.png", + contentScale = ContentScale.Fit, + modifier = Modifier.fillMaxSize() + ) + } + + is ManuelTalk -> node(buildContext) { + AutoPlayScript(initialDelayMs = 10000) { nextScreen() } + EmbeddableResourceImage( + path = "bumble/manuel_talk.png", + contentScale = ContentScale.Fit, + modifier = Modifier.fillMaxSize() + ) + } } override fun onChildFinished(child: Node) { diff --git a/shared/src/commonMain/resources/bumble/manuel_talk.png b/shared/src/commonMain/resources/bumble/manuel_talk.png new file mode 100644 index 00000000..80c760ac Binary files /dev/null and b/shared/src/commonMain/resources/bumble/manuel_talk.png differ diff --git a/shared/src/commonMain/resources/bumble/zsolt_talk.png b/shared/src/commonMain/resources/bumble/zsolt_talk.png new file mode 100644 index 00000000..e8568ac7 Binary files /dev/null and b/shared/src/commonMain/resources/bumble/zsolt_talk.png differ