feat(bottom): game art panel, hideable bar with a pull tab, direct guide links, centred guide tabs
No files matched your search
@@ -60,16 +60,6 @@ private fun BottomPanelBar() = PreviewHost {
|
||||
@DroidDeckPreviews @Composable private fun SessionMenuDockedDisplayPreview() = DockedMenu(SessionDrawerPage.DISPLAY)
|
||||
@DroidDeckPreviews @Composable private fun BottomPanelBarPreview() = BottomPanelBar()
|
||||
|
||||
/** The dashboard's stats page with no game running: the game highlighted in Steam. */
|
||||
@Composable
|
||||
private fun BottomIdle() = PreviewHost {
|
||||
Column(Modifier.fillMaxSize().background(Color.Black).padding(12.dp)) {
|
||||
IdleHomeCard(IdleGame(1145360, "Hades", null, 2843, System.currentTimeMillis() / 1000 - 2 * 86_400, highlighted = true)) {}
|
||||
}
|
||||
}
|
||||
|
||||
@DroidDeckPreviews @Composable private fun BottomIdlePreview() = BottomIdle()
|
||||
|
||||
/** The Stardew Valley companion page, fed with the mod's messages. */
|
||||
@Composable
|
||||
private fun BottomStardew() = PreviewHost {
|
||||
@@ -119,7 +109,6 @@ internal val previewCases: List<PreviewCase> = listOf(
|
||||
PreviewCase("session-menu-docked") { DockedMenu(SessionDrawerPage.CONTROLLER) },
|
||||
PreviewCase("session-menu-docked-display") { DockedMenu(SessionDrawerPage.DISPLAY) },
|
||||
PreviewCase("bottom-panel-bar") { BottomPanelBar() },
|
||||
PreviewCase("bottom-idle-home") { BottomIdle() },
|
||||
PreviewCase("bottom-companion-stardew") { BottomStardew() },
|
||||
PreviewCase("bottom-companion-pipboy") { BottomPipBoy() },
|
||||
)
|
||||
@@ -19,9 +19,10 @@ enum class SecondScreenMode(val id: String, @StringRes val label: Int, val bindi
|
||||
MIRROR("mirror", R.string.bottom_page_mirror),
|
||||
COMPANION("companion", R.string.bottom_page_companion),
|
||||
STEAM_QAM("steam-qam", R.string.bottom_qam_title),
|
||||
ART("art", R.string.bottom_art_title),
|
||||
DESKTOP("desktop", R.string.second_mode_desktop);
|
||||
|
||||
val sessionPanel: Boolean get() = this == GUIDES || this == MIRROR || this == COMPANION || this == STEAM_QAM
|
||||
val sessionPanel: Boolean get() = this == GUIDES || this == MIRROR || this == COMPANION || this == STEAM_QAM || this == ART
|
||||
|
||||
val controls: Boolean get() = this == CUSTOM_CONTROLS || bindings != null
|
||||
|
||||
@@ -32,7 +33,7 @@ enum class SecondScreenMode(val id: String, @StringRes val label: Int, val bindi
|
||||
fun opening(remembered: String?, deckPad: Boolean, dashboard: Boolean = false, bottomDesktop: Boolean = false,
|
||||
steam: Boolean = false): SecondScreenMode =
|
||||
entries.firstOrNull {
|
||||
it != NONE && it.id == remembered && (it != DECK_CONTROLS || deckPad) && (it != DASHBOARD && !it.sessionPanel || dashboard) && (it != STEAM_QAM || steam) &&
|
||||
it != NONE && it.id == remembered && (it != DECK_CONTROLS || deckPad) && (it != DASHBOARD && !it.sessionPanel || dashboard) && (it != STEAM_QAM && it != ART || steam) &&
|
||||
(it != DESKTOP || bottomDesktop)
|
||||
} ?: MENU
|
||||
}
|
||||
|
||||
@@ -9,7 +9,7 @@ import java.net.URL
|
||||
import java.net.URLEncoder
|
||||
|
||||
object GameLinks {
|
||||
enum class Kind { WIKI, STRATEGYWIKI, PCGAMINGWIKI, GAMEFAQS, IGN, HOWLONGTOBEAT }
|
||||
enum class Kind { WIKI, STRATEGYWIKI, PCGAMINGWIKI, GAMEFAQS, IGN, HOWLONGTOBEAT, MAPGENIE }
|
||||
|
||||
data class Link(val kind: Kind, val url: String)
|
||||
|
||||
@@ -50,7 +50,54 @@ object GameLinks {
|
||||
)
|
||||
}
|
||||
|
||||
fun links(context: Context, appId: Long): List<Link> {
|
||||
/** Site slugs to try for a game name, longest first: "Bully: Scholarship Edition" gives bully-scholarship-edition, then bully. */
|
||||
internal fun slugs(name: String): List<String> {
|
||||
fun slug(s: String) = s.lowercase().replace("&", "and").replace(Regex("['’™®©]"), "")
|
||||
.replace(Regex("[^a-z0-9]+"), "-").trim('-')
|
||||
val short = name.split(Regex(":| - | – |\\("), limit = 2).first()
|
||||
return listOf(slug(name), slug(short)).filter { it.isNotEmpty() }.distinct()
|
||||
}
|
||||
|
||||
/** Direct pages for what Wikidata has no ID for, found from each site's own routes rather than a web search. */
|
||||
internal fun direct(name: String, found: List<Link>, exists: (String) -> Boolean, strategyWiki: (String) -> String?): List<Link> {
|
||||
val have = found.map { it.kind }.toSet()
|
||||
val slugs = slugs(name)
|
||||
fun first(urls: List<String>) = urls.firstOrNull(exists)
|
||||
val ignWiki = found.firstOrNull { it.kind == Kind.IGN }?.url?.substringAfter("/games/", "")?.takeIf { it.isNotEmpty() }
|
||||
val extra = listOfNotNull(
|
||||
first(slugs.map { "https://mapgenie.io/$it" })?.let { Link(Kind.MAPGENIE, it) },
|
||||
first((listOfNotNull(ignWiki) + slugs).distinct().map { "https://www.ign.com/wikis/$it" })?.let { Link(Kind.IGN, it) },
|
||||
// Fandom answers pages with a bot check, but its API with 200 for a wiki that exists and 404 for one that does not.
|
||||
if (Kind.WIKI in have) null else slugs.map { it.replace("-", "") }.distinct()
|
||||
.firstOrNull { exists("https://$it.fandom.com/api.php?action=query&meta=siteinfo&format=json") }
|
||||
?.let { Link(Kind.WIKI, "https://$it.fandom.com/") },
|
||||
if (Kind.STRATEGYWIKI in have) null else strategyWiki(name.split(":").first().trim())?.let { Link(Kind.STRATEGYWIKI, it) },
|
||||
)
|
||||
return found.filterNot { it.kind == Kind.IGN && extra.any { e -> e.kind == Kind.IGN } } + extra
|
||||
}
|
||||
|
||||
internal fun parseOpenSearch(json: String, title: String): String? = runCatching {
|
||||
val a = JSONArray(json)
|
||||
val titles = a.getJSONArray(1)
|
||||
val urls = a.getJSONArray(3)
|
||||
(0 until titles.length()).firstOrNull { titles.getString(it).equals(title, ignoreCase = true) }?.let { urls.getString(it) }
|
||||
}.getOrNull()
|
||||
|
||||
private fun exists(url: String): Boolean = runCatching {
|
||||
val c = URL(url).openConnection() as HttpURLConnection
|
||||
c.instanceFollowRedirects = false
|
||||
c.connectTimeout = 6_000
|
||||
c.readTimeout = 6_000
|
||||
c.setRequestProperty("User-Agent", BROWSER)
|
||||
try { c.responseCode in 200..399 } finally { c.disconnect() }
|
||||
}.getOrDefault(false)
|
||||
|
||||
private fun strategyWiki(title: String): String? = runCatching {
|
||||
parseOpenSearch(get("https://strategywiki.org/w/api.php?action=opensearch&namespace=0&limit=5&format=json&search=" +
|
||||
URLEncoder.encode(title, "UTF-8")), title)
|
||||
}.getOrNull()
|
||||
|
||||
fun links(context: Context, appId: Long, name: String? = null): List<Link> {
|
||||
val cache = File(context.cacheDir, "game-links/$appId.json")
|
||||
val fresh = cache.isFile && System.currentTimeMillis() - cache.lastModified() < CACHE_MS
|
||||
val text = if (fresh) runCatching { cache.readText() }.getOrNull() else null
|
||||
@@ -58,9 +105,23 @@ object GameLinks {
|
||||
get("https://query.wikidata.org/sparql?format=json&query=" + URLEncoder.encode(sparql(appId), "UTF-8"))
|
||||
}.getOrNull()?.also { runCatching { cache.parentFile?.mkdirs(); cache.writeText(it) } }
|
||||
?: runCatching { cache.readText() }.getOrNull()
|
||||
val found = json?.let { runCatching { parse(it) }.getOrNull() }.orEmpty()
|
||||
return if (found.any { it.kind == Kind.PCGAMINGWIKI }) found
|
||||
else found + Link(Kind.PCGAMINGWIKI, "https://www.pcgamingwiki.com/api/appid.php?appid=$appId")
|
||||
val wikidata = json?.let { runCatching { parse(it) }.getOrNull() }.orEmpty()
|
||||
val withFixes = if (wikidata.any { it.kind == Kind.PCGAMINGWIKI }) wikidata
|
||||
else wikidata + Link(Kind.PCGAMINGWIKI, "https://www.pcgamingwiki.com/api/appid.php?appid=$appId")
|
||||
if (name.isNullOrBlank()) return withFixes
|
||||
val directCache = File(context.cacheDir, "game-links/$appId-direct-v2.json")
|
||||
val cached = directCache.takeIf { it.isFile && System.currentTimeMillis() - it.lastModified() < CACHE_MS }
|
||||
?.let { runCatching { readLinks(it.readText()) }.getOrNull() }
|
||||
if (cached != null) return cached
|
||||
return direct(name, withFixes, ::exists, ::strategyWiki)
|
||||
.also { runCatching { directCache.parentFile?.mkdirs(); directCache.writeText(writeLinks(it)) } }
|
||||
}
|
||||
|
||||
internal fun writeLinks(links: List<Link>): String =
|
||||
JSONArray(links.map { JSONObject().put("kind", it.kind.name).put("url", it.url) }).toString()
|
||||
|
||||
internal fun readLinks(json: String): List<Link> = JSONArray(json).let { a ->
|
||||
(0 until a.length()).map { a.getJSONObject(it) }.map { Link(Kind.valueOf(it.getString("kind")), it.getString("url")) }
|
||||
}
|
||||
|
||||
fun protonTier(appId: Long): String? = runCatching {
|
||||
@@ -70,20 +131,12 @@ object GameLinks {
|
||||
internal fun parseTier(json: String): String? =
|
||||
JSONObject(json).optString("tier").takeIf { it in TIERS }
|
||||
|
||||
fun searches(name: String): List<Search> {
|
||||
/** Searches on the sites themselves, for what has no direct page. */
|
||||
fun searches(name: String, found: List<Link>): List<Search> {
|
||||
val q = URLEncoder.encode(name, "UTF-8")
|
||||
return listOf(
|
||||
return listOfNotNull(
|
||||
Search("youtube", "https://m.youtube.com/results?search_query=$q+walkthrough"),
|
||||
Search("gamefaqs", "https://gamefaqs.gamespot.com/search?game=$q"),
|
||||
Search("ign", "https://www.ign.com/search?q=$q+guide"),
|
||||
)
|
||||
}
|
||||
|
||||
fun mapSearches(name: String): List<Search> {
|
||||
val q = URLEncoder.encode(name, "UTF-8")
|
||||
return listOf(
|
||||
Search("mapgenie", "https://duckduckgo.com/html/?q=site%3Amapgenie.io+$q"),
|
||||
Search("vgmaps", "https://duckduckgo.com/html/?q=site%3Avgmaps.com+$q"),
|
||||
Search("gamefaqs", "https://gamefaqs.gamespot.com/search?game=$q").takeIf { found.none { it.kind == Kind.GAMEFAQS } },
|
||||
)
|
||||
}
|
||||
|
||||
@@ -105,6 +158,7 @@ object GameLinks {
|
||||
|
||||
val TIERS = listOf("platinum", "gold", "silver", "bronze", "borked")
|
||||
private const val CACHE_MS = 7L * 24 * 3600 * 1000
|
||||
private const val BROWSER = "Mozilla/5.0 (Linux; Android 14) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/124.0 Mobile Safari/537.36"
|
||||
}
|
||||
|
||||
object GuideLibrary {
|
||||
|
||||
@@ -0,0 +1,115 @@
|
||||
package com.droiddeck.launcher.ui
|
||||
|
||||
import androidx.compose.animation.Crossfade
|
||||
import androidx.compose.animation.core.LinearEasing
|
||||
import androidx.compose.animation.core.RepeatMode
|
||||
import androidx.compose.animation.core.animateFloat
|
||||
import androidx.compose.animation.core.infiniteRepeatable
|
||||
import androidx.compose.animation.core.rememberInfiniteTransition
|
||||
import androidx.compose.animation.core.tween
|
||||
import androidx.compose.foundation.background
|
||||
import androidx.compose.foundation.layout.Box
|
||||
import androidx.compose.foundation.layout.BoxWithConstraints
|
||||
import androidx.compose.foundation.layout.Column
|
||||
import androidx.compose.foundation.layout.fillMaxSize
|
||||
import androidx.compose.foundation.layout.fillMaxWidth
|
||||
import androidx.compose.foundation.layout.height
|
||||
import androidx.compose.foundation.layout.padding
|
||||
import androidx.compose.foundation.layout.widthIn
|
||||
import androidx.compose.material3.Text
|
||||
import androidx.compose.runtime.Composable
|
||||
import androidx.compose.runtime.LaunchedEffect
|
||||
import androidx.compose.runtime.getValue
|
||||
import androidx.compose.runtime.mutableStateOf
|
||||
import androidx.compose.runtime.remember
|
||||
import androidx.compose.runtime.setValue
|
||||
import androidx.compose.ui.Alignment
|
||||
import androidx.compose.ui.Modifier
|
||||
import androidx.compose.ui.graphics.Brush
|
||||
import androidx.compose.ui.graphics.Color
|
||||
import androidx.compose.ui.graphics.graphicsLayer
|
||||
import androidx.compose.ui.layout.ContentScale
|
||||
import androidx.compose.ui.platform.LocalContext
|
||||
import androidx.compose.ui.platform.testTag
|
||||
import androidx.compose.ui.res.stringResource
|
||||
import androidx.compose.ui.text.font.FontWeight
|
||||
import androidx.compose.ui.text.style.TextOverflow
|
||||
import androidx.compose.ui.unit.dp
|
||||
import androidx.compose.ui.unit.sp
|
||||
import coil.compose.AsyncImage
|
||||
import com.droiddeck.launcher.R
|
||||
import com.droiddeck.launcher.agent.AgentGuest
|
||||
import com.droiddeck.launcher.frontend.Library
|
||||
import kotlinx.coroutines.Dispatchers
|
||||
import kotlinx.coroutines.delay
|
||||
import kotlinx.coroutines.isActive
|
||||
import kotlinx.coroutines.withContext
|
||||
|
||||
private const val ART_POLL_MS = 2_000L
|
||||
private const val DRIFT_MS = 28_000
|
||||
|
||||
/** The game's art filling the bottom screen with a slow pan and zoom, for the running game or the one selected in Steam. */
|
||||
@Composable
|
||||
internal fun ArtPanel(runningGame: () -> String?) {
|
||||
val context = LocalContext.current.applicationContext
|
||||
var game by remember { mutableStateOf<IdleGame?>(null) }
|
||||
var playing by remember { mutableStateOf(false) }
|
||||
FullScreenChrome()
|
||||
LaunchedEffect(Unit) {
|
||||
val games = withContext(Dispatchers.IO) { runCatching { Library.steamGames(context) }.getOrDefault(emptyList()) }
|
||||
while (isActive) {
|
||||
val running = runningGame()?.toLongOrNull()
|
||||
val shown = running ?: withContext(Dispatchers.IO) { runCatching { AgentGuest.selectedSteamAppId(context) }.getOrNull() }
|
||||
if (shown == null || shown != game?.appId?.toLong()) {
|
||||
withContext(Dispatchers.IO) { IdleHome.load(context, games, shown) }?.let { game = it }
|
||||
}
|
||||
playing = running != null && running == game?.appId?.toLong()
|
||||
delay(ART_POLL_MS)
|
||||
}
|
||||
}
|
||||
Box(Modifier.fillMaxSize().background(Color.Black).testTag("bottom-art")) {
|
||||
Crossfade(game, label = "art") { g ->
|
||||
if (g != null) ArtScene(g, playing)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@Composable
|
||||
private fun ArtScene(game: IdleGame, playing: Boolean) {
|
||||
val drift = rememberInfiniteTransition(label = "drift")
|
||||
val t by drift.animateFloat(0f, 1f, infiniteRepeatable(tween(DRIFT_MS, easing = LinearEasing), RepeatMode.Reverse), label = "t")
|
||||
val eased = t * t * (3 - 2 * t)
|
||||
BoxWithConstraints(Modifier.fillMaxSize()) {
|
||||
if (game.art != null) AsyncImage(
|
||||
model = game.art, contentDescription = null, contentScale = ContentScale.Crop,
|
||||
modifier = Modifier.fillMaxSize().graphicsLayer {
|
||||
val scale = 1.08f + 0.14f * eased
|
||||
scaleX = scale
|
||||
scaleY = scale
|
||||
translationX = (eased - 0.5f) * size.width * (scale - 1f)
|
||||
translationY = (0.5f - eased) * size.height * (scale - 1f) * 0.5f
|
||||
},
|
||||
)
|
||||
Box(
|
||||
Modifier.fillMaxSize().background(
|
||||
Brush.verticalGradient(0.55f to Color.Transparent, 1f to Color.Black.copy(alpha = 0.78f)),
|
||||
),
|
||||
)
|
||||
Column(Modifier.align(Alignment.BottomStart).padding(28.dp).fillMaxWidth(0.6f)) {
|
||||
Text(
|
||||
stringResource(if (playing) R.string.bottom_art_playing else if (game.highlighted) R.string.bottom_idle_selected
|
||||
else R.string.bottom_idle_recent).uppercase(),
|
||||
fontSize = 12.sp, fontWeight = FontWeight.SemiBold, letterSpacing = 1.4.sp, color = Color.White.copy(alpha = 0.7f),
|
||||
)
|
||||
if (game.logo != null) AsyncImage(
|
||||
model = game.logo, contentDescription = game.name, contentScale = ContentScale.Fit, alignment = Alignment.BottomStart,
|
||||
modifier = Modifier.padding(top = 10.dp).widthIn(max = 460.dp).height(128.dp),
|
||||
) else Text(
|
||||
game.name, fontSize = 34.sp, fontWeight = FontWeight.Bold, color = Color.White, maxLines = 2,
|
||||
overflow = TextOverflow.Ellipsis, modifier = Modifier.padding(top = 4.dp),
|
||||
)
|
||||
Text(idleDetails(game), fontSize = 14.sp, color = Color.White.copy(alpha = 0.75f), maxLines = 1,
|
||||
modifier = Modifier.padding(top = 8.dp))
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,80 @@
|
||||
package com.droiddeck.launcher.ui
|
||||
|
||||
import androidx.compose.foundation.background
|
||||
import androidx.compose.foundation.border
|
||||
import androidx.compose.foundation.clickable
|
||||
import androidx.compose.foundation.gestures.detectVerticalDragGestures
|
||||
import androidx.compose.foundation.layout.Box
|
||||
import androidx.compose.foundation.layout.fillMaxSize
|
||||
import androidx.compose.foundation.layout.size
|
||||
import androidx.compose.foundation.shape.RoundedCornerShape
|
||||
import androidx.compose.material.icons.Icons
|
||||
import androidx.compose.material.icons.outlined.ExpandMore
|
||||
import androidx.compose.material3.Icon
|
||||
import androidx.compose.runtime.Composable
|
||||
import androidx.compose.runtime.DisposableEffect
|
||||
import androidx.compose.runtime.mutableIntStateOf
|
||||
import androidx.compose.runtime.mutableStateOf
|
||||
import androidx.compose.ui.Alignment
|
||||
import androidx.compose.ui.Modifier
|
||||
import androidx.compose.ui.draw.clip
|
||||
import androidx.compose.ui.graphics.Color
|
||||
import androidx.compose.ui.input.pointer.pointerInput
|
||||
import androidx.compose.ui.platform.testTag
|
||||
import androidx.compose.ui.res.stringResource
|
||||
import androidx.compose.ui.semantics.Role
|
||||
import androidx.compose.ui.semantics.contentDescription
|
||||
import androidx.compose.ui.semantics.semantics
|
||||
import androidx.compose.ui.unit.dp
|
||||
import com.droiddeck.launcher.R
|
||||
|
||||
/** Whether the bottom screen's bar is shown. Panels that need the whole screen ask for it hidden; a pull tab brings it back. */
|
||||
internal object BottomChrome {
|
||||
private val requests = mutableIntStateOf(0)
|
||||
|
||||
/** The user's choice, which wins until a panel's request changes; null follows the requests. */
|
||||
private val chosen = mutableStateOf<Boolean?>(null)
|
||||
|
||||
val barShown: Boolean get() = chosen.value ?: (requests.intValue == 0)
|
||||
|
||||
fun show(shown: Boolean) {
|
||||
chosen.value = shown
|
||||
}
|
||||
|
||||
fun reset() {
|
||||
chosen.value = null
|
||||
}
|
||||
|
||||
internal fun request(on: Boolean) {
|
||||
requests.intValue = (requests.intValue + if (on) 1 else -1).coerceAtLeast(0)
|
||||
chosen.value = null
|
||||
}
|
||||
}
|
||||
|
||||
/** Asks for the bar hidden while this is composed, as art, a page being read or a map being viewed do. */
|
||||
@Composable
|
||||
internal fun FullScreenChrome() {
|
||||
DisposableEffect(Unit) {
|
||||
BottomChrome.request(true)
|
||||
onDispose { BottomChrome.request(false) }
|
||||
}
|
||||
}
|
||||
|
||||
/** The tab at the top edge that brings the hidden bar back, by a tap or a pull down. */
|
||||
@Composable
|
||||
internal fun PullTab() {
|
||||
val description = stringResource(R.string.bottom_bar_show)
|
||||
val shape = RoundedCornerShape(bottomStart = 14.dp, bottomEnd = 14.dp)
|
||||
Box(Modifier.fillMaxSize(), contentAlignment = Alignment.TopCenter) {
|
||||
Box(
|
||||
contentAlignment = Alignment.Center,
|
||||
modifier = Modifier.testTag("bottom-pull-tab").size(width = 72.dp, height = 26.dp)
|
||||
.semantics { contentDescription = description }
|
||||
.clip(shape).background(Color.Black.copy(alpha = 0.55f)).border(1.dp, Color.White.copy(alpha = 0.14f), shape)
|
||||
.pointerInput(Unit) { detectVerticalDragGestures { change, drag -> if (drag > 6f) { change.consume(); BottomChrome.show(true) } } }
|
||||
.clickable(role = Role.Button) { BottomChrome.show(true) },
|
||||
) {
|
||||
Icon(Icons.Outlined.ExpandMore, contentDescription = null, tint = Color.White.copy(alpha = 0.85f), modifier = Modifier.size(22.dp))
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -121,6 +121,7 @@ internal fun GuidesPanel(runningGame: () -> String?) {
|
||||
var cookieHeader by remember(id) { mutableStateOf<String?>(null) }
|
||||
var name by remember(id) { mutableStateOf<String?>(null) }
|
||||
var openMap by remember(id) { mutableStateOf<File?>(null) }
|
||||
if (reading != null || openMap != null) FullScreenChrome()
|
||||
var libraryRevision by remember(id) { mutableIntStateOf(0) }
|
||||
var note by remember(id) { mutableStateOf<String?>(null) }
|
||||
LaunchedEffect(id) {
|
||||
@@ -183,13 +184,13 @@ internal fun GuidesPanel(runningGame: () -> String?) {
|
||||
}
|
||||
PanelColumn {
|
||||
TabStrip(GuideSection.entries.map { stringResource(it.label) }, section.ordinal, { section = GuideSection.entries[it] },
|
||||
modifier = Modifier.fillMaxWidth(), compact = true)
|
||||
modifier = Modifier.fillMaxWidth(), compact = true, centered = true)
|
||||
Column(Modifier.weight(1f).fillMaxWidth().verticalScroll(rememberScrollState())) {
|
||||
when (section) {
|
||||
GuideSection.GUIDES -> GuidesSection(host, list, tag, SteamGuides.place(context, game), onTag = { tag = it }, onOpen = { reading = it })
|
||||
GuideSection.ACHIEVEMENTS -> AchievementsSection(id)
|
||||
GuideSection.WIKI -> WikiSection(id, name, onOpen = { reading = it })
|
||||
GuideSection.MAPS -> MapsSection(game, name, libraryRevision, onOpenMap = { openMap = it }, onOpen = { reading = it })
|
||||
GuideSection.MAPS -> MapsSection(id, game, name, libraryRevision, onOpenMap = { openMap = it }, onOpen = { reading = it })
|
||||
GuideSection.SAVED -> SavedSection(game, libraryRevision, onOpen = { reading = Uri.fromFile(it).toString() }, onDelete = {
|
||||
GuideLibrary.delete(it)
|
||||
libraryRevision++
|
||||
@@ -233,7 +234,7 @@ private fun WikiSection(appId: Long, name: String?, onOpen: (String) -> Unit) {
|
||||
LaunchedEffect(appId) {
|
||||
val (found, t) = withContext(Dispatchers.IO) {
|
||||
val pending = async { GameLinks.protonTier(appId) }
|
||||
GameLinks.links(context, appId) to pending.await()
|
||||
GameLinks.links(context, appId, name) to pending.await()
|
||||
}
|
||||
tier = t
|
||||
links = found
|
||||
@@ -251,20 +252,20 @@ private fun WikiSection(appId: Long, name: String?, onOpen: (String) -> Unit) {
|
||||
}
|
||||
}
|
||||
SettingsGroup(stringResource(R.string.bottom_guides_wiki)) {
|
||||
for (link in found) PanelRow(stringResource(linkLabel(link.kind)), Uri.parse(link.url).host.orEmpty().removePrefix("www."),
|
||||
for (link in found.filter { it.kind != GameLinks.Kind.MAPGENIE }) PanelRow(stringResource(linkLabel(link.kind)), Uri.parse(link.url).host.orEmpty().removePrefix("www."),
|
||||
onClick = { onOpen(link.url) },
|
||||
trailing = { SecondaryButton(open, compact = true, modifier = Modifier.testTag("guides-link-${link.kind.name.lowercase()}")) { onOpen(link.url) } })
|
||||
}
|
||||
name?.let { n ->
|
||||
SettingsGroup(stringResource(R.string.bottom_guides_search)) {
|
||||
for (s in GameLinks.searches(n)) PanelRow(stringResource(searchLabel(s.id)), n, onClick = { onOpen(s.url) },
|
||||
for (s in GameLinks.searches(n, found)) PanelRow(stringResource(searchLabel(s.id)), n, onClick = { onOpen(s.url) },
|
||||
trailing = { SecondaryButton(open, compact = true, modifier = Modifier.testTag("guides-search-${s.id}")) { onOpen(s.url) } })
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@Composable
|
||||
private fun MapsSection(game: String, name: String?, revision: Int, onOpenMap: (File) -> Unit, onOpen: (String) -> Unit) {
|
||||
private fun MapsSection(appId: Long, game: String, name: String?, revision: Int, onOpenMap: (File) -> Unit, onOpen: (String) -> Unit) {
|
||||
val context = LocalContext.current
|
||||
var maps by remember(game) { mutableStateOf<List<GuideLibrary.PinnedMap>>(emptyList()) }
|
||||
LaunchedEffect(game, revision) { maps = withContext(Dispatchers.IO) { GuideLibrary.maps(context, game) } }
|
||||
@@ -281,11 +282,16 @@ private fun MapsSection(game: String, name: String?, revision: Int, onOpenMap: (
|
||||
)
|
||||
}
|
||||
}
|
||||
name?.let { n ->
|
||||
var mapSite by remember(name) { mutableStateOf<GameLinks.Link?>(null) }
|
||||
LaunchedEffect(name) {
|
||||
if (name != null) mapSite = withContext(Dispatchers.IO) { GameLinks.links(context, appId, name) }.firstOrNull { it.kind == GameLinks.Kind.MAPGENIE }
|
||||
}
|
||||
mapSite?.let { link ->
|
||||
val open = stringResource(R.string.store_open)
|
||||
SettingsGroup(stringResource(R.string.bottom_guides_find_maps)) {
|
||||
for (s in GameLinks.mapSearches(n)) PanelRow(stringResource(searchLabel(s.id)), n, onClick = { onOpen(s.url) },
|
||||
trailing = { SecondaryButton(open, compact = true, modifier = Modifier.testTag("guides-maps-${s.id}")) { onOpen(s.url) } })
|
||||
PanelRow(stringResource(R.string.bottom_guides_search_mapgenie), Uri.parse(link.url).run { host.orEmpty() + path.orEmpty() },
|
||||
onClick = { onOpen(link.url) },
|
||||
trailing = { SecondaryButton(open, compact = true, modifier = Modifier.testTag("guides-maps-mapgenie")) { onOpen(link.url) } })
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -542,14 +548,12 @@ private fun linkLabel(kind: GameLinks.Kind): Int = when (kind) {
|
||||
GameLinks.Kind.GAMEFAQS -> R.string.bottom_guides_link_gamefaqs
|
||||
GameLinks.Kind.IGN -> R.string.bottom_guides_link_ign
|
||||
GameLinks.Kind.HOWLONGTOBEAT -> R.string.bottom_guides_link_hltb
|
||||
GameLinks.Kind.MAPGENIE -> R.string.bottom_guides_search_mapgenie
|
||||
}
|
||||
|
||||
private fun searchLabel(id: String): Int = when (id) {
|
||||
"youtube" -> R.string.bottom_guides_search_youtube
|
||||
"gamefaqs" -> R.string.bottom_guides_link_gamefaqs
|
||||
"ign" -> R.string.bottom_guides_link_ign
|
||||
"mapgenie" -> R.string.bottom_guides_search_mapgenie
|
||||
else -> R.string.bottom_guides_search_vgmaps
|
||||
else -> R.string.bottom_guides_link_gamefaqs
|
||||
}
|
||||
|
||||
private fun tierLabel(tier: String): Int = when (tier) {
|
||||
|
||||
@@ -2,49 +2,24 @@ package com.droiddeck.launcher.ui
|
||||
|
||||
import android.content.Context
|
||||
import android.text.format.DateUtils
|
||||
import androidx.compose.foundation.background
|
||||
import androidx.compose.foundation.layout.Arrangement
|
||||
import androidx.compose.foundation.layout.Box
|
||||
import androidx.compose.foundation.layout.Column
|
||||
import androidx.compose.foundation.layout.Row
|
||||
import androidx.compose.foundation.layout.fillMaxSize
|
||||
import androidx.compose.foundation.layout.fillMaxWidth
|
||||
import androidx.compose.foundation.layout.height
|
||||
import androidx.compose.foundation.layout.padding
|
||||
import androidx.compose.foundation.shape.RoundedCornerShape
|
||||
import androidx.compose.material3.Text
|
||||
import androidx.compose.runtime.Composable
|
||||
import androidx.compose.runtime.LaunchedEffect
|
||||
import androidx.compose.runtime.getValue
|
||||
import androidx.compose.runtime.mutableStateOf
|
||||
import androidx.compose.runtime.remember
|
||||
import androidx.compose.runtime.setValue
|
||||
import androidx.compose.ui.Alignment
|
||||
import androidx.compose.ui.Modifier
|
||||
import androidx.compose.ui.draw.clip
|
||||
import androidx.compose.ui.graphics.Color
|
||||
import androidx.compose.ui.layout.ContentScale
|
||||
import androidx.compose.ui.platform.LocalContext
|
||||
import androidx.compose.ui.res.stringResource
|
||||
import androidx.compose.ui.text.font.FontWeight
|
||||
import androidx.compose.ui.text.style.TextOverflow
|
||||
import androidx.compose.ui.unit.dp
|
||||
import androidx.compose.ui.unit.sp
|
||||
import coil.compose.AsyncImage
|
||||
import com.droiddeck.launcher.R
|
||||
import androidx.compose.ui.platform.testTag
|
||||
import androidx.compose.material3.MaterialTheme
|
||||
import androidx.compose.foundation.layout.size
|
||||
import androidx.compose.foundation.border
|
||||
import com.droiddeck.launcher.agent.AgentGuest
|
||||
import com.droiddeck.launcher.frontend.Library
|
||||
import com.droiddeck.launcher.session.SessionPrefs
|
||||
import com.droiddeck.launcher.session.SteamLocalConfig
|
||||
import java.io.File
|
||||
import kotlinx.coroutines.Dispatchers
|
||||
import kotlinx.coroutines.delay
|
||||
import kotlinx.coroutines.isActive
|
||||
import kotlinx.coroutines.withContext
|
||||
import java.io.File
|
||||
|
||||
class IdleGame(
|
||||
val appId: Int,
|
||||
@@ -53,6 +28,7 @@ class IdleGame(
|
||||
val playtimeMinutes: Long,
|
||||
val lastPlayed: Long,
|
||||
val highlighted: Boolean,
|
||||
val logo: File? = null,
|
||||
)
|
||||
|
||||
internal object IdleHome {
|
||||
@@ -79,21 +55,21 @@ internal object IdleHome {
|
||||
fun load(context: Context, games: List<Library.SteamGame>, selected: Long?): IdleGame? {
|
||||
if (selected != null) overview(context, selected)?.let { o ->
|
||||
val id = selected.toInt()
|
||||
val art = games.firstOrNull { it.appId == id }?.let { it.hero ?: it.art } ?: runCatching {
|
||||
Library.steamCacheImage(File(SessionPrefs.activeSteamRoot(context), "appcache/librarycache"), id,
|
||||
listOf("library_hero.jpg", "library_600x900.jpg", "header.jpg"))
|
||||
val known = games.firstOrNull { it.appId == id }
|
||||
val cache = File(SessionPrefs.activeSteamRoot(context), "appcache/librarycache")
|
||||
val art = known?.let { it.hero ?: it.art } ?: runCatching {
|
||||
Library.steamCacheImage(cache, id, listOf("library_hero.jpg", "library_600x900.jpg", "header.jpg"))
|
||||
}.getOrNull()
|
||||
return IdleGame(id, o.name, art, o.minutes, o.lastPlayed, highlighted = true)
|
||||
val logo = known?.logo ?: runCatching { Library.steamCacheImage(cache, id, Library.STEAM_LOGOS) }.getOrNull()
|
||||
return IdleGame(id, o.name, art, o.minutes, o.lastPlayed, highlighted = true, logo = logo)
|
||||
}
|
||||
val (game, highlighted) = pick(games, selected) ?: return null
|
||||
val stats = runCatching { SteamLocalConfig.appStats(SessionPrefs.activeSteamRoot(context), game.appId) }.getOrNull()
|
||||
return IdleGame(
|
||||
game.appId, game.name, game.hero ?: game.art, stats?.playtimeMinutes ?: 0L,
|
||||
maxOf(stats?.lastPlayed ?: 0L, game.lastPlayed), highlighted,
|
||||
maxOf(stats?.lastPlayed ?: 0L, game.lastPlayed), highlighted, game.logo,
|
||||
)
|
||||
}
|
||||
|
||||
fun runExpression(appId: Int): String = "SteamClient.Apps.RunGame('$appId', '', -1, 100)"
|
||||
}
|
||||
|
||||
private const val SELECTION_MS = 2_000L
|
||||
@@ -113,50 +89,7 @@ internal fun rememberShownGame(runningGame: () -> String?): Long? {
|
||||
}
|
||||
|
||||
@Composable
|
||||
internal fun BottomIdleHome(modifier: Modifier = Modifier) {
|
||||
val context = LocalContext.current
|
||||
var game by remember { mutableStateOf<IdleGame?>(null) }
|
||||
LaunchedEffect(Unit) {
|
||||
val games = withContext(Dispatchers.IO) { runCatching { Library.steamGames(context) }.getOrDefault(emptyList()) }
|
||||
while (isActive) {
|
||||
val selected = withContext(Dispatchers.IO) { runCatching { AgentGuest.selectedSteamAppId(context) }.getOrNull() }
|
||||
val next = withContext(Dispatchers.IO) { IdleHome.load(context, games, selected) }
|
||||
if (next?.appId != game?.appId || next?.highlighted != game?.highlighted) game = next
|
||||
delay(SELECTION_MS)
|
||||
}
|
||||
}
|
||||
game?.let { g ->
|
||||
IdleHomeCard(g, modifier) {
|
||||
Thread { runCatching { AgentGuest.steamEval(context, IdleHome.runExpression(g.appId), 5_000) } }.start()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@Composable
|
||||
internal fun IdleHomeCard(game: IdleGame, modifier: Modifier = Modifier, onPlay: () -> Unit) {
|
||||
val pal = LocalPalette.current
|
||||
val colors = MaterialTheme.colorScheme
|
||||
val shape = RoundedCornerShape(14.dp)
|
||||
Row(
|
||||
modifier.fillMaxWidth().clip(shape).background(colors.surface).border(1.dp, pal.line, shape).padding(8.dp),
|
||||
verticalAlignment = Alignment.CenterVertically,
|
||||
horizontalArrangement = Arrangement.spacedBy(12.dp),
|
||||
) {
|
||||
Box(Modifier.size(width = 112.dp, height = 52.dp).clip(RoundedCornerShape(8.dp)).background(pal.line)) {
|
||||
if (game.art != null) AsyncImage(model = game.art, contentDescription = null, contentScale = ContentScale.Crop, modifier = Modifier.fillMaxSize())
|
||||
}
|
||||
Column(Modifier.weight(1f)) {
|
||||
Text(stringResource(if (game.highlighted) R.string.bottom_idle_selected else R.string.bottom_idle_recent).uppercase(),
|
||||
fontSize = 10.sp, fontWeight = FontWeight.SemiBold, letterSpacing = 1.2.sp, color = colors.onSurfaceVariant)
|
||||
Text(game.name, fontSize = 15.sp, fontWeight = FontWeight.SemiBold, color = colors.onBackground, maxLines = 1, overflow = TextOverflow.Ellipsis)
|
||||
Text(details(game), fontSize = 12.sp, color = colors.onSurfaceVariant, maxLines = 1, overflow = TextOverflow.Ellipsis)
|
||||
}
|
||||
SecondaryButton(stringResource(R.string.bottom_idle_play), compact = true, modifier = Modifier.testTag("bottom-idle-play"), onClick = onPlay)
|
||||
}
|
||||
}
|
||||
|
||||
@Composable
|
||||
private fun details(game: IdleGame): String {
|
||||
internal fun idleDetails(game: IdleGame): String {
|
||||
val hours = game.playtimeMinutes / 60
|
||||
val played = when {
|
||||
game.playtimeMinutes <= 0 -> stringResource(R.string.bottom_idle_never)
|
||||
|
||||
@@ -27,6 +27,7 @@ import androidx.compose.material.icons.outlined.Close
|
||||
import androidx.compose.material.icons.outlined.Dashboard
|
||||
import androidx.compose.material.icons.outlined.Extension
|
||||
import androidx.compose.material.icons.outlined.ViewSidebar
|
||||
import androidx.compose.material.icons.outlined.Wallpaper
|
||||
import androidx.compose.material.icons.outlined.CropFree
|
||||
import androidx.compose.material.icons.outlined.MenuBook
|
||||
import androidx.compose.material.icons.outlined.DesktopAccessDisabled
|
||||
@@ -244,6 +245,7 @@ internal val SecondScreenMode.icon: ImageVector get() = when (this) {
|
||||
SecondScreenMode.MIRROR -> Icons.Outlined.CropFree
|
||||
SecondScreenMode.COMPANION -> Icons.Outlined.Extension
|
||||
SecondScreenMode.STEAM_QAM -> Icons.Outlined.ViewSidebar
|
||||
SecondScreenMode.ART -> Icons.Outlined.Wallpaper
|
||||
SecondScreenMode.DESKTOP -> Icons.Outlined.DesktopWindows
|
||||
}
|
||||
|
||||
|
||||
@@ -37,6 +37,7 @@ internal fun BottomSessionPanel(mode: SecondScreenMode, actions: BottomPageActio
|
||||
SecondScreenMode.MIRROR -> MirrorPanel(actions)
|
||||
SecondScreenMode.COMPANION -> CompanionPanel(actions.runningGame)
|
||||
SecondScreenMode.STEAM_QAM -> SteamQamPanel()
|
||||
SecondScreenMode.ART -> ArtPanel(actions.runningGame)
|
||||
else -> Unit
|
||||
}
|
||||
}
|
||||
|
||||
@@ -297,7 +297,6 @@ fun BottomTelemetryPage(fps: () -> Float?, runningGame: () -> String? = { null }
|
||||
BoxWithConstraints(Modifier.fillMaxSize()) {
|
||||
val viewport = maxHeight
|
||||
Column(Modifier.fillMaxSize().verticalScroll(rememberScrollState()), verticalArrangement = Arrangement.spacedBy(10.dp)) {
|
||||
if (running == null && steamClient != null) BottomIdleHome()
|
||||
if (!hudOn) Unit
|
||||
else if (noData) hudTick.let {
|
||||
perfTick.let {
|
||||
|
||||
@@ -16,6 +16,7 @@ import android.widget.FrameLayout
|
||||
import android.widget.LinearLayout
|
||||
import androidx.activity.setViewTreeOnBackPressedDispatcherOwner
|
||||
import androidx.compose.material.icons.Icons
|
||||
import androidx.compose.material.icons.outlined.ExpandLess
|
||||
import androidx.compose.material.icons.outlined.LightMode
|
||||
import androidx.lifecycle.setViewTreeLifecycleOwner
|
||||
import androidx.lifecycle.setViewTreeViewModelStoreOwner
|
||||
@@ -76,6 +77,7 @@ class SecondScreenPresentation(
|
||||
androidx.compose.ui.platform.ComposeView(context).apply {
|
||||
setContent {
|
||||
DroidDeckTheme {
|
||||
if (!BottomChrome.barShown && currentMode.hasBar) PullTab()
|
||||
if (brightnessOpen.value) BrightnessDrop(brightness.intValue, ::setBrightness,
|
||||
onScreenOff = { brightnessOpen.value = false; screenOff() }, onDismiss = { brightnessOpen.value = false })
|
||||
}
|
||||
@@ -146,6 +148,7 @@ class SecondScreenPresentation(
|
||||
if (currentMode == mode && isShowing) return
|
||||
currentMode = mode
|
||||
brightnessOpen.value = false
|
||||
BottomChrome.reset()
|
||||
if (created) renderMode()
|
||||
}
|
||||
|
||||
@@ -377,7 +380,7 @@ class SecondScreenPresentation(
|
||||
attachKeyboard()
|
||||
}
|
||||
SecondScreenMode.DASHBOARD -> renderDashboard()
|
||||
SecondScreenMode.GUIDES, SecondScreenMode.MIRROR, SecondScreenMode.COMPANION, SecondScreenMode.STEAM_QAM -> renderPanel(mode)
|
||||
SecondScreenMode.GUIDES, SecondScreenMode.MIRROR, SecondScreenMode.COMPANION, SecondScreenMode.STEAM_QAM, SecondScreenMode.ART -> renderPanel(mode)
|
||||
SecondScreenMode.DESKTOP -> {
|
||||
root.addView(BottomDesktopPanel(context, onClose, onMenu,
|
||||
(onSteamMenu to onQam).takeIf { SessionState.mode == SessionService.MODE_STEAM }, onSwap,
|
||||
@@ -392,13 +395,26 @@ class SecondScreenPresentation(
|
||||
|
||||
private fun bar(mode: SecondScreenMode) {
|
||||
val first = barModel(mode) ?: return
|
||||
root.addView(bottomScreenBarView(context) { barModel(mode) ?: first }, LinearLayout.LayoutParams(-1, -2))
|
||||
root.addView(androidx.compose.ui.platform.ComposeView(context).apply {
|
||||
setContent {
|
||||
DroidDeckTheme {
|
||||
androidx.compose.animation.AnimatedVisibility(BottomChrome.barShown,
|
||||
enter = androidx.compose.animation.expandVertically(), exit = androidx.compose.animation.shrinkVertically()) {
|
||||
BottomScreenBar(barModel(mode) ?: first)
|
||||
}
|
||||
}
|
||||
}
|
||||
}, LinearLayout.LayoutParams(-1, -2))
|
||||
}
|
||||
|
||||
internal fun barModel(mode: SecondScreenMode): BottomBarModel? {
|
||||
val extras = listOfNotNull(onSwap?.let { BarExtra(context.getString(R.string.swap_screens), icon = R.drawable.ic_bottom_swap, tag = "bottom-swap", onClick = it) }) +
|
||||
BarExtra(context.getString(R.string.bottom_brightness), vector = Icons.Outlined.LightMode, active = brightnessOpen.value,
|
||||
tag = "bottom-brightness-toggle", onClick = ::toggleBrightness)
|
||||
tag = "bottom-brightness-toggle", onClick = ::toggleBrightness) +
|
||||
BarExtra(context.getString(R.string.bottom_bar_hide), vector = Icons.Outlined.ExpandLess, tag = "bottom-bar-hide") {
|
||||
brightnessOpen.value = false
|
||||
BottomChrome.show(false)
|
||||
}
|
||||
fun model(extras: List<BarExtra>, tabs: BarTabs? = null) =
|
||||
sessionBarModel(context.getString(mode.label), onClose, onMenu, onSteamMenu, onQam, extras, tabs, picker?.invoke(mode))
|
||||
return when (mode) {
|
||||
@@ -412,7 +428,7 @@ class SecondScreenPresentation(
|
||||
tag = "bottom-qam-layout") { QamFit.choose(context, fit.next) }) + extras)
|
||||
}
|
||||
SecondScreenMode.DASHBOARD, SecondScreenMode.CUSTOM_CONTROLS, SecondScreenMode.GUIDES, SecondScreenMode.MIRROR,
|
||||
SecondScreenMode.COMPANION -> model(extras)
|
||||
SecondScreenMode.COMPANION, SecondScreenMode.ART -> model(extras)
|
||||
SecondScreenMode.TERMINAL -> model(listOf(BarExtra(context.getString(R.string.drawer_keyboard), icon = R.drawable.ic_bottom_keyboard,
|
||||
tag = "bottom-keyboard") { terminalPanel?.showKeyboard() }) + extras)
|
||||
else -> null
|
||||
@@ -501,3 +517,6 @@ internal enum class BottomScreenLight(val brightness: Float) {
|
||||
fun autoDims(mode: SecondScreenMode) = mode == SecondScreenMode.DASHBOARD
|
||||
}
|
||||
}
|
||||
|
||||
/** Modes drawn with the bottom bar, which the pull tab can bring back. */
|
||||
internal val SecondScreenMode.hasBar: Boolean get() = this != SecondScreenMode.NONE && this != SecondScreenMode.MENU && this != SecondScreenMode.DESKTOP
|
||||
@@ -1438,7 +1438,7 @@ internal fun secondScreenModes(none: Boolean, deckPad: Boolean, dashboard: Boole
|
||||
(if (none) listOf(SecondScreenMode.NONE) else emptyList()) + listOf(SecondScreenMode.KEYBOARD_TRACKPAD, SecondScreenMode.TERMINAL) +
|
||||
(if (deckPad) listOf(SecondScreenMode.DECK_CONTROLS) else emptyList()) + listOf(SecondScreenMode.CUSTOM_CONTROLS) +
|
||||
(if (dashboard) listOf(SecondScreenMode.DASHBOARD) else emptyList()) +
|
||||
(if (dashboard && steam) listOf(SecondScreenMode.STEAM_QAM) else emptyList()) +
|
||||
(if (dashboard && steam) listOf(SecondScreenMode.STEAM_QAM, SecondScreenMode.ART) else emptyList()) +
|
||||
(if (dashboard) listOf(SecondScreenMode.GUIDES, SecondScreenMode.MIRROR, SecondScreenMode.COMPANION) else emptyList()) +
|
||||
(if (desktop) listOf(SecondScreenMode.DESKTOP) else emptyList())
|
||||
|
||||
|
||||
@@ -170,7 +170,7 @@ internal val LocalRevealChecked = androidx.compose.runtime.compositionLocalOf {
|
||||
internal fun TabStrip(
|
||||
tabs: List<String>, selected: Int, onSelect: (Int) -> Unit,
|
||||
modifier: Modifier = Modifier, focusRequesters: List<FocusRequester>? = null,
|
||||
bumpers: Boolean = true, compact: Boolean = false,
|
||||
bumpers: Boolean = true, compact: Boolean = false, centered: Boolean = false,
|
||||
) {
|
||||
val colors = MaterialTheme.colorScheme
|
||||
val pal = LocalPalette.current
|
||||
@@ -181,8 +181,9 @@ internal fun TabStrip(
|
||||
val tabPadding = if (compact) 10.dp else if (tight) 10.dp else 16.dp
|
||||
Row(verticalAlignment = Alignment.CenterVertically, horizontalArrangement = Arrangement.spacedBy(6.dp), modifier = modifier) {
|
||||
if (bumpers) BumperKey("LB", stringResource(R.string.widgets_prev_tab)) { onSelect((selected + tabs.size - 1) % tabs.size) }
|
||||
Row(
|
||||
modifier = Modifier.weight(1f, fill = false).clip(shape).background(colors.surfaceVariant).border(1.dp, pal.line2, shape)
|
||||
// Centred, the bumpers sit at the edges and the tabs in the middle, as in the bottom bar.
|
||||
Box(if (centered) Modifier.weight(1f) else Modifier.weight(1f, fill = false), contentAlignment = Alignment.Center) { Row(
|
||||
modifier = Modifier.clip(shape).background(colors.surfaceVariant).border(1.dp, pal.line2, shape)
|
||||
.horizontalScroll(scroll).selectableGroup().padding(3.dp),
|
||||
) {
|
||||
tabs.forEachIndexed { i, label ->
|
||||
@@ -208,7 +209,7 @@ internal fun TabStrip(
|
||||
.padding(horizontal = tabPadding, vertical = if (compact) 6.dp else 12.dp),
|
||||
)
|
||||
}
|
||||
}
|
||||
} }
|
||||
if (bumpers) BumperKey("RB", stringResource(R.string.widgets_next_tab)) { onSelect((selected + 1) % tabs.size) }
|
||||
}
|
||||
}
|
||||
|
||||
@@ -2149,9 +2149,10 @@
|
||||
<string name="stats_hud_red_mark">العلامة الحمراء هي النقطة التي تُظهر فيها المؤشرات درجة الحرارة باللون الأحمر.</string>
|
||||
<string name="stats_hud_whole_device">الجهاز بالكامل</string>
|
||||
<string name="stats_hud_battery_temp">البطارية</string>
|
||||
<string name="bottom_art_title">صور اللعبة</string>
|
||||
<string name="bottom_art_playing">قيد اللعب</string>
|
||||
<string name="bottom_idle_selected">محدد في Steam</string>
|
||||
<string name="bottom_idle_recent">آخر ما لُعب</string>
|
||||
<string name="bottom_idle_play">العب</string>
|
||||
<string name="bottom_idle_never">لم يُلعب بعد</string>
|
||||
<string name="bottom_idle_minutes">%1$d دقيقة لعب</string>
|
||||
<string name="bottom_idle_hours">%1$d ساعة لعب</string>
|
||||
@@ -2177,6 +2178,8 @@
|
||||
<string name="bottom_chat_mic_off">الميكروفون متوقف</string>
|
||||
<string name="bottom_chat_mic_unavailable">الميكروفون متوقف لهذه اللعبة. للتحدث، فعِّل «الميكروفون» في إعدادات Steam في DroidDeck (الصوت) وابدأ اللعبة من جديد.</string>
|
||||
<string name="bottom_chat_volume">مستوى الصوت %1$d%%</string>
|
||||
<string name="bottom_bar_hide">إخفاء الشريط</string>
|
||||
<string name="bottom_bar_show">إظهار الشريط</string>
|
||||
<string name="bottom_brightness">سطوع الشاشة السفلية</string>
|
||||
<string name="bottom_screen_off">أطفئ الشاشة السفلية</string>
|
||||
<string name="bottom_page_guides">الأدلة</string>
|
||||
|
||||
@@ -2144,9 +2144,10 @@
|
||||
<string name="stats_hud_red_mark">La marca roja indica el punto donde el HUD muestra la temperatura en rojo.</string>
|
||||
<string name="stats_hud_whole_device">todo el dispositivo</string>
|
||||
<string name="stats_hud_battery_temp">batería</string>
|
||||
<string name="bottom_art_title">Arte del juego</string>
|
||||
<string name="bottom_art_playing">Jugando</string>
|
||||
<string name="bottom_idle_selected">Seleccionado en Steam</string>
|
||||
<string name="bottom_idle_recent">Jugado por última vez</string>
|
||||
<string name="bottom_idle_play">Jugar</string>
|
||||
<string name="bottom_idle_never">Aún sin jugar</string>
|
||||
<string name="bottom_idle_minutes">%1$d min jugados</string>
|
||||
<string name="bottom_idle_hours">%1$d h jugadas</string>
|
||||
@@ -2172,6 +2173,8 @@
|
||||
<string name="bottom_chat_mic_off">Micro desactivado</string>
|
||||
<string name="bottom_chat_mic_unavailable">El micro está desactivado en este juego. Para hablar, activa Micrófono en los ajustes de Steam de DroidDeck (Audio) y vuelve a iniciar el juego.</string>
|
||||
<string name="bottom_chat_volume">Volumen %1$d%%</string>
|
||||
<string name="bottom_bar_hide">Ocultar barra</string>
|
||||
<string name="bottom_bar_show">Mostrar barra</string>
|
||||
<string name="bottom_brightness">Brillo de la pantalla inferior</string>
|
||||
<string name="bottom_screen_off">Apagar la pantalla inferior</string>
|
||||
<string name="bottom_page_guides">Guías</string>
|
||||
|
||||
@@ -2049,9 +2049,10 @@
|
||||
<string name="stats_hud_red_mark">Червената маркировка е мястото, където HUD показва температурата в червено.</string>
|
||||
<string name="stats_hud_whole_device">цялото устройство</string>
|
||||
<string name="stats_hud_battery_temp">батерия</string>
|
||||
<string name="bottom_art_title">Изображения на играта</string>
|
||||
<string name="bottom_art_playing">Играе се</string>
|
||||
<string name="bottom_idle_selected">Избрано в Steam</string>
|
||||
<string name="bottom_idle_recent">Последно играна</string>
|
||||
<string name="bottom_idle_play">Играй</string>
|
||||
<string name="bottom_idle_never">Още не е играна</string>
|
||||
<string name="bottom_idle_minutes">%1$d мин игра</string>
|
||||
<string name="bottom_idle_hours">%1$d ч игра</string>
|
||||
@@ -2077,6 +2078,8 @@
|
||||
<string name="bottom_chat_mic_off">Микрофонът е изключен</string>
|
||||
<string name="bottom_chat_mic_unavailable">Микрофонът е изключен за тази игра. За да говорите, включете „Микрофон“ в настройките на Steam в DroidDeck (Звук) и стартирайте играта отново.</string>
|
||||
<string name="bottom_chat_volume">Сила на звука %1$d%%</string>
|
||||
<string name="bottom_bar_hide">Скриване на лентата</string>
|
||||
<string name="bottom_bar_show">Показване на лентата</string>
|
||||
<string name="bottom_brightness">Яркост на долния екран</string>
|
||||
<string name="bottom_screen_off">Изключи долния екран</string>
|
||||
<string name="bottom_page_guides">Ръководства</string>
|
||||
|
||||
@@ -2099,9 +2099,10 @@
|
||||
<string name="stats_hud_red_mark">Červená značka označuje místo, kde HUD zobrazuje teplotu červeně.</string>
|
||||
<string name="stats_hud_whole_device">celé zařízení</string>
|
||||
<string name="stats_hud_battery_temp">baterie</string>
|
||||
<string name="bottom_art_title">Obrázky hry</string>
|
||||
<string name="bottom_art_playing">Hraje se</string>
|
||||
<string name="bottom_idle_selected">Vybráno ve Steamu</string>
|
||||
<string name="bottom_idle_recent">Naposledy hráno</string>
|
||||
<string name="bottom_idle_play">Hrát</string>
|
||||
<string name="bottom_idle_never">Zatím nehráno</string>
|
||||
<string name="bottom_idle_minutes">Odehráno %1$d min</string>
|
||||
<string name="bottom_idle_hours">Odehráno %1$d h</string>
|
||||
@@ -2127,6 +2128,8 @@
|
||||
<string name="bottom_chat_mic_off">Mikrofon vypnut</string>
|
||||
<string name="bottom_chat_mic_unavailable">Mikrofon je pro tuto hru vypnutý. Chcete-li mluvit, zapněte Mikrofon v nastavení Steamu v DroidDecku (Zvuk) a spusťte hru znovu.</string>
|
||||
<string name="bottom_chat_volume">Hlasitost %1$d%%</string>
|
||||
<string name="bottom_bar_hide">Skrýt lištu</string>
|
||||
<string name="bottom_bar_show">Zobrazit lištu</string>
|
||||
<string name="bottom_brightness">Jas spodní obrazovky</string>
|
||||
<string name="bottom_screen_off">Vypnout spodní obrazovku</string>
|
||||
<string name="bottom_page_guides">Návody</string>
|
||||
|
||||
@@ -2049,9 +2049,10 @@
|
||||
<string name="stats_hud_red_mark">Det røde mærke angiver, hvor HUD viser temperaturen i rødt.</string>
|
||||
<string name="stats_hud_whole_device">hele enheden</string>
|
||||
<string name="stats_hud_battery_temp">batteri</string>
|
||||
<string name="bottom_art_title">Spilgrafik</string>
|
||||
<string name="bottom_art_playing">Spiller</string>
|
||||
<string name="bottom_idle_selected">Valgt i Steam</string>
|
||||
<string name="bottom_idle_recent">Senest spillet</string>
|
||||
<string name="bottom_idle_play">Spil</string>
|
||||
<string name="bottom_idle_never">Ikke spillet endnu</string>
|
||||
<string name="bottom_idle_minutes">%1$d min spillet</string>
|
||||
<string name="bottom_idle_hours">%1$d t spillet</string>
|
||||
@@ -2077,6 +2078,8 @@
|
||||
<string name="bottom_chat_mic_off">Mikrofon fra</string>
|
||||
<string name="bottom_chat_mic_unavailable">Mikrofonen er slået fra for dette spil. For at tale skal du slå Mikrofon til i DroidDecks Steam-indstillinger (Lyd) og starte spillet igen.</string>
|
||||
<string name="bottom_chat_volume">Lydstyrke %1$d%%</string>
|
||||
<string name="bottom_bar_hide">Skjul bjælke</string>
|
||||
<string name="bottom_bar_show">Vis bjælke</string>
|
||||
<string name="bottom_brightness">Lysstyrke på nederste skærm</string>
|
||||
<string name="bottom_screen_off">Sluk den nederste skærm</string>
|
||||
<string name="bottom_page_guides">Guides</string>
|
||||
|
||||
@@ -2041,9 +2041,10 @@
|
||||
<string name="stats_hud_red_mark">Die rote Markierung kennzeichnet die Stelle, an der das HUD die Temperatur rot anzeigt.</string>
|
||||
<string name="stats_hud_whole_device">ganzes Gerät</string>
|
||||
<string name="stats_hud_battery_temp">Akku</string>
|
||||
<string name="bottom_art_title">Spielgrafik</string>
|
||||
<string name="bottom_art_playing">Wird gespielt</string>
|
||||
<string name="bottom_idle_selected">In Steam ausgewählt</string>
|
||||
<string name="bottom_idle_recent">Zuletzt gespielt</string>
|
||||
<string name="bottom_idle_play">Spielen</string>
|
||||
<string name="bottom_idle_never">Noch nicht gespielt</string>
|
||||
<string name="bottom_idle_minutes">%1$d Min. gespielt</string>
|
||||
<string name="bottom_idle_hours">%1$d Std. gespielt</string>
|
||||
@@ -2069,6 +2070,8 @@
|
||||
<string name="bottom_chat_mic_off">Mikro aus</string>
|
||||
<string name="bottom_chat_mic_unavailable">Das Mikro ist für dieses Spiel aus. Um zu sprechen, aktiviere „Mikrofon“ in den Steam-Einstellungen von DroidDeck (Audio) und starte das Spiel neu.</string>
|
||||
<string name="bottom_chat_volume">Lautstärke %1$d%%</string>
|
||||
<string name="bottom_bar_hide">Leiste ausblenden</string>
|
||||
<string name="bottom_bar_show">Leiste einblenden</string>
|
||||
<string name="bottom_brightness">Helligkeit des unteren Bildschirms</string>
|
||||
<string name="bottom_screen_off">Unteren Bildschirm ausschalten</string>
|
||||
<string name="bottom_page_guides">Anleitungen</string>
|
||||
|
||||
@@ -2049,9 +2049,10 @@
|
||||
<string name="stats_hud_red_mark">Η κόκκινη ένδειξη είναι το σημείο όπου το HUD εμφανίζει τη θερμοκρασία με κόκκινο.</string>
|
||||
<string name="stats_hud_whole_device">ολόκληρη η συσκευή</string>
|
||||
<string name="stats_hud_battery_temp">μπαταρία</string>
|
||||
<string name="bottom_art_title">Εικόνες παιχνιδιού</string>
|
||||
<string name="bottom_art_playing">Παίζεται</string>
|
||||
<string name="bottom_idle_selected">Επιλεγμένο στο Steam</string>
|
||||
<string name="bottom_idle_recent">Παίχτηκε τελευταία</string>
|
||||
<string name="bottom_idle_play">Παίξε</string>
|
||||
<string name="bottom_idle_never">Δεν έχει παιχτεί</string>
|
||||
<string name="bottom_idle_minutes">%1$d λεπ. παιχνιδιού</string>
|
||||
<string name="bottom_idle_hours">%1$d ώρ. παιχνιδιού</string>
|
||||
@@ -2077,6 +2078,8 @@
|
||||
<string name="bottom_chat_mic_off">Μικρόφωνο κλειστό</string>
|
||||
<string name="bottom_chat_mic_unavailable">Το μικρόφωνο είναι απενεργοποιημένο για αυτό το παιχνίδι. Για να μιλήσετε, ενεργοποιήστε το Μικρόφωνο στις ρυθμίσεις Steam του DroidDeck (Ήχος) και ξεκινήστε ξανά το παιχνίδι.</string>
|
||||
<string name="bottom_chat_volume">Ένταση %1$d%%</string>
|
||||
<string name="bottom_bar_hide">Απόκρυψη γραμμής</string>
|
||||
<string name="bottom_bar_show">Εμφάνιση γραμμής</string>
|
||||
<string name="bottom_brightness">Φωτεινότητα κάτω οθόνης</string>
|
||||
<string name="bottom_screen_off">Απενεργοποίηση κάτω οθόνης</string>
|
||||
<string name="bottom_page_guides">Οδηγοί</string>
|
||||
|
||||
@@ -2074,9 +2074,10 @@
|
||||
<string name="stats_hud_red_mark">La marca roja señala el punto en el que el HUD muestra la temperatura en rojo.</string>
|
||||
<string name="stats_hud_whole_device">todo el dispositivo</string>
|
||||
<string name="stats_hud_battery_temp">batería</string>
|
||||
<string name="bottom_art_title">Arte del juego</string>
|
||||
<string name="bottom_art_playing">Jugando</string>
|
||||
<string name="bottom_idle_selected">Seleccionado en Steam</string>
|
||||
<string name="bottom_idle_recent">Jugado por última vez</string>
|
||||
<string name="bottom_idle_play">Jugar</string>
|
||||
<string name="bottom_idle_never">Aún sin jugar</string>
|
||||
<string name="bottom_idle_minutes">%1$d min jugados</string>
|
||||
<string name="bottom_idle_hours">%1$d h jugadas</string>
|
||||
@@ -2102,6 +2103,8 @@
|
||||
<string name="bottom_chat_mic_off">Micro desactivado</string>
|
||||
<string name="bottom_chat_mic_unavailable">El micro está desactivado en este juego. Para hablar, activa Micrófono en los ajustes de Steam de DroidDeck (Audio) y vuelve a iniciar el juego.</string>
|
||||
<string name="bottom_chat_volume">Volumen %1$d%%</string>
|
||||
<string name="bottom_bar_hide">Ocultar barra</string>
|
||||
<string name="bottom_bar_show">Mostrar barra</string>
|
||||
<string name="bottom_brightness">Brillo de la pantalla inferior</string>
|
||||
<string name="bottom_screen_off">Apagar la pantalla inferior</string>
|
||||
<string name="bottom_page_guides">Guías</string>
|
||||
|
||||
@@ -2049,9 +2049,10 @@
|
||||
<string name="stats_hud_red_mark">Punainen merkki on kohta, jossa HUD alkaa näyttää lämpötilan punaisena.</string>
|
||||
<string name="stats_hud_whole_device">koko laite</string>
|
||||
<string name="stats_hud_battery_temp">akku</string>
|
||||
<string name="bottom_art_title">Pelin kuvitus</string>
|
||||
<string name="bottom_art_playing">Pelataan</string>
|
||||
<string name="bottom_idle_selected">Valittu Steamissä</string>
|
||||
<string name="bottom_idle_recent">Viimeksi pelattu</string>
|
||||
<string name="bottom_idle_play">Pelaa</string>
|
||||
<string name="bottom_idle_never">Ei vielä pelattu</string>
|
||||
<string name="bottom_idle_minutes">Pelattu %1$d min</string>
|
||||
<string name="bottom_idle_hours">Pelattu %1$d h</string>
|
||||
@@ -2077,6 +2078,8 @@
|
||||
<string name="bottom_chat_mic_off">Mikrofoni pois</string>
|
||||
<string name="bottom_chat_mic_unavailable">Mikrofoni on pois päältä tässä pelissä. Jos haluat puhua, kytke Mikrofoni päälle DroidDeckin Steam-asetuksissa (Ääni) ja käynnistä peli uudelleen.</string>
|
||||
<string name="bottom_chat_volume">Äänenvoimakkuus %1$d %%</string>
|
||||
<string name="bottom_bar_hide">Piilota palkki</string>
|
||||
<string name="bottom_bar_show">Näytä palkki</string>
|
||||
<string name="bottom_brightness">Alanäytön kirkkaus</string>
|
||||
<string name="bottom_screen_off">Sammuta alanäyttö</string>
|
||||
<string name="bottom_page_guides">Oppaat</string>
|
||||
|
||||
@@ -2073,9 +2073,10 @@
|
||||
<string name="stats_hud_red_mark">Le repère rouge indique où le HUD affiche la température en rouge.</string>
|
||||
<string name="stats_hud_whole_device">appareil entier</string>
|
||||
<string name="stats_hud_battery_temp">batterie</string>
|
||||
<string name="bottom_art_title">Illustration du jeu</string>
|
||||
<string name="bottom_art_playing">En cours</string>
|
||||
<string name="bottom_idle_selected">Sélectionné dans Steam</string>
|
||||
<string name="bottom_idle_recent">Joué récemment</string>
|
||||
<string name="bottom_idle_play">Jouer</string>
|
||||
<string name="bottom_idle_never">Pas encore joué</string>
|
||||
<string name="bottom_idle_minutes">%1$d min de jeu</string>
|
||||
<string name="bottom_idle_hours">%1$d h de jeu</string>
|
||||
@@ -2101,6 +2102,8 @@
|
||||
<string name="bottom_chat_mic_off">Micro désactivé</string>
|
||||
<string name="bottom_chat_mic_unavailable">Le micro est désactivé pour ce jeu. Pour parler, activez Microphone dans les paramètres Steam de DroidDeck (Audio), puis relancez le jeu.</string>
|
||||
<string name="bottom_chat_volume">Volume %1$d %%</string>
|
||||
<string name="bottom_bar_hide">Masquer la barre</string>
|
||||
<string name="bottom_bar_show">Afficher la barre</string>
|
||||
<string name="bottom_brightness">Luminosité de l’écran inférieur</string>
|
||||
<string name="bottom_screen_off">Éteindre l’écran du bas</string>
|
||||
<string name="bottom_page_guides">Guides</string>
|
||||
|
||||
@@ -2049,9 +2049,10 @@
|
||||
<string name="stats_hud_red_mark">लाल निशान वह बिंदु है जहाँ HUD तापमान को लाल रंग में दिखाता है।</string>
|
||||
<string name="stats_hud_whole_device">पूरा डिवाइस</string>
|
||||
<string name="stats_hud_battery_temp">बैटरी</string>
|
||||
<string name="bottom_art_title">गेम आर्ट</string>
|
||||
<string name="bottom_art_playing">खेल रहे हैं</string>
|
||||
<string name="bottom_idle_selected">Steam में चुना गया</string>
|
||||
<string name="bottom_idle_recent">पिछली बार खेला</string>
|
||||
<string name="bottom_idle_play">खेलें</string>
|
||||
<string name="bottom_idle_never">अभी तक नहीं खेला</string>
|
||||
<string name="bottom_idle_minutes">%1$d मिनट खेला</string>
|
||||
<string name="bottom_idle_hours">%1$d घंटे खेला</string>
|
||||
@@ -2077,6 +2078,8 @@
|
||||
<string name="bottom_chat_mic_off">माइक बंद</string>
|
||||
<string name="bottom_chat_mic_unavailable">इस गेम के लिए माइक बंद है। बात करने के लिए DroidDeck की Steam सेटिंग (ऑडियो) में माइक्रोफ़ोन चालू करें और गेम फिर से शुरू करें।</string>
|
||||
<string name="bottom_chat_volume">वॉल्यूम %1$d%%</string>
|
||||
<string name="bottom_bar_hide">बार छिपाएँ</string>
|
||||
<string name="bottom_bar_show">बार दिखाएँ</string>
|
||||
<string name="bottom_brightness">नीचे की स्क्रीन की चमक</string>
|
||||
<string name="bottom_screen_off">नीचे की स्क्रीन बंद करें</string>
|
||||
<string name="bottom_page_guides">गाइड</string>
|
||||
|
||||
@@ -2049,9 +2049,10 @@
|
||||
<string name="stats_hud_red_mark">A piros jelölés jelzi, hol jeleníti meg pirosan a HUD a hőmérsékletet.</string>
|
||||
<string name="stats_hud_whole_device">teljes eszköz</string>
|
||||
<string name="stats_hud_battery_temp">akkumulátor</string>
|
||||
<string name="bottom_art_title">Játékgrafika</string>
|
||||
<string name="bottom_art_playing">Játékban</string>
|
||||
<string name="bottom_idle_selected">Kiválasztva a Steamben</string>
|
||||
<string name="bottom_idle_recent">Legutóbb játszott</string>
|
||||
<string name="bottom_idle_play">Játék</string>
|
||||
<string name="bottom_idle_never">Még nem játszott</string>
|
||||
<string name="bottom_idle_minutes">%1$d perc játék</string>
|
||||
<string name="bottom_idle_hours">%1$d óra játék</string>
|
||||
@@ -2077,6 +2078,8 @@
|
||||
<string name="bottom_chat_mic_off">Mikrofon ki</string>
|
||||
<string name="bottom_chat_mic_unavailable">A mikrofon ki van kapcsolva ennél a játéknál. A beszédhez kapcsolja be a Mikrofon opciót a DroidDeck Steam-beállításaiban (Hang), majd indítsa újra a játékot.</string>
|
||||
<string name="bottom_chat_volume">Hangerő %1$d%%</string>
|
||||
<string name="bottom_bar_hide">Sáv elrejtése</string>
|
||||
<string name="bottom_bar_show">Sáv megjelenítése</string>
|
||||
<string name="bottom_brightness">Alsó kijelző fényereje</string>
|
||||
<string name="bottom_screen_off">Alsó képernyő kikapcsolása</string>
|
||||
<string name="bottom_page_guides">Útmutatók</string>
|
||||
|
||||
@@ -2025,9 +2025,10 @@
|
||||
<string name="stats_hud_red_mark">Tanda merah adalah batas saat HUD menampilkan suhu berwarna merah.</string>
|
||||
<string name="stats_hud_whole_device">seluruh perangkat</string>
|
||||
<string name="stats_hud_battery_temp">baterai</string>
|
||||
<string name="bottom_art_title">Gambar game</string>
|
||||
<string name="bottom_art_playing">Sedang dimainkan</string>
|
||||
<string name="bottom_idle_selected">Dipilih di Steam</string>
|
||||
<string name="bottom_idle_recent">Terakhir dimainkan</string>
|
||||
<string name="bottom_idle_play">Main</string>
|
||||
<string name="bottom_idle_never">Belum dimainkan</string>
|
||||
<string name="bottom_idle_minutes">%1$d mnt dimainkan</string>
|
||||
<string name="bottom_idle_hours">%1$d jam dimainkan</string>
|
||||
@@ -2053,6 +2054,8 @@
|
||||
<string name="bottom_chat_mic_off">Mik mati</string>
|
||||
<string name="bottom_chat_mic_unavailable">Mik mati untuk gim ini. Untuk berbicara, aktifkan Mikrofon di setelan Steam DroidDeck (Audio) lalu mulai gim lagi.</string>
|
||||
<string name="bottom_chat_volume">Volume %1$d%%</string>
|
||||
<string name="bottom_bar_hide">Sembunyikan bilah</string>
|
||||
<string name="bottom_bar_show">Tampilkan bilah</string>
|
||||
<string name="bottom_brightness">Kecerahan layar bawah</string>
|
||||
<string name="bottom_screen_off">Matikan layar bawah</string>
|
||||
<string name="bottom_page_guides">Panduan</string>
|
||||
|
||||
@@ -2065,9 +2065,10 @@
|
||||
<string name="stats_hud_red_mark">Il segno rosso indica dove l\'HUD mostra la temperatura in rosso.</string>
|
||||
<string name="stats_hud_whole_device">intero dispositivo</string>
|
||||
<string name="stats_hud_battery_temp">batteria</string>
|
||||
<string name="bottom_art_title">Immagini del gioco</string>
|
||||
<string name="bottom_art_playing">In gioco</string>
|
||||
<string name="bottom_idle_selected">Selezionato in Steam</string>
|
||||
<string name="bottom_idle_recent">Giocato di recente</string>
|
||||
<string name="bottom_idle_play">Gioca</string>
|
||||
<string name="bottom_idle_never">Non ancora giocato</string>
|
||||
<string name="bottom_idle_minutes">%1$d min di gioco</string>
|
||||
<string name="bottom_idle_hours">%1$d h di gioco</string>
|
||||
@@ -2093,6 +2094,8 @@
|
||||
<string name="bottom_chat_mic_off">Microfono disattivato</string>
|
||||
<string name="bottom_chat_mic_unavailable">Il microfono è disattivato per questo gioco. Per parlare, attiva Microfono nelle impostazioni Steam di DroidDeck (Audio) e riavvia il gioco.</string>
|
||||
<string name="bottom_chat_volume">Volume %1$d%%</string>
|
||||
<string name="bottom_bar_hide">Nascondi barra</string>
|
||||
<string name="bottom_bar_show">Mostra barra</string>
|
||||
<string name="bottom_brightness">Luminosità dello schermo inferiore</string>
|
||||
<string name="bottom_screen_off">Spegni lo schermo inferiore</string>
|
||||
<string name="bottom_page_guides">Guide</string>
|
||||
|
||||
@@ -2025,9 +2025,10 @@
|
||||
<string name="stats_hud_red_mark">赤いマークは、HUD が温度を赤で表示する位置です。</string>
|
||||
<string name="stats_hud_whole_device">デバイス全体</string>
|
||||
<string name="stats_hud_battery_temp">バッテリー</string>
|
||||
<string name="bottom_art_title">ゲームアート</string>
|
||||
<string name="bottom_art_playing">プレイ中</string>
|
||||
<string name="bottom_idle_selected">Steam で選択中</string>
|
||||
<string name="bottom_idle_recent">最近プレイ</string>
|
||||
<string name="bottom_idle_play">プレイ</string>
|
||||
<string name="bottom_idle_never">未プレイ</string>
|
||||
<string name="bottom_idle_minutes">%1$d 分プレイ</string>
|
||||
<string name="bottom_idle_hours">%1$d 時間プレイ</string>
|
||||
@@ -2053,6 +2054,8 @@
|
||||
<string name="bottom_chat_mic_off">マイク オフ</string>
|
||||
<string name="bottom_chat_mic_unavailable">このゲームではマイクがオフです。話すには、DroidDeckのSteam設定(オーディオ)でマイクをオンにして、ゲームを再起動してください。</string>
|
||||
<string name="bottom_chat_volume">音量 %1$d%%</string>
|
||||
<string name="bottom_bar_hide">バーを隠す</string>
|
||||
<string name="bottom_bar_show">バーを表示</string>
|
||||
<string name="bottom_brightness">下画面の明るさ</string>
|
||||
<string name="bottom_screen_off">下の画面をオフにする</string>
|
||||
<string name="bottom_page_guides">ガイド</string>
|
||||
|
||||
@@ -2025,9 +2025,10 @@
|
||||
<string name="stats_hud_red_mark">빨간색 표시는 HUD가 온도를 빨간색으로 표시하는 지점입니다.</string>
|
||||
<string name="stats_hud_whole_device">기기 전체</string>
|
||||
<string name="stats_hud_battery_temp">배터리</string>
|
||||
<string name="bottom_art_title">게임 아트</string>
|
||||
<string name="bottom_art_playing">플레이 중</string>
|
||||
<string name="bottom_idle_selected">Steam에서 선택됨</string>
|
||||
<string name="bottom_idle_recent">최근 플레이</string>
|
||||
<string name="bottom_idle_play">플레이</string>
|
||||
<string name="bottom_idle_never">아직 플레이 안 함</string>
|
||||
<string name="bottom_idle_minutes">%1$d분 플레이</string>
|
||||
<string name="bottom_idle_hours">%1$d시간 플레이</string>
|
||||
@@ -2053,6 +2054,8 @@
|
||||
<string name="bottom_chat_mic_off">마이크 꺼짐</string>
|
||||
<string name="bottom_chat_mic_unavailable">이 게임에서는 마이크가 꺼져 있습니다. 대화하려면 DroidDeck의 Steam 설정(오디오)에서 마이크를 켜고 게임을 다시 시작하세요.</string>
|
||||
<string name="bottom_chat_volume">볼륨 %1$d%%</string>
|
||||
<string name="bottom_bar_hide">막대 숨기기</string>
|
||||
<string name="bottom_bar_show">막대 표시</string>
|
||||
<string name="bottom_brightness">아래쪽 화면 밝기</string>
|
||||
<string name="bottom_screen_off">아래 화면 끄기</string>
|
||||
<string name="bottom_page_guides">가이드</string>
|
||||
|
||||
@@ -2025,9 +2025,10 @@
|
||||
<string name="stats_hud_red_mark">Tanda merah ialah tempat HUD memaparkan suhu dalam warna merah.</string>
|
||||
<string name="stats_hud_whole_device">seluruh peranti</string>
|
||||
<string name="stats_hud_battery_temp">bateri</string>
|
||||
<string name="bottom_art_title">Seni permainan</string>
|
||||
<string name="bottom_art_playing">Sedang dimainkan</string>
|
||||
<string name="bottom_idle_selected">Dipilih dalam Steam</string>
|
||||
<string name="bottom_idle_recent">Terakhir dimainkan</string>
|
||||
<string name="bottom_idle_play">Main</string>
|
||||
<string name="bottom_idle_never">Belum dimainkan</string>
|
||||
<string name="bottom_idle_minutes">%1$d min dimainkan</string>
|
||||
<string name="bottom_idle_hours">%1$d jam dimainkan</string>
|
||||
@@ -2053,6 +2054,8 @@
|
||||
<string name="bottom_chat_mic_off">Mikrofon mati</string>
|
||||
<string name="bottom_chat_mic_unavailable">Mikrofon dimatikan untuk permainan ini. Untuk bercakap, hidupkan Mikrofon dalam tetapan Steam DroidDeck (Audio) dan mulakan permainan semula.</string>
|
||||
<string name="bottom_chat_volume">Kelantangan %1$d%%</string>
|
||||
<string name="bottom_bar_hide">Sembunyikan bar</string>
|
||||
<string name="bottom_bar_show">Tunjukkan bar</string>
|
||||
<string name="bottom_brightness">Kecerahan skrin bawah</string>
|
||||
<string name="bottom_screen_off">Matikan skrin bawah</string>
|
||||
<string name="bottom_page_guides">Panduan</string>
|
||||
|
||||
@@ -2049,9 +2049,10 @@
|
||||
<string name="stats_hud_red_mark">Den røde markeringen er der HUD-en viser temperaturen i rødt.</string>
|
||||
<string name="stats_hud_whole_device">hele enheten</string>
|
||||
<string name="stats_hud_battery_temp">batteri</string>
|
||||
<string name="bottom_art_title">Spillgrafikk</string>
|
||||
<string name="bottom_art_playing">Spiller</string>
|
||||
<string name="bottom_idle_selected">Valgt i Steam</string>
|
||||
<string name="bottom_idle_recent">Sist spilt</string>
|
||||
<string name="bottom_idle_play">Spill</string>
|
||||
<string name="bottom_idle_never">Ikke spilt ennå</string>
|
||||
<string name="bottom_idle_minutes">%1$d min spilt</string>
|
||||
<string name="bottom_idle_hours">%1$d t spilt</string>
|
||||
@@ -2077,6 +2078,8 @@
|
||||
<string name="bottom_chat_mic_off">Mikrofon av</string>
|
||||
<string name="bottom_chat_mic_unavailable">Mikrofonen er av for dette spillet. For å snakke, slå på Mikrofon i DroidDecks Steam-innstillinger (Lyd) og start spillet på nytt.</string>
|
||||
<string name="bottom_chat_volume">Volum %1$d%%</string>
|
||||
<string name="bottom_bar_hide">Skjul linjen</string>
|
||||
<string name="bottom_bar_show">Vis linjen</string>
|
||||
<string name="bottom_brightness">Lysstyrke på nedre skjerm</string>
|
||||
<string name="bottom_screen_off">Slå av den nederste skjermen</string>
|
||||
<string name="bottom_page_guides">Guider</string>
|
||||
|
||||
@@ -2049,9 +2049,10 @@
|
||||
<string name="stats_hud_red_mark">De rode markering is het punt waarop de HUD de temperatuur in het rood weergeeft.</string>
|
||||
<string name="stats_hud_whole_device">hele apparaat</string>
|
||||
<string name="stats_hud_battery_temp">accu</string>
|
||||
<string name="bottom_art_title">Game-afbeelding</string>
|
||||
<string name="bottom_art_playing">Speelt</string>
|
||||
<string name="bottom_idle_selected">Geselecteerd in Steam</string>
|
||||
<string name="bottom_idle_recent">Laatst gespeeld</string>
|
||||
<string name="bottom_idle_play">Spelen</string>
|
||||
<string name="bottom_idle_never">Nog niet gespeeld</string>
|
||||
<string name="bottom_idle_minutes">%1$d min gespeeld</string>
|
||||
<string name="bottom_idle_hours">%1$d u gespeeld</string>
|
||||
@@ -2077,6 +2078,8 @@
|
||||
<string name="bottom_chat_mic_off">Microfoon uit</string>
|
||||
<string name="bottom_chat_mic_unavailable">De microfoon staat uit voor deze game. Zet Microfoon aan in de Steam-instellingen van DroidDeck (Audio) en start de game opnieuw om te praten.</string>
|
||||
<string name="bottom_chat_volume">Volume %1$d%%</string>
|
||||
<string name="bottom_bar_hide">Balk verbergen</string>
|
||||
<string name="bottom_bar_show">Balk tonen</string>
|
||||
<string name="bottom_brightness">Helderheid van het onderste scherm</string>
|
||||
<string name="bottom_screen_off">Onderste scherm uitzetten</string>
|
||||
<string name="bottom_page_guides">Handleidingen</string>
|
||||
|
||||
@@ -2099,9 +2099,10 @@
|
||||
<string name="stats_hud_red_mark">Czerwony znacznik wskazuje temperaturę, od której HUD wyświetla ją na czerwono.</string>
|
||||
<string name="stats_hud_whole_device">całe urządzenie</string>
|
||||
<string name="stats_hud_battery_temp">bateria</string>
|
||||
<string name="bottom_art_title">Grafika gry</string>
|
||||
<string name="bottom_art_playing">W grze</string>
|
||||
<string name="bottom_idle_selected">Wybrano w Steam</string>
|
||||
<string name="bottom_idle_recent">Ostatnio grane</string>
|
||||
<string name="bottom_idle_play">Graj</string>
|
||||
<string name="bottom_idle_never">Jeszcze nie grano</string>
|
||||
<string name="bottom_idle_minutes">%1$d min gry</string>
|
||||
<string name="bottom_idle_hours">%1$d godz. gry</string>
|
||||
@@ -2127,6 +2128,8 @@
|
||||
<string name="bottom_chat_mic_off">Mikrofon wył.</string>
|
||||
<string name="bottom_chat_mic_unavailable">Mikrofon jest wyłączony dla tej gry. Aby rozmawiać, włącz Mikrofon w ustawieniach Steam w DroidDeck (Dźwięk) i uruchom grę ponownie.</string>
|
||||
<string name="bottom_chat_volume">Głośność %1$d%%</string>
|
||||
<string name="bottom_bar_hide">Ukryj pasek</string>
|
||||
<string name="bottom_bar_show">Pokaż pasek</string>
|
||||
<string name="bottom_brightness">Jasność dolnego ekranu</string>
|
||||
<string name="bottom_screen_off">Wyłącz dolny ekran</string>
|
||||
<string name="bottom_page_guides">Poradniki</string>
|
||||
|
||||
@@ -2079,9 +2079,10 @@
|
||||
<string name="stats_hud_red_mark">A marca vermelha é o ponto em que o HUD mostra a temperatura a vermelho.</string>
|
||||
<string name="stats_hud_whole_device">todo o dispositivo</string>
|
||||
<string name="stats_hud_battery_temp">bateria</string>
|
||||
<string name="bottom_art_title">Arte do jogo</string>
|
||||
<string name="bottom_art_playing">A jogar</string>
|
||||
<string name="bottom_idle_selected">Selecionado no Steam</string>
|
||||
<string name="bottom_idle_recent">Jogado por último</string>
|
||||
<string name="bottom_idle_play">Jogar</string>
|
||||
<string name="bottom_idle_never">Ainda não jogado</string>
|
||||
<string name="bottom_idle_minutes">%1$d min jogados</string>
|
||||
<string name="bottom_idle_hours">%1$d h jogadas</string>
|
||||
@@ -2107,6 +2108,8 @@
|
||||
<string name="bottom_chat_mic_off">Microfone desligado</string>
|
||||
<string name="bottom_chat_mic_unavailable">O microfone está desligado neste jogo. Para falar, ative Microfone nas definições do Steam do DroidDeck (Áudio) e volte a iniciar o jogo.</string>
|
||||
<string name="bottom_chat_volume">Volume %1$d%%</string>
|
||||
<string name="bottom_bar_hide">Ocultar barra</string>
|
||||
<string name="bottom_bar_show">Mostrar barra</string>
|
||||
<string name="bottom_brightness">Brilho do ecrã inferior</string>
|
||||
<string name="bottom_screen_off">Desligar o ecrã inferior</string>
|
||||
<string name="bottom_page_guides">Guias</string>
|
||||
|
||||
@@ -2087,9 +2087,10 @@
|
||||
<string name="stats_hud_red_mark">A marca vermelha indica onde o HUD mostra a temperatura em vermelho.</string>
|
||||
<string name="stats_hud_whole_device">dispositivo inteiro</string>
|
||||
<string name="stats_hud_battery_temp">bateria</string>
|
||||
<string name="bottom_art_title">Arte do jogo</string>
|
||||
<string name="bottom_art_playing">Jogando</string>
|
||||
<string name="bottom_idle_selected">Selecionado no Steam</string>
|
||||
<string name="bottom_idle_recent">Jogado por último</string>
|
||||
<string name="bottom_idle_play">Jogar</string>
|
||||
<string name="bottom_idle_never">Ainda não jogado</string>
|
||||
<string name="bottom_idle_minutes">%1$d min jogados</string>
|
||||
<string name="bottom_idle_hours">%1$d h jogadas</string>
|
||||
@@ -2115,6 +2116,8 @@
|
||||
<string name="bottom_chat_mic_off">Microfone desligado</string>
|
||||
<string name="bottom_chat_mic_unavailable">O microfone está desligado neste jogo. Para falar, ative Microfone nas configurações da Steam do DroidDeck (Áudio) e inicie o jogo de novo.</string>
|
||||
<string name="bottom_chat_volume">Volume %1$d%%</string>
|
||||
<string name="bottom_bar_hide">Ocultar barra</string>
|
||||
<string name="bottom_bar_show">Mostrar barra</string>
|
||||
<string name="bottom_brightness">Brilho da tela inferior</string>
|
||||
<string name="bottom_screen_off">Desligar a tela inferior</string>
|
||||
<string name="bottom_page_guides">Guias</string>
|
||||
|
||||
@@ -2074,9 +2074,10 @@
|
||||
<string name="stats_hud_red_mark">Marcajul roșu indică locul în care HUD-ul afișează temperatura în roșu.</string>
|
||||
<string name="stats_hud_whole_device">tot dispozitivul</string>
|
||||
<string name="stats_hud_battery_temp">baterie</string>
|
||||
<string name="bottom_art_title">Imagini din joc</string>
|
||||
<string name="bottom_art_playing">Se joacă</string>
|
||||
<string name="bottom_idle_selected">Selectat în Steam</string>
|
||||
<string name="bottom_idle_recent">Jucat ultima dată</string>
|
||||
<string name="bottom_idle_play">Joacă</string>
|
||||
<string name="bottom_idle_never">Nejucat încă</string>
|
||||
<string name="bottom_idle_minutes">%1$d min jucate</string>
|
||||
<string name="bottom_idle_hours">%1$d h jucate</string>
|
||||
@@ -2102,6 +2103,8 @@
|
||||
<string name="bottom_chat_mic_off">Microfon oprit</string>
|
||||
<string name="bottom_chat_mic_unavailable">Microfonul este oprit pentru acest joc. Pentru a vorbi, activează Microfon în setările Steam din DroidDeck (Sunet) și pornește din nou jocul.</string>
|
||||
<string name="bottom_chat_volume">Volum %1$d%%</string>
|
||||
<string name="bottom_bar_hide">Ascunde bara</string>
|
||||
<string name="bottom_bar_show">Afișează bara</string>
|
||||
<string name="bottom_brightness">Luminozitatea ecranului de jos</string>
|
||||
<string name="bottom_screen_off">Oprește ecranul de jos</string>
|
||||
<string name="bottom_page_guides">Ghiduri</string>
|
||||
|
||||
@@ -2100,9 +2100,10 @@
|
||||
<string name="stats_hud_red_mark">Красная отметка — температура, с которой HUD показывает значение красным.</string>
|
||||
<string name="stats_hud_whole_device">все устройство</string>
|
||||
<string name="stats_hud_battery_temp">батарея</string>
|
||||
<string name="bottom_art_title">Обложка игры</string>
|
||||
<string name="bottom_art_playing">Идёт игра</string>
|
||||
<string name="bottom_idle_selected">Выбрано в Steam</string>
|
||||
<string name="bottom_idle_recent">Последняя игра</string>
|
||||
<string name="bottom_idle_play">Играть</string>
|
||||
<string name="bottom_idle_never">Ещё не запускалась</string>
|
||||
<string name="bottom_idle_minutes">Сыграно %1$d мин</string>
|
||||
<string name="bottom_idle_hours">Сыграно %1$d ч</string>
|
||||
@@ -2128,6 +2129,8 @@
|
||||
<string name="bottom_chat_mic_off">Микрофон выкл.</string>
|
||||
<string name="bottom_chat_mic_unavailable">Микрофон для этой игры выключен. Чтобы говорить, включите «Микрофон» в настройках Steam в DroidDeck (Аудио) и запустите игру снова.</string>
|
||||
<string name="bottom_chat_volume">Громкость %1$d%%</string>
|
||||
<string name="bottom_bar_hide">Скрыть панель</string>
|
||||
<string name="bottom_bar_show">Показать панель</string>
|
||||
<string name="bottom_brightness">Яркость нижнего экрана</string>
|
||||
<string name="bottom_screen_off">Выключить нижний экран</string>
|
||||
<string name="bottom_page_guides">Руководства</string>
|
||||
|
||||
@@ -2049,9 +2049,10 @@
|
||||
<string name="stats_hud_red_mark">Det röda märket är där HUD:en visar temperaturen i rött.</string>
|
||||
<string name="stats_hud_whole_device">hela enheten</string>
|
||||
<string name="stats_hud_battery_temp">batteri</string>
|
||||
<string name="bottom_art_title">Spelgrafik</string>
|
||||
<string name="bottom_art_playing">Spelar</string>
|
||||
<string name="bottom_idle_selected">Vald i Steam</string>
|
||||
<string name="bottom_idle_recent">Senast spelad</string>
|
||||
<string name="bottom_idle_play">Spela</string>
|
||||
<string name="bottom_idle_never">Inte spelad än</string>
|
||||
<string name="bottom_idle_minutes">%1$d min spelat</string>
|
||||
<string name="bottom_idle_hours">%1$d tim spelat</string>
|
||||
@@ -2077,6 +2078,8 @@
|
||||
<string name="bottom_chat_mic_off">Mikrofon av</string>
|
||||
<string name="bottom_chat_mic_unavailable">Mikrofonen är avstängd för det här spelet. Slå på Mikrofon i DroidDecks Steam-inställningar (Ljud) och starta spelet igen för att prata.</string>
|
||||
<string name="bottom_chat_volume">Volym %1$d%%</string>
|
||||
<string name="bottom_bar_hide">Dölj fältet</string>
|
||||
<string name="bottom_bar_show">Visa fältet</string>
|
||||
<string name="bottom_brightness">Ljusstyrka för nedre skärmen</string>
|
||||
<string name="bottom_screen_off">Stäng av den nedre skärmen</string>
|
||||
<string name="bottom_page_guides">Guider</string>
|
||||
|
||||
@@ -2025,9 +2025,10 @@
|
||||
<string name="stats_hud_red_mark">ขีดสีแดงคือจุดที่ HUD แสดงอุณหภูมิเป็นสีแดง</string>
|
||||
<string name="stats_hud_whole_device">ทั้งเครื่อง</string>
|
||||
<string name="stats_hud_battery_temp">แบตเตอรี่</string>
|
||||
<string name="bottom_art_title">ภาพเกม</string>
|
||||
<string name="bottom_art_playing">กำลังเล่น</string>
|
||||
<string name="bottom_idle_selected">เลือกใน Steam</string>
|
||||
<string name="bottom_idle_recent">เล่นล่าสุด</string>
|
||||
<string name="bottom_idle_play">เล่น</string>
|
||||
<string name="bottom_idle_never">ยังไม่ได้เล่น</string>
|
||||
<string name="bottom_idle_minutes">เล่นแล้ว %1$d นาที</string>
|
||||
<string name="bottom_idle_hours">เล่นแล้ว %1$d ชม.</string>
|
||||
@@ -2053,6 +2054,8 @@
|
||||
<string name="bottom_chat_mic_off">ไมค์ปิด</string>
|
||||
<string name="bottom_chat_mic_unavailable">ไมค์ปิดอยู่สำหรับเกมนี้ หากต้องการพูด ให้เปิดไมโครโฟนในการตั้งค่า Steam ของ DroidDeck (เสียง) แล้วเริ่มเกมอีกครั้ง</string>
|
||||
<string name="bottom_chat_volume">ระดับเสียง %1$d%%</string>
|
||||
<string name="bottom_bar_hide">ซ่อนแถบ</string>
|
||||
<string name="bottom_bar_show">แสดงแถบ</string>
|
||||
<string name="bottom_brightness">ความสว่างของหน้าจอล่าง</string>
|
||||
<string name="bottom_screen_off">ปิดหน้าจอล่าง</string>
|
||||
<string name="bottom_page_guides">คู่มือ</string>
|
||||
|
||||
@@ -2041,9 +2041,10 @@
|
||||
<string name="stats_hud_red_mark">Kırmızı işaret, sıcaklığın HUD üzerinde kırmızı göründüğü yerdir.</string>
|
||||
<string name="stats_hud_whole_device">tüm cihaz</string>
|
||||
<string name="stats_hud_battery_temp">pil</string>
|
||||
<string name="bottom_art_title">Oyun görseli</string>
|
||||
<string name="bottom_art_playing">Oynanıyor</string>
|
||||
<string name="bottom_idle_selected">Steam\'de seçili</string>
|
||||
<string name="bottom_idle_recent">Son oynanan</string>
|
||||
<string name="bottom_idle_play">Oyna</string>
|
||||
<string name="bottom_idle_never">Henüz oynanmadı</string>
|
||||
<string name="bottom_idle_minutes">%1$d dk oynandı</string>
|
||||
<string name="bottom_idle_hours">%1$d sa oynandı</string>
|
||||
@@ -2069,6 +2070,8 @@
|
||||
<string name="bottom_chat_mic_off">Mikrofon kapalı</string>
|
||||
<string name="bottom_chat_mic_unavailable">Bu oyun için mikrofon kapalı. Konuşmak için DroidDeck\'in Steam ayarlarında (Ses) Mikrofon\'u açın ve oyunu yeniden başlatın.</string>
|
||||
<string name="bottom_chat_volume">Ses düzeyi %1$d%%</string>
|
||||
<string name="bottom_bar_hide">Çubuğu gizle</string>
|
||||
<string name="bottom_bar_show">Çubuğu göster</string>
|
||||
<string name="bottom_brightness">Alt ekran parlaklığı</string>
|
||||
<string name="bottom_screen_off">Alt ekranı kapat</string>
|
||||
<string name="bottom_page_guides">Rehberler</string>
|
||||
|
||||
@@ -2099,9 +2099,10 @@
|
||||
<string name="stats_hud_red_mark">Червона позначка — це поріг, після якого HUD показує температуру червоним.</string>
|
||||
<string name="stats_hud_whole_device">весь пристрій</string>
|
||||
<string name="stats_hud_battery_temp">акумулятор</string>
|
||||
<string name="bottom_art_title">Обкладинка гри</string>
|
||||
<string name="bottom_art_playing">Триває гра</string>
|
||||
<string name="bottom_idle_selected">Вибрано в Steam</string>
|
||||
<string name="bottom_idle_recent">Остання гра</string>
|
||||
<string name="bottom_idle_play">Грати</string>
|
||||
<string name="bottom_idle_never">Ще не запускалася</string>
|
||||
<string name="bottom_idle_minutes">Зіграно %1$d хв</string>
|
||||
<string name="bottom_idle_hours">Зіграно %1$d год</string>
|
||||
@@ -2127,6 +2128,8 @@
|
||||
<string name="bottom_chat_mic_off">Мікрофон вимкнено</string>
|
||||
<string name="bottom_chat_mic_unavailable">Для цієї гри мікрофон вимкнено. Щоб говорити, увімкніть «Мікрофон» у налаштуваннях Steam у DroidDeck (Звук) і запустіть гру знову.</string>
|
||||
<string name="bottom_chat_volume">Гучність %1$d%%</string>
|
||||
<string name="bottom_bar_hide">Сховати панель</string>
|
||||
<string name="bottom_bar_show">Показати панель</string>
|
||||
<string name="bottom_brightness">Яскравість нижнього екрана</string>
|
||||
<string name="bottom_screen_off">Вимкнути нижній екран</string>
|
||||
<string name="bottom_page_guides">Посібники</string>
|
||||
|
||||
@@ -2025,9 +2025,10 @@
|
||||
<string name="stats_hud_red_mark">Vạch đỏ là vị trí HUD hiển thị nhiệt độ bằng màu đỏ.</string>
|
||||
<string name="stats_hud_whole_device">toàn thiết bị</string>
|
||||
<string name="stats_hud_battery_temp">pin</string>
|
||||
<string name="bottom_art_title">Hình ảnh trò chơi</string>
|
||||
<string name="bottom_art_playing">Đang chơi</string>
|
||||
<string name="bottom_idle_selected">Đã chọn trong Steam</string>
|
||||
<string name="bottom_idle_recent">Chơi gần đây</string>
|
||||
<string name="bottom_idle_play">Chơi</string>
|
||||
<string name="bottom_idle_never">Chưa chơi</string>
|
||||
<string name="bottom_idle_minutes">Đã chơi %1$d phút</string>
|
||||
<string name="bottom_idle_hours">Đã chơi %1$d giờ</string>
|
||||
@@ -2053,6 +2054,8 @@
|
||||
<string name="bottom_chat_mic_off">Micro tắt</string>
|
||||
<string name="bottom_chat_mic_unavailable">Micro đang tắt cho game này. Để nói chuyện, hãy bật Micro trong thiết lập Steam của DroidDeck (Âm thanh) rồi khởi động lại game.</string>
|
||||
<string name="bottom_chat_volume">Âm lượng %1$d%%</string>
|
||||
<string name="bottom_bar_hide">Ẩn thanh</string>
|
||||
<string name="bottom_bar_show">Hiện thanh</string>
|
||||
<string name="bottom_brightness">Độ sáng màn hình dưới</string>
|
||||
<string name="bottom_screen_off">Tắt màn hình dưới</string>
|
||||
<string name="bottom_page_guides">Hướng dẫn</string>
|
||||
|
||||
@@ -2102,9 +2102,10 @@
|
||||
<string name="stats_hud_red_mark">红色标记处,HUD 会以红色显示温度。</string>
|
||||
<string name="stats_hud_whole_device">整机</string>
|
||||
<string name="stats_hud_battery_temp">电池</string>
|
||||
<string name="bottom_art_title">游戏插图</string>
|
||||
<string name="bottom_art_playing">正在游玩</string>
|
||||
<string name="bottom_idle_selected">在 Steam 中选中</string>
|
||||
<string name="bottom_idle_recent">最近玩过</string>
|
||||
<string name="bottom_idle_play">开始游戏</string>
|
||||
<string name="bottom_idle_never">尚未玩过</string>
|
||||
<string name="bottom_idle_minutes">已玩 %1$d 分钟</string>
|
||||
<string name="bottom_idle_hours">已玩 %1$d 小时</string>
|
||||
@@ -2130,6 +2131,8 @@
|
||||
<string name="bottom_chat_mic_off">麦克风已关</string>
|
||||
<string name="bottom_chat_mic_unavailable">此游戏的麦克风已关闭。如需语音通话,请在 DroidDeck 的 Steam 设置(音频)中开启麦克风,然后重新启动游戏。</string>
|
||||
<string name="bottom_chat_volume">音量 %1$d%%</string>
|
||||
<string name="bottom_bar_hide">隐藏栏</string>
|
||||
<string name="bottom_bar_show">显示栏</string>
|
||||
<string name="bottom_brightness">下屏幕亮度</string>
|
||||
<string name="bottom_screen_off">关闭下屏</string>
|
||||
<string name="bottom_page_guides">指南</string>
|
||||
|
||||
@@ -2024,9 +2024,10 @@
|
||||
<string name="stats_hud_red_mark">紅色標記是 HUD 將溫度顯示為紅色的界線。</string>
|
||||
<string name="stats_hud_whole_device">整機</string>
|
||||
<string name="stats_hud_battery_temp">電池</string>
|
||||
<string name="bottom_art_title">遊戲美術</string>
|
||||
<string name="bottom_art_playing">遊玩中</string>
|
||||
<string name="bottom_idle_selected">在 Steam 中選取</string>
|
||||
<string name="bottom_idle_recent">最近玩過</string>
|
||||
<string name="bottom_idle_play">開始遊戲</string>
|
||||
<string name="bottom_idle_never">尚未玩過</string>
|
||||
<string name="bottom_idle_minutes">已玩 %1$d 分鐘</string>
|
||||
<string name="bottom_idle_hours">已玩 %1$d 小時</string>
|
||||
@@ -2052,6 +2053,8 @@
|
||||
<string name="bottom_chat_mic_off">麥克風已關閉</string>
|
||||
<string name="bottom_chat_mic_unavailable">此遊戲的麥克風已關閉。若要說話,請在 DroidDeck 的 Steam 設定(音訊)中開啟麥克風,然後重新啟動遊戲。</string>
|
||||
<string name="bottom_chat_volume">音量 %1$d%%</string>
|
||||
<string name="bottom_bar_hide">隱藏列</string>
|
||||
<string name="bottom_bar_show">顯示列</string>
|
||||
<string name="bottom_brightness">下方螢幕亮度</string>
|
||||
<string name="bottom_screen_off">關閉下螢幕</string>
|
||||
<string name="bottom_page_guides">指南</string>
|
||||
|
||||
@@ -2024,9 +2024,10 @@
|
||||
<string name="stats_hud_red_mark">紅色標記是 HUD 將溫度顯示為紅色的位置。</string>
|
||||
<string name="stats_hud_whole_device">整台裝置</string>
|
||||
<string name="stats_hud_battery_temp">電池</string>
|
||||
<string name="bottom_art_title">遊戲美術</string>
|
||||
<string name="bottom_art_playing">遊玩中</string>
|
||||
<string name="bottom_idle_selected">在 Steam 中選取</string>
|
||||
<string name="bottom_idle_recent">最近玩過</string>
|
||||
<string name="bottom_idle_play">開始遊戲</string>
|
||||
<string name="bottom_idle_never">尚未玩過</string>
|
||||
<string name="bottom_idle_minutes">已玩 %1$d 分鐘</string>
|
||||
<string name="bottom_idle_hours">已玩 %1$d 小時</string>
|
||||
@@ -2052,6 +2053,8 @@
|
||||
<string name="bottom_chat_mic_off">麥克風已關閉</string>
|
||||
<string name="bottom_chat_mic_unavailable">此遊戲的麥克風已關閉。若要說話,請在 DroidDeck 的 Steam 設定(音訊)中開啟麥克風,然後重新啟動遊戲。</string>
|
||||
<string name="bottom_chat_volume">音量 %1$d%%</string>
|
||||
<string name="bottom_bar_hide">隱藏列</string>
|
||||
<string name="bottom_bar_show">顯示列</string>
|
||||
<string name="bottom_brightness">下方螢幕亮度</string>
|
||||
<string name="bottom_screen_off">關閉下螢幕</string>
|
||||
<string name="bottom_page_guides">指南</string>
|
||||
|
||||
@@ -2319,9 +2319,10 @@
|
||||
<string name="stats_hud_red_mark">The red mark is where the HUD shows the temperature in red.</string>
|
||||
<string name="stats_hud_whole_device">whole device</string>
|
||||
<string name="stats_hud_battery_temp">battery</string>
|
||||
<string name="bottom_art_title">Game art</string>
|
||||
<string name="bottom_art_playing">Playing</string>
|
||||
<string name="bottom_idle_selected">Selected in Steam</string>
|
||||
<string name="bottom_idle_recent">Last played</string>
|
||||
<string name="bottom_idle_play">Play</string>
|
||||
<string name="bottom_idle_never">Not played yet</string>
|
||||
<string name="bottom_idle_minutes">%1$d min played</string>
|
||||
<string name="bottom_idle_hours">%1$d h played</string>
|
||||
@@ -2348,6 +2349,8 @@
|
||||
<string name="bottom_chat_mic_off">Mic off</string>
|
||||
<string name="bottom_chat_mic_unavailable">Mic is off for this game. To talk, turn on Microphone in DroidDeck\'s Steam settings (Audio) and start the game again.</string>
|
||||
<string name="bottom_chat_volume">Volume %1$d%%</string>
|
||||
<string name="bottom_bar_hide">Hide bar</string>
|
||||
<string name="bottom_bar_show">Show bar</string>
|
||||
<string name="bottom_brightness">Bottom screen brightness</string>
|
||||
<string name="bottom_screen_off">Turn off the bottom screen</string>
|
||||
<string name="bottom_page_guides">Guides</string>
|
||||
@@ -2406,7 +2409,6 @@
|
||||
<string name="bottom_guides_link_ign" translatable="false">IGN</string>
|
||||
<string name="bottom_guides_link_hltb" translatable="false">HowLongToBeat</string>
|
||||
<string name="bottom_guides_search_mapgenie" translatable="false">Map Genie</string>
|
||||
<string name="bottom_guides_search_vgmaps" translatable="false">VGMaps</string>
|
||||
<string name="bottom_guides_tier_platinum" translatable="false">Platinum</string>
|
||||
<string name="bottom_guides_tier_gold" translatable="false">Gold</string>
|
||||
<string name="bottom_guides_tier_silver" translatable="false">Silver</string>
|
||||
|
||||
@@ -105,6 +105,12 @@ class SecondScreenModeTest {
|
||||
assertEquals(SecondScreenMode.MENU, SecondScreenMode.opening("steam-qam", deckPad = true, steam = true))
|
||||
}
|
||||
|
||||
@Test fun gameArtOpensAgainOnlyInASteamSession() {
|
||||
assertEquals(SecondScreenMode.ART, SecondScreenMode.opening("art", deckPad = true, dashboard = true, steam = true))
|
||||
assertEquals(SecondScreenMode.MENU, SecondScreenMode.opening("art", deckPad = true, dashboard = true))
|
||||
assertTrue(SecondScreenMode.ART.sessionPanel)
|
||||
}
|
||||
|
||||
@Test fun theDesktopOpensAgainOnlyWhileItCanRun() {
|
||||
assertEquals(SecondScreenMode.DESKTOP, SecondScreenMode.opening("desktop", deckPad = true, dashboard = true, bottomDesktop = true))
|
||||
assertEquals(SecondScreenMode.MENU, SecondScreenMode.opening("desktop", deckPad = true, dashboard = true))
|
||||
|
||||
@@ -47,10 +47,54 @@ class GameLinksTest {
|
||||
}
|
||||
|
||||
@Test
|
||||
fun searchesEncodeTheName() {
|
||||
val youtube = GameLinks.searches("Arcade Paradise").first { it.id == "youtube" }.url
|
||||
fun searchesStayOnTheSitesAndSkipGameFaqsWhenItHasAPage() {
|
||||
val youtube = GameLinks.searches("Arcade Paradise", emptyList()).first { it.id == "youtube" }.url
|
||||
assertEquals("https://m.youtube.com/results?search_query=Arcade+Paradise+walkthrough", youtube)
|
||||
assertTrue(GameLinks.mapSearches("Elden Ring").all { it.url.startsWith("https://duckduckgo.com/html/?q=site%3A") })
|
||||
assertTrue(GameLinks.searches("Bully", emptyList()).none { "duckduckgo" in it.url })
|
||||
val faqs = GameLinks.Link(GameLinks.Kind.GAMEFAQS, "https://gamefaqs.gamespot.com/-/1-")
|
||||
assertEquals(listOf("youtube"), GameLinks.searches("Bully", listOf(faqs)).map { it.id })
|
||||
}
|
||||
|
||||
@Test
|
||||
fun slugsTryTheFullNameThenTheShortOne() {
|
||||
assertEquals(listOf("bully-scholarship-edition", "bully"), GameLinks.slugs("Bully: Scholarship Edition"))
|
||||
assertEquals(listOf("sonic-mania"), GameLinks.slugs("Sonic Mania"))
|
||||
assertEquals(listOf("tom-clancys-the-division-2"), GameLinks.slugs("Tom Clancy’s The Division 2"))
|
||||
assertEquals(listOf("hotline-miami"), GameLinks.slugs("Hotline Miami™"))
|
||||
}
|
||||
|
||||
@Test
|
||||
fun directPagesComeFromTheSitesOwnRoutes() {
|
||||
val live = setOf("https://mapgenie.io/bully", "https://www.ign.com/wikis/bully", "https://bully.fandom.com/api.php?action=query&meta=siteinfo&format=json")
|
||||
val found = GameLinks.direct("Bully: Scholarship Edition",
|
||||
listOf(GameLinks.Link(GameLinks.Kind.IGN, "https://www.ign.com/games/bully-scholarship-edition")),
|
||||
exists = { it in live }, strategyWiki = { if (it == "Bully") "https://strategywiki.org/wiki/Bully" else null })
|
||||
assertEquals(mapOf(
|
||||
GameLinks.Kind.MAPGENIE to "https://mapgenie.io/bully",
|
||||
GameLinks.Kind.IGN to "https://www.ign.com/wikis/bully",
|
||||
GameLinks.Kind.WIKI to "https://bully.fandom.com/",
|
||||
GameLinks.Kind.STRATEGYWIKI to "https://strategywiki.org/wiki/Bully",
|
||||
), found.associate { it.kind to it.url })
|
||||
assertTrue(found.none { "duckduckgo" in it.url })
|
||||
}
|
||||
|
||||
@Test
|
||||
fun aMissingSiteLeavesWikidataLinksAlone() {
|
||||
val ign = GameLinks.Link(GameLinks.Kind.IGN, "https://www.ign.com/games/x")
|
||||
assertEquals(listOf(ign), GameLinks.direct("X", listOf(ign), exists = { false }, strategyWiki = { null }))
|
||||
}
|
||||
|
||||
@Test
|
||||
fun openSearchPicksTheExactTitle() {
|
||||
val json = """["Bully",["Bully's Sporting Darts","Bully"],["",""],["https://strategywiki.org/wiki/Bully%27s_Sporting_Darts","https://strategywiki.org/wiki/Bully"]]"""
|
||||
assertEquals("https://strategywiki.org/wiki/Bully", GameLinks.parseOpenSearch(json, "Bully"))
|
||||
assertNull(GameLinks.parseOpenSearch(json, "Canis Canem Edit"))
|
||||
}
|
||||
|
||||
@Test
|
||||
fun cachedLinksRoundTrip() {
|
||||
val links = listOf(GameLinks.Link(GameLinks.Kind.MAPGENIE, "https://mapgenie.io/bully"))
|
||||
assertEquals(links, GameLinks.readLinks(GameLinks.writeLinks(links)))
|
||||
}
|
||||
|
||||
@Test
|
||||
|
||||
@@ -0,0 +1,36 @@
|
||||
package com.droiddeck.launcher.ui
|
||||
|
||||
import org.junit.After
|
||||
import org.junit.Assert.assertFalse
|
||||
import org.junit.Assert.assertTrue
|
||||
import org.junit.Test
|
||||
|
||||
class BottomChromeTest {
|
||||
@After fun clear() {
|
||||
BottomChrome.reset()
|
||||
}
|
||||
|
||||
@Test fun aFullScreenPanelHidesTheBarAndThePullTabBringsItBack() {
|
||||
assertTrue(BottomChrome.barShown)
|
||||
BottomChrome.request(true)
|
||||
assertFalse(BottomChrome.barShown)
|
||||
BottomChrome.show(true)
|
||||
assertTrue(BottomChrome.barShown)
|
||||
BottomChrome.request(false)
|
||||
assertTrue(BottomChrome.barShown)
|
||||
}
|
||||
|
||||
@Test fun hidingByHandLastsUntilAPanelChangesItsRequest() {
|
||||
BottomChrome.show(false)
|
||||
assertFalse(BottomChrome.barShown)
|
||||
BottomChrome.request(true)
|
||||
BottomChrome.request(false)
|
||||
assertTrue(BottomChrome.barShown)
|
||||
}
|
||||
|
||||
@Test fun moreReleasesThanRequestsNeverHideTheBarForGood() {
|
||||
BottomChrome.request(false)
|
||||
BottomChrome.request(false)
|
||||
assertTrue(BottomChrome.barShown)
|
||||
}
|
||||
}
|
||||
@@ -112,13 +112,13 @@ class SecondScreenBarTest {
|
||||
assertEquals(context.getString(R.string.second_mode_keyboard_trackpad), bar.title)
|
||||
assertNotNull(bar.onClose); assertNotNull(bar.onMenu); assertNotNull(bar.onSteam); assertNotNull(bar.onQam)
|
||||
assertNull(bar.tabs)
|
||||
assertEquals(listOf("bottom-keyboard", "bottom-swap", "bottom-brightness-toggle"), bar.extras.map { it.tag })
|
||||
assertEquals(listOf("bottom-keyboard", "bottom-swap", "bottom-brightness-toggle", "bottom-bar-hide"), bar.extras.map { it.tag })
|
||||
val keyboard = bar.extras.first()
|
||||
assertEquals(context.getString(R.string.second_show_keyboard), keyboard.description)
|
||||
assertFalse(keyboard.active)
|
||||
bar.extras.first { it.tag == "bottom-swap" }.onClick()
|
||||
assertEquals(1, swaps)
|
||||
assertEquals(listOf("bottom-keyboard", "bottom-swap", "bottom-brightness-toggle"), panel.barModel(SecondScreenMode.TERMINAL)!!.extras.map { it.tag })
|
||||
assertEquals(listOf("bottom-keyboard", "bottom-swap", "bottom-brightness-toggle", "bottom-bar-hide"), panel.barModel(SecondScreenMode.TERMINAL)!!.extras.map { it.tag })
|
||||
ReflectionHelpers.getField<MutableState<Boolean>>(panel, "keyboardShown").value = true
|
||||
val shown = panel.barModel(SecondScreenMode.KEYBOARD_TRACKPAD)!!.extras.first()
|
||||
assertEquals(context.getString(R.string.second_hide_keyboard), shown.description)
|
||||
@@ -137,7 +137,7 @@ class SecondScreenBarTest {
|
||||
assertTrue(rootChildren(panel)[0] is ComposeView)
|
||||
val bar = panel.barModel(SecondScreenMode.DECK_CONTROLS)!!
|
||||
assertEquals(context.getString(R.string.second_mode_deck_controls), bar.title)
|
||||
assertEquals(listOf(context.getString(R.string.swap_screens), context.getString(R.string.bottom_brightness)), bar.extras.map { it.description })
|
||||
assertEquals(listOf(context.getString(R.string.swap_screens), context.getString(R.string.bottom_brightness), context.getString(R.string.bottom_bar_hide)), bar.extras.map { it.description })
|
||||
bar.extras.first { it.tag == "bottom-swap" }.onClick()
|
||||
assertEquals(1, swaps)
|
||||
assertEquals(DeckPanel.entries.map { context.getString(it.label) }, bar.tabs!!.labels)
|
||||
@@ -145,7 +145,7 @@ class SecondScreenBarTest {
|
||||
panel.showMode(SecondScreenMode.CUSTOM_CONTROLS)
|
||||
val profile = panel.barModel(SecondScreenMode.CUSTOM_CONTROLS)!!
|
||||
assertEquals(context.getString(R.string.input_profile_controls_mode), profile.title)
|
||||
assertEquals(listOf(context.getString(R.string.swap_screens), context.getString(R.string.bottom_brightness)), profile.extras.map { it.description })
|
||||
assertEquals(listOf(context.getString(R.string.swap_screens), context.getString(R.string.bottom_brightness), context.getString(R.string.bottom_bar_hide)), profile.extras.map { it.description })
|
||||
assertNotNull(profile.onClose); assertNotNull(profile.onMenu)
|
||||
profile.extras.first { it.tag == "bottom-swap" }.onClick()
|
||||
assertEquals(2, swaps)
|
||||
@@ -156,9 +156,9 @@ class SecondScreenBarTest {
|
||||
try {
|
||||
noSwap.show()
|
||||
noSwap.showMode(SecondScreenMode.DECK_CONTROLS)
|
||||
assertEquals(listOf("bottom-brightness-toggle"), noSwap.barModel(SecondScreenMode.DECK_CONTROLS)!!.extras.map { it.tag })
|
||||
assertEquals(listOf("bottom-keyboard", "bottom-brightness-toggle"), noSwap.barModel(SecondScreenMode.TERMINAL)!!.extras.map { it.tag })
|
||||
assertEquals(listOf("bottom-keyboard", "bottom-brightness-toggle"), noSwap.barModel(SecondScreenMode.KEYBOARD_TRACKPAD)!!.extras.map { it.tag })
|
||||
assertEquals(listOf("bottom-brightness-toggle", "bottom-bar-hide"), noSwap.barModel(SecondScreenMode.DECK_CONTROLS)!!.extras.map { it.tag })
|
||||
assertEquals(listOf("bottom-keyboard", "bottom-brightness-toggle", "bottom-bar-hide"), noSwap.barModel(SecondScreenMode.TERMINAL)!!.extras.map { it.tag })
|
||||
assertEquals(listOf("bottom-keyboard", "bottom-brightness-toggle", "bottom-bar-hide"), noSwap.barModel(SecondScreenMode.KEYBOARD_TRACKPAD)!!.extras.map { it.tag })
|
||||
} finally { noSwap.closeControls() }
|
||||
}
|
||||
|
||||
|
||||
@@ -98,7 +98,9 @@ Ordered by value for effort. Each is independent unless noted.
|
||||
|
||||
### 1. Idle home page
|
||||
|
||||
**Status:** first version built and checked on a Retroid Pocket Duo Lite Plus. With no game running, the In-game stats page starts with one compact row for the game selected in Big Picture (art, name, play time, last played, Play), read from Steam's `appStore` overview, or the most recently played installed game. The performance HUD stays below it. Code: [`ui/BottomIdleHome.kt`](../../app/src/main/java/com/droiddeck/launcher/ui/BottomIdleHome.kt).
|
||||
**Status:** built as its own panel, Game art (Steam sessions), after a first version as a row on the dashboard was removed. The bottom screen shows the hero art of the running game, or the one selected in Big Picture, or the most recently played, with a slow pan and zoom, its logo, and play time; it cross-fades when the selection changes and starts with the bar hidden. Checked on a Retroid Pocket Duo Lite Plus. Code: [`ui/BottomArtPanel.kt`](../../app/src/main/java/com/droiddeck/launcher/ui/BottomArtPanel.kt), selection in [`ui/BottomIdleHome.kt`](../../app/src/main/java/com/droiddeck/launcher/ui/BottomIdleHome.kt).
|
||||
|
||||

|
||||
|
||||
When no game is focused, replace the Steam-client FPS card with a page about the game highlighted in Steam: art, play time, last played, achievement progress, and Play / Stream buttons. Add downloads in progress and friends online.
|
||||
|
||||
@@ -133,12 +135,18 @@ Rearrangeable tiles on the dashboard: FPS limit, 60/120 Hz, per-screen brightnes
|
||||
|
||||
### 5. Bottom screen off and auto-dim
|
||||
|
||||
**Status:** built and checked on a Retroid Pocket Duo Lite Plus, where the window brightness override is per display: screen off sets the bottom display to 0.0 and auto-dim to 0.05 (`mBrightnessReason=override(com.droiddeck.launcher)`), while the top display stays at the user's manual level. Every panel's bar has a screen-off button: the panel goes black and asks for the lowest window brightness (`BRIGHTNESS_OVERRIDE_OFF`); a touch wakes it. The dashboard dims after 60 s without touch (pref `bottomAutoDim`, on by default); trackpad and keyboard panels never dim. Hardware buttons are not claimed.
|
||||
**Status:** built and checked on a Retroid Pocket Duo Lite Plus, where the window brightness override is per display: screen off sets the bottom display to 0.0 and auto-dim to 0.05 (`mBrightnessReason=override(com.droiddeck.launcher)`), while the top display stays at the user's manual level. Every panel's bar has a sun button that drops down a brightness slider for the bottom screen only (5–100 %, saved; it never reaches 0) with the screen-off button at its end: the panel goes black and asks for the lowest window brightness (`BRIGHTNESS_OVERRIDE_OFF`); a touch wakes it to the chosen level, and the waking touch does not reach the panel. Auto-dim never brightens a level set below it. The dashboard dims after 60 s without touch (pref `bottomAutoDim`, on by default); trackpad and keyboard panels never dim. Hardware buttons are not claimed.
|
||||
|
||||
- A real off state for the bottom panel during a game (the backlight off, not a black Presentation), toggled from the bar or a button hold.
|
||||
- Dim after a period without touch, wake on touch. Off by default for the trackpad and keyboard modes.
|
||||
- Investigate which hardware buttons we can claim on the Thor and Duo without fighting the stock assistant.
|
||||
|
||||
**Bar:** every panel's bar can be hidden with its chevron button; a pull tab at the top edge brings it back by a tap or a pull down. Game art, a page open in the Guides reader and a pinned map hide it on their own, and leaving them shows it again.
|
||||
|
||||
| Brightness | Bar hidden |
|
||||
| --- | --- |
|
||||
|  |  |
|
||||
|
||||
### 6. Region mirror from our compositor
|
||||
|
||||
**Status:** milestone 1 built as its own bottom-screen panel (Mirror in the panel picker): the live region on the left, and Region, Top screen (shown, hidden or dimmed) and Scaling as settings rows on the right. Checked on a Retroid Pocket Duo Lite Plus; see the region mirror doc.
|
||||
@@ -149,7 +157,7 @@ Details: [bottom-screen-region-mirror.md](bottom-screen-region-mirror.md).
|
||||
|
||||
### 7. Guides panel
|
||||
|
||||
**Status:** milestones 1 and 4 built as their own bottom-screen panel (Guides in the panel picker), checked on a Retroid Pocket Duo Lite Plus. Five sections, switched with the app's tab strip and LB/RB, for the running game or the one selected in Steam: Guides (top-rated Steam guides in the device's language with a category choice and Continue reading), Achievements, Wiki & fixes (ProtonDB tier, and the wiki, StrategyWiki, PCGamingWiki, GameFAQs, IGN and HowLongToBeat through Wikidata, plus web searches), Maps (images pinned by long-press, with zoom and markers per map) and Saved (web archives for offline reading). The reader never takes focus, blocks common ad hosts and stays on the opened site unless the user follows a link. Code: [`session/SteamGuides.kt`](../../app/src/main/java/com/droiddeck/launcher/session/SteamGuides.kt), [`session/GameLinks.kt`](../../app/src/main/java/com/droiddeck/launcher/session/GameLinks.kt), [`ui/BottomGuidesPage.kt`](../../app/src/main/java/com/droiddeck/launcher/ui/BottomGuidesPage.kt).
|
||||
**Status:** milestones 1 and 4 built as their own bottom-screen panel (Guides in the panel picker), checked on a Retroid Pocket Duo Lite Plus. Five sections, switched with the app's tab strip and LB/RB, for the running game or the one selected in Steam: Guides (top-rated Steam guides in the device's language with a category choice and Continue reading), Achievements, Wiki & fixes (ProtonDB tier, and the wiki, StrategyWiki, PCGamingWiki, GameFAQs, IGN and HowLongToBeat through Wikidata; what Wikidata lacks is found from each site's own routes, such as Map Genie and IGN wiki slugs, Fandom's API and StrategyWiki's search API, so every row opens the page itself rather than a web search; only YouTube walkthroughs stay a search), Maps (images pinned by long-press, with zoom and markers per map, and the game's Map Genie page) and Saved (web archives for offline reading). The reader never takes focus, blocks common ad hosts and stays on the opened site unless the user follows a link. Code: [`session/SteamGuides.kt`](../../app/src/main/java/com/droiddeck/launcher/session/SteamGuides.kt), [`session/GameLinks.kt`](../../app/src/main/java/com/droiddeck/launcher/session/GameLinks.kt), [`ui/BottomGuidesPage.kt`](../../app/src/main/java/com/droiddeck/launcher/ui/BottomGuidesPage.kt).
|
||||
|
||||
A per-game tab with Steam Community guides for the exact app id, Steam achievements as a spoiler-safe checklist, the game's wiki and fixes (found through Wikidata), saved pages for offline use, and a workspace that reopens at the last section. It must never take focus from the game, and pauses pages it is not showing.
|
||||
|
||||
|
||||
|
After Width: | Height: | Size: 1.2 MiB |
|
After Width: | Height: | Size: 341 KiB |
|
After Width: | Height: | Size: 760 KiB |
|
Before Width: | Height: | Size: 140 KiB After Width: | Height: | Size: 145 KiB |
|
Before Width: | Height: | Size: 107 KiB After Width: | Height: | Size: 134 KiB |