0.116.1 (versionCode 307): labels shown in full; BumbleHive's title buttons in one stack
- Arcade buttons with a value on the right: the label takes all the room left (a spacer shared it, so "Sound" read "S…") - Pause menu 250 dp, game settings sheet 380 dp, so every line and value fits at the largest font scale - BumbleHive: Mode moved into the stack under Play, same size, top-to-bottom focus - Fit tests: every game's settings, How to Play heading and the pause menu's sound line Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -372,7 +372,7 @@ private fun GameSettingsSheet(game: ArcadeGame, record: GameRecord, legacy: (Str
|
||||
LaunchedEffect(Unit) { runCatching { first.requestFocus() } }
|
||||
androidx.activity.compose.BackHandler(onBack = onClose)
|
||||
ArcadeScrim {
|
||||
Column(Modifier.width(300.dp).background(ArcadeColours.PanelDeep, RoundedCornerShape(12.dp)).border(1.dp, ArcadeColours.Line, RoundedCornerShape(12.dp)).padding(16.dp),
|
||||
Column(Modifier.width(380.dp).background(ArcadeColours.PanelDeep, RoundedCornerShape(12.dp)).border(1.dp, ArcadeColours.Line, RoundedCornerShape(12.dp)).padding(16.dp),
|
||||
verticalArrangement = Arrangement.spacedBy(8.dp)) {
|
||||
Text("${game.title.uppercase()} SETTINGS", color = ArcadeColours.Ink, fontFamily = Anton, fontSize = 22.sp)
|
||||
Text("Saved for whoever's playing, on this TV.", color = ArcadeColours.Muted, fontSize = 12.sp)
|
||||
|
||||
@@ -77,9 +77,11 @@ internal fun ArcadeButton(label: String, modifier: Modifier = Modifier, icon: St
|
||||
Row(modifier.height(height).onFocusChanged { focused = it.isFocused }.background(fill, corner).border(if (focused) 3.dp else 1.dp, edge, corner)
|
||||
.clickable(enabled = enabled, onClick = onClick).padding(horizontal = 12.dp), verticalAlignment = Alignment.CenterVertically, horizontalArrangement = Arrangement.spacedBy(8.dp)) {
|
||||
if (icon != null) Text(icon, color = if (danger) ArcadeColours.Red else ArcadeColours.Ink, fontSize = 14.sp, fontWeight = FontWeight.Bold)
|
||||
Text(label, Modifier.weight(1f, fill = false), color = if (enabled) (if (danger && !focused) Color(0xFFFFC2C2) else ArcadeColours.Ink) else ArcadeColours.Muted,
|
||||
// With a detail on the right, the label takes all the room left over (Paul, 9 November 2026: "Sound" read "S…"
|
||||
// because a spacer shared that room with it, so the label only ever had half).
|
||||
Text(label, Modifier.weight(1f, fill = detail != null), color = if (enabled) (if (danger && !focused) Color(0xFFFFC2C2) else ArcadeColours.Ink) else ArcadeColours.Muted,
|
||||
fontSize = 14.sp, fontWeight = FontWeight.SemiBold, maxLines = 1, overflow = TextOverflow.Ellipsis)
|
||||
if (detail != null) { Spacer(Modifier.weight(1f)); Text(detail, color = ArcadeColours.Muted, fontSize = 12.sp, maxLines = 1) }
|
||||
if (detail != null) Text(detail, color = ArcadeColours.Muted, fontSize = 12.sp, maxLines = 1)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -109,7 +111,7 @@ internal fun ArcadePauseMenu(game: ArcadeGame, line: String, onResume: () -> Uni
|
||||
BackHandler(onBack = onResume)
|
||||
ArcadeScrim {
|
||||
// Back caught here as well: on the TV a focused button would otherwise spend it moving focus (menus go up one level).
|
||||
Column(Modifier.width(210.dp).onBackKey(action = onResume).background(ArcadeColours.PanelDeep, RoundedCornerShape(12.dp)).border(1.dp, ArcadeColours.Line, RoundedCornerShape(12.dp)).padding(16.dp),
|
||||
Column(Modifier.width(250.dp).onBackKey(action = onResume).background(ArcadeColours.PanelDeep, RoundedCornerShape(12.dp)).border(1.dp, ArcadeColours.Line, RoundedCornerShape(12.dp)).padding(16.dp),
|
||||
horizontalAlignment = Alignment.CenterHorizontally, verticalArrangement = Arrangement.spacedBy(8.dp)) {
|
||||
Text("PAUSED", color = ArcadeColours.Ink, fontFamily = Anton, fontSize = 30.sp)
|
||||
Text(line, color = ArcadeColours.Muted, fontSize = 13.sp, maxLines = 1, overflow = TextOverflow.Ellipsis)
|
||||
|
||||
@@ -427,12 +427,14 @@ internal class HiveSim(val save: HiveSaveData, private val host: HiveHost, seed:
|
||||
|
||||
private fun titleButtons(): List<HiveButton> {
|
||||
val list = ArrayList<HiveButton>(5)
|
||||
list.add(HiveButton("PLAY", 520.0, 330.0, 240.0, 64.0, HiveAct.Play))
|
||||
// Hard mode (Paul, 8 November 2026): chosen here, beside Play; each mode keeps its own levels.
|
||||
list.add(HiveButton("MODE: " + mode.title.uppercase(), 790.0, 330.0, 240.0, 64.0, HiveAct.Mode))
|
||||
list.add(HiveButton("LEVELS", 520.0, 410.0, 240.0, 64.0, HiveAct.Levels))
|
||||
list.add(HiveButton("HELP & SETTINGS", 520.0, 490.0, 240.0, 64.0, HiveAct.Help))
|
||||
if (save.lastSpin != host.today()) list.add(HiveButton("DAILY BONUS", 520.0, 570.0, 240.0, 64.0, HiveAct.Daily, glow = true))
|
||||
// One stack, top to bottom (Paul, 9 November 2026: the Mode button sat off to the right of Play): Play, Mode, Levels,
|
||||
// Help & Settings and the Daily Bonus, all the same size, so ▲▼ walks straight down them.
|
||||
list.add(HiveButton("PLAY", 520.0, 330.0, 240.0, 56.0, HiveAct.Play))
|
||||
// Hard mode (Paul, 8 November 2026): each mode keeps its own levels.
|
||||
list.add(HiveButton("MODE: " + mode.title.uppercase(), 520.0, 394.0, 240.0, 56.0, HiveAct.Mode))
|
||||
list.add(HiveButton("LEVELS", 520.0, 458.0, 240.0, 56.0, HiveAct.Levels))
|
||||
list.add(HiveButton("HELP & SETTINGS", 520.0, 522.0, 240.0, 56.0, HiveAct.Help))
|
||||
if (save.lastSpin != host.today()) list.add(HiveButton("DAILY BONUS", 520.0, 586.0, 240.0, 56.0, HiveAct.Daily, glow = true))
|
||||
return list
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user