Katan: rolled-hex highlight, compact Build menu, clearer harbours #5
@@ -374,7 +374,7 @@ private fun BuildMenuButton(actions: CatanActions, onBuild: (BuildKind?) -> Unit
|
|||||||
var open by remember { mutableStateOf(false) }
|
var open by remember { mutableStateOf(false) }
|
||||||
val armed = actions.building
|
val armed = actions.building
|
||||||
val anyEnabled = actions.canBuild.isNotEmpty() || armed != null
|
val anyEnabled = actions.canBuild.isNotEmpty() || armed != null
|
||||||
val label = {
|
val label: @Composable () -> Unit = {
|
||||||
LabelWithCost(CatanText.BUILD, armed?.let { buildLabel(it) } ?: CatanText.NO_COST)
|
LabelWithCost(CatanText.BUILD, armed?.let { buildLabel(it) } ?: CatanText.NO_COST)
|
||||||
}
|
}
|
||||||
Box {
|
Box {
|
||||||
|
|||||||
Reference in New Issue
Block a user