Skip to content

Commit

Permalink
tweak play-button
Browse files Browse the repository at this point in the history
  • Loading branch information
Boy0000 committed Dec 2, 2023
1 parent 7a7e84f commit f9f826c
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
1 change: 0 additions & 1 deletion src/main/kotlin/com/mineinabyss/launchy/data/Constants.kt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ package com.mineinabyss.launchy.data
import androidx.compose.ui.unit.dp

object Constants {
const val ENABLE_PLAY_BUTTON = false
val SETTINGS_HORIZONTAL_PADDING = 10.dp
val SETTINGS_PRIMARY_BUTTON_WIDTH = 140.dp
}
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import androidx.compose.material3.MaterialTheme
import androidx.compose.runtime.Composable
import androidx.compose.ui.Alignment
import androidx.compose.ui.Modifier
import androidx.compose.ui.text.style.TextAlign
import androidx.compose.ui.unit.dp
import com.mineinabyss.launchy.ui.state.windowScope

Expand Down Expand Up @@ -39,10 +40,14 @@ fun ComingSoonDialog() {
color = MaterialTheme.colorScheme.onSurface,
)
Text(
"This feature is not yet implemented. Please check back later!",
"""
This feature is not yet implemented. Please check back later!
For now you must launch the game via the Vanilla Minecraft Launcher.
""".trimIndent(),
style = MaterialTheme.typography.bodyMedium,
modifier = Modifier.padding(bottom = 10.dp),
color = MaterialTheme.colorScheme.onSurface,
textAlign = TextAlign.Center
)
Row(
modifier = Modifier.padding(top = 10.dp),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,14 @@ import androidx.compose.material.icons.rounded.PlayArrow
import androidx.compose.material3.*
import androidx.compose.runtime.Composable
import com.mineinabyss.launchy.LocalLaunchyState
import com.mineinabyss.launchy.data.Constants
import com.mineinabyss.launchy.ui.screens.main.showComingSoonDialog

@Composable
fun PlayButton(enabled: Boolean) {
val state = LocalLaunchyState

Button(
enabled = Constants.ENABLE_PLAY_BUTTON && enabled,
enabled = enabled,
onClick = {
showComingSoonDialog.value = true
},
Expand Down

0 comments on commit f9f826c

Please sign in to comment.