Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add slides #98

Merged
merged 2 commits into from
Oct 26, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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() },
Expand Down Expand Up @@ -100,6 +106,12 @@ class LiveMosaicAppNode(

@Parcelize
data object StarField : NavTarget()

@Parcelize
data object ZsoltTalk : NavTarget()

@Parcelize
data object ManuelTalk : NavTarget()
}


Expand Down Expand Up @@ -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) {
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.