mirror of
https://github.com/kalarina-bit/Matewave.git
synced 2026-11-22 08:06:09 +00:00
Add a first-launch guide
New users get a short swipeable tour on first launch; people who used the app before are not shown it. It can be opened again from Settings.
This commit is contained in:
@@ -121,9 +121,12 @@ private fun AppNavHost() {
|
||||
onDispose { PresenceHub.release(context) }
|
||||
}
|
||||
|
||||
// New players start with the guide; everyone else goes straight to the menu
|
||||
val startRoute = remember { if (cc.skysparkle.matewave.ui.screens.Onboarding.needed(context)) "onboarding" else "menu" }
|
||||
|
||||
NavHost(
|
||||
navController = navController,
|
||||
startDestination = "menu",
|
||||
startDestination = startRoute,
|
||||
enterTransition = {
|
||||
if (isTabSwitch(initialState.destination.route, targetState.destination.route)) fadeThroughIn()
|
||||
else sharedAxisIn(forward = true)
|
||||
@@ -141,6 +144,22 @@ private fun AppNavHost() {
|
||||
else sharedAxisOut(forward = false)
|
||||
}
|
||||
) {
|
||||
composable("onboarding") {
|
||||
cc.skysparkle.matewave.ui.screens.OnboardingScreen(
|
||||
replay = false,
|
||||
onDone = {
|
||||
navController.navigate("menu") { popUpTo("onboarding") { inclusive = true } }
|
||||
}
|
||||
)
|
||||
}
|
||||
|
||||
composable("guide") {
|
||||
cc.skysparkle.matewave.ui.screens.OnboardingScreen(
|
||||
replay = true,
|
||||
onDone = { navController.popBackStack() }
|
||||
)
|
||||
}
|
||||
|
||||
composable("menu") {
|
||||
MainMenuScreen(
|
||||
viewModel = viewModel,
|
||||
@@ -194,7 +213,8 @@ private fun AppNavHost() {
|
||||
onOpenPermissions = { navController.navigate("permissions") },
|
||||
onOpenAppearance = { navController.navigate("appearance") },
|
||||
onOpenLicenses = { navController.navigate("licenses") },
|
||||
onOpenShare = { navController.navigate("shareApk") }
|
||||
onOpenShare = { navController.navigate("shareApk") },
|
||||
onOpenGuide = { navController.navigate("guide") }
|
||||
)
|
||||
}
|
||||
|
||||
|
||||
@@ -0,0 +1,363 @@
|
||||
package cc.skysparkle.matewave.ui.screens
|
||||
|
||||
import android.content.Context
|
||||
import androidx.activity.compose.BackHandler
|
||||
import androidx.annotation.DrawableRes
|
||||
import androidx.annotation.StringRes
|
||||
import androidx.compose.animation.core.animateDpAsState
|
||||
import androidx.compose.foundation.Image
|
||||
import androidx.compose.foundation.background
|
||||
import androidx.compose.foundation.border
|
||||
import androidx.compose.foundation.clickable
|
||||
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.Spacer
|
||||
import androidx.compose.foundation.layout.fillMaxSize
|
||||
import androidx.compose.foundation.layout.fillMaxWidth
|
||||
import androidx.compose.foundation.layout.height
|
||||
import androidx.compose.foundation.layout.imePadding
|
||||
import androidx.compose.foundation.layout.navigationBarsPadding
|
||||
import androidx.compose.foundation.layout.padding
|
||||
import androidx.compose.foundation.layout.size
|
||||
import androidx.compose.foundation.layout.statusBarsPadding
|
||||
import androidx.compose.foundation.layout.widthIn
|
||||
import androidx.compose.foundation.pager.HorizontalPager
|
||||
import androidx.compose.foundation.pager.rememberPagerState
|
||||
import androidx.compose.foundation.rememberScrollState
|
||||
import androidx.compose.foundation.shape.CircleShape
|
||||
import androidx.compose.foundation.shape.RoundedCornerShape
|
||||
import androidx.compose.foundation.verticalScroll
|
||||
import androidx.compose.material3.MaterialTheme
|
||||
import androidx.compose.material3.OutlinedTextField
|
||||
import androidx.compose.material3.Text
|
||||
import androidx.compose.runtime.Composable
|
||||
import androidx.compose.runtime.getValue
|
||||
import androidx.compose.runtime.mutableStateOf
|
||||
import androidx.compose.runtime.remember
|
||||
import androidx.compose.runtime.rememberCoroutineScope
|
||||
import androidx.compose.runtime.saveable.rememberSaveable
|
||||
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.layout.ContentScale
|
||||
import androidx.compose.ui.platform.LocalContext
|
||||
import androidx.compose.ui.platform.testTag
|
||||
import androidx.compose.ui.res.painterResource
|
||||
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.text.font.FontWeight
|
||||
import androidx.compose.ui.text.style.TextAlign
|
||||
import androidx.compose.ui.unit.dp
|
||||
import androidx.compose.ui.unit.sp
|
||||
import cc.skysparkle.matewave.R
|
||||
import cc.skysparkle.matewave.data.ProfileStore
|
||||
import cc.skysparkle.matewave.network.Transports
|
||||
import cc.skysparkle.matewave.ui.components.AppIcon
|
||||
import cc.skysparkle.matewave.ui.components.GlassButton
|
||||
import cc.skysparkle.matewave.ui.theme.ChessGreen
|
||||
import cc.skysparkle.matewave.ui.theme.PanelBorder
|
||||
import cc.skysparkle.matewave.ui.theme.Surface2
|
||||
import cc.skysparkle.matewave.ui.theme.TabletMaxContentWidth
|
||||
import cc.skysparkle.matewave.ui.theme.ink
|
||||
import cc.skysparkle.matewave.ui.theme.whiteOutlinedTextFieldColors
|
||||
import kotlinx.coroutines.launch
|
||||
|
||||
/**
|
||||
* First-launch guide. New players see it once; Settings → «Show the guide» opens it again.
|
||||
* Anyone who already played before this version (a name, a chosen level or games against the
|
||||
* AI on record) is treated as having seen it.
|
||||
*/
|
||||
object Onboarding {
|
||||
private const val PREFS = "onboarding_prefs"
|
||||
private const val KEY_DONE = "done"
|
||||
|
||||
fun needed(context: Context): Boolean {
|
||||
val prefs = context.getSharedPreferences(PREFS, Context.MODE_PRIVATE)
|
||||
if (prefs.getBoolean(KEY_DONE, false)) return false
|
||||
val profile = context.getSharedPreferences("chess_profile_prefs", Context.MODE_PRIVATE)
|
||||
val stats = context.getSharedPreferences("chess_stats_prefs", Context.MODE_PRIVATE)
|
||||
val playedBefore = profile.contains("name") || profile.getBoolean("level_chosen", false) || stats.all.isNotEmpty()
|
||||
if (playedBefore) {
|
||||
markDone(context)
|
||||
return false
|
||||
}
|
||||
return true
|
||||
}
|
||||
|
||||
fun markDone(context: Context) {
|
||||
context.getSharedPreferences(PREFS, Context.MODE_PRIVATE).edit().putBoolean(KEY_DONE, true).apply()
|
||||
}
|
||||
}
|
||||
|
||||
private data class GuidePage(
|
||||
@param:DrawableRes val iconRes: Int,
|
||||
@param:StringRes val titleRes: Int,
|
||||
@param:StringRes val textRes: Int
|
||||
)
|
||||
|
||||
private val PAGES = listOf(
|
||||
GuidePage(R.drawable.ic_launcher_card, R.string.guide_welcome_title, R.string.guide_welcome_text),
|
||||
GuidePage(R.drawable.ic_puzzle, R.string.guide_play_title, R.string.guide_play_text),
|
||||
GuidePage(R.drawable.ic_bluetooth, R.string.guide_nearby_title, R.string.guide_nearby_text),
|
||||
// the last page asks for a name and a level
|
||||
GuidePage(R.drawable.ic_default_avatar, R.string.guide_you_title, R.string.guide_you_text)
|
||||
)
|
||||
|
||||
private data class GuideLevel(@param:StringRes val labelRes: Int, val elo: Int)
|
||||
|
||||
// The same levels as in the account screen
|
||||
private val LEVELS = listOf(
|
||||
GuideLevel(R.string.skill_novice, 800),
|
||||
GuideLevel(R.string.skill_amateur, 1200),
|
||||
GuideLevel(R.string.skill_pro, 1800),
|
||||
GuideLevel(R.string.skill_master, 2200)
|
||||
)
|
||||
|
||||
private const val MAX_NAME_LENGTH = 20
|
||||
|
||||
/**
|
||||
* @param replay opened from Settings: back on the first page closes it, and the level is not
|
||||
* asked again once chosen.
|
||||
*/
|
||||
@Composable
|
||||
fun OnboardingScreen(replay: Boolean, onDone: () -> Unit) {
|
||||
val context = LocalContext.current
|
||||
val scope = rememberCoroutineScope()
|
||||
val pager = rememberPagerState(pageCount = { PAGES.size })
|
||||
val last = pager.currentPage == PAGES.lastIndex
|
||||
|
||||
val profile = remember { ProfileStore.get() }
|
||||
val defaultName = stringResource(R.string.player_default_name)
|
||||
var name by rememberSaveable { mutableStateOf(if (profile.name == defaultName) "" else profile.name) }
|
||||
var level by rememberSaveable { mutableStateOf<Int?>(null) }
|
||||
val askLevel = !profile.levelChosen
|
||||
|
||||
val finish = {
|
||||
val trimmed = name.trim()
|
||||
var changed = false
|
||||
if (trimmed.isNotEmpty() && trimmed != profile.name) {
|
||||
ProfileStore.setName(trimmed)
|
||||
changed = true
|
||||
}
|
||||
val elo = level
|
||||
if (askLevel && elo != null) {
|
||||
ProfileStore.setStartingElo(elo)
|
||||
changed = true
|
||||
}
|
||||
// Nearby players see the new name and rating right away
|
||||
if (changed) {
|
||||
Transports.lan(context).republishProfile()
|
||||
Transports.ble(context).republishProfile()
|
||||
}
|
||||
Onboarding.markDone(context)
|
||||
onDone()
|
||||
}
|
||||
|
||||
BackHandler(enabled = pager.currentPage > 0 || replay) {
|
||||
if (pager.currentPage > 0) scope.launch { pager.animateScrollToPage(pager.currentPage - 1) } else onDone()
|
||||
}
|
||||
|
||||
Box(
|
||||
modifier = Modifier
|
||||
.fillMaxSize()
|
||||
.testTag("onboarding"),
|
||||
contentAlignment = Alignment.TopCenter
|
||||
) {
|
||||
Column(
|
||||
modifier = Modifier
|
||||
.fillMaxSize()
|
||||
.widthIn(max = TabletMaxContentWidth)
|
||||
.statusBarsPadding()
|
||||
.navigationBarsPadding()
|
||||
.imePadding()
|
||||
) {
|
||||
Box(
|
||||
modifier = Modifier
|
||||
.fillMaxWidth()
|
||||
.height(56.dp)
|
||||
.padding(horizontal = 12.dp),
|
||||
contentAlignment = Alignment.CenterEnd
|
||||
) {
|
||||
if (!last) {
|
||||
Text(
|
||||
text = stringResource(R.string.guide_skip),
|
||||
color = ink.copy(alpha = 0.7f),
|
||||
style = MaterialTheme.typography.labelLarge,
|
||||
modifier = Modifier
|
||||
.clip(CircleShape)
|
||||
// Skipping still lands on the last page: the name and level are asked there
|
||||
.clickable(role = Role.Button) { scope.launch { pager.animateScrollToPage(PAGES.lastIndex) } }
|
||||
.padding(horizontal = 14.dp, vertical = 10.dp)
|
||||
.testTag("onboarding_skip")
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
HorizontalPager(
|
||||
state = pager,
|
||||
modifier = Modifier
|
||||
.weight(1f)
|
||||
.fillMaxWidth()
|
||||
) { index ->
|
||||
val page = PAGES[index]
|
||||
PageColumn {
|
||||
PageIcon(page, isLogo = index == 0)
|
||||
Spacer(Modifier.height(32.dp))
|
||||
Text(
|
||||
text = stringResource(page.titleRes),
|
||||
color = ink,
|
||||
style = MaterialTheme.typography.headlineSmall.copy(fontWeight = FontWeight.Bold),
|
||||
textAlign = TextAlign.Center
|
||||
)
|
||||
Spacer(Modifier.height(12.dp))
|
||||
Text(
|
||||
text = stringResource(page.textRes),
|
||||
color = ink.copy(alpha = 0.7f),
|
||||
style = MaterialTheme.typography.bodyLarge.copy(lineHeight = 24.sp),
|
||||
textAlign = TextAlign.Center
|
||||
)
|
||||
if (index == PAGES.lastIndex) {
|
||||
Spacer(Modifier.height(24.dp))
|
||||
AboutYou(
|
||||
name = name,
|
||||
onName = { if (it.length <= MAX_NAME_LENGTH) name = it },
|
||||
askLevel = askLevel,
|
||||
level = level,
|
||||
onLevel = { level = it }
|
||||
)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Dots(count = PAGES.size, current = pager.currentPage)
|
||||
|
||||
GlassButton(
|
||||
onClick = { if (last) finish() else scope.launch { pager.animateScrollToPage(pager.currentPage + 1) } },
|
||||
modifier = Modifier
|
||||
.fillMaxWidth()
|
||||
.padding(horizontal = 24.dp, vertical = 20.dp)
|
||||
.testTag("onboarding_next")
|
||||
) {
|
||||
Text(
|
||||
text = stringResource(if (last) R.string.guide_start else R.string.guide_next),
|
||||
style = MaterialTheme.typography.titleMedium.copy(fontWeight = FontWeight.Bold)
|
||||
)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@Composable
|
||||
private fun PageColumn(content: @Composable () -> Unit) {
|
||||
Column(
|
||||
modifier = Modifier
|
||||
.fillMaxSize()
|
||||
.verticalScroll(rememberScrollState())
|
||||
.padding(horizontal = 28.dp),
|
||||
horizontalAlignment = Alignment.CenterHorizontally,
|
||||
verticalArrangement = Arrangement.Center
|
||||
) {
|
||||
content()
|
||||
}
|
||||
}
|
||||
|
||||
@Composable
|
||||
private fun PageIcon(page: GuidePage, isLogo: Boolean) {
|
||||
if (isLogo) {
|
||||
// The app icon picture, not a glyph
|
||||
Image(
|
||||
painter = painterResource(page.iconRes),
|
||||
contentDescription = null,
|
||||
contentScale = ContentScale.Crop,
|
||||
modifier = Modifier
|
||||
.size(120.dp)
|
||||
.clip(RoundedCornerShape(32.dp))
|
||||
.border(1.dp, PanelBorder, RoundedCornerShape(32.dp))
|
||||
)
|
||||
} else {
|
||||
Box(
|
||||
modifier = Modifier
|
||||
.size(120.dp)
|
||||
.clip(CircleShape)
|
||||
.background(Surface2)
|
||||
.border(1.dp, PanelBorder, CircleShape),
|
||||
contentAlignment = Alignment.Center
|
||||
) {
|
||||
AppIcon(page.iconRes, size = 52.dp, tint = ChessGreen)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@Composable
|
||||
private fun AboutYou(
|
||||
name: String,
|
||||
onName: (String) -> Unit,
|
||||
askLevel: Boolean,
|
||||
level: Int?,
|
||||
onLevel: (Int) -> Unit
|
||||
) {
|
||||
Column(modifier = Modifier.fillMaxWidth(), verticalArrangement = Arrangement.spacedBy(10.dp)) {
|
||||
Text(stringResource(R.string.account_name), color = ink.copy(alpha = 0.7f), style = MaterialTheme.typography.labelLarge)
|
||||
OutlinedTextField(
|
||||
value = name,
|
||||
onValueChange = onName,
|
||||
singleLine = true,
|
||||
placeholder = { Text(stringResource(R.string.player_default_name), color = ink.copy(alpha = 0.4f)) },
|
||||
colors = whiteOutlinedTextFieldColors(),
|
||||
modifier = Modifier
|
||||
.fillMaxWidth()
|
||||
.testTag("onboarding_name")
|
||||
)
|
||||
if (askLevel) {
|
||||
Spacer(Modifier.height(6.dp))
|
||||
Text(stringResource(R.string.account_level_dialog_title), color = ink.copy(alpha = 0.7f), style = MaterialTheme.typography.labelLarge)
|
||||
LEVELS.forEach { option ->
|
||||
val selected = option.elo == level
|
||||
val shape = RoundedCornerShape(16.dp)
|
||||
Row(
|
||||
modifier = Modifier
|
||||
.fillMaxWidth()
|
||||
.clip(shape)
|
||||
.background(Surface2)
|
||||
.border(if (selected) 2.dp else 1.dp, if (selected) ChessGreen else PanelBorder, shape)
|
||||
.clickable(role = Role.RadioButton) { onLevel(option.elo) }
|
||||
.padding(horizontal = 16.dp, vertical = 14.dp),
|
||||
horizontalArrangement = Arrangement.SpaceBetween
|
||||
) {
|
||||
Text(stringResource(option.labelRes), color = ink, style = MaterialTheme.typography.titleMedium)
|
||||
Text("~${option.elo}", color = if (selected) ChessGreen else ink.copy(alpha = 0.7f), style = MaterialTheme.typography.titleMedium)
|
||||
}
|
||||
}
|
||||
Text(stringResource(R.string.guide_level_hint), color = ink.copy(alpha = 0.5f), style = MaterialTheme.typography.bodySmall)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@Composable
|
||||
private fun Dots(count: Int, current: Int) {
|
||||
val label = stringResource(R.string.guide_page_of, current + 1, count)
|
||||
Row(
|
||||
modifier = Modifier
|
||||
.fillMaxWidth()
|
||||
.semantics { contentDescription = label },
|
||||
horizontalArrangement = Arrangement.Center,
|
||||
verticalAlignment = Alignment.CenterVertically
|
||||
) {
|
||||
repeat(count) { i ->
|
||||
val selected = i == current
|
||||
val width by animateDpAsState(if (selected) 22.dp else 8.dp, label = "guide_dot")
|
||||
Box(
|
||||
modifier = Modifier
|
||||
.padding(horizontal = 4.dp)
|
||||
.size(width = width, height = 8.dp)
|
||||
.clip(CircleShape)
|
||||
.background(if (selected) ChessGreen else ink.copy(alpha = 0.2f))
|
||||
)
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -57,7 +57,8 @@ fun SettingsScreen(
|
||||
onOpenPermissions: () -> Unit,
|
||||
onOpenAppearance: () -> Unit,
|
||||
onOpenLicenses: () -> Unit,
|
||||
onOpenShare: () -> Unit
|
||||
onOpenShare: () -> Unit,
|
||||
onOpenGuide: () -> Unit
|
||||
) {
|
||||
var musicOn by remember { mutableStateOf(SoundManager.musicEnabled) }
|
||||
var sfxOn by remember { mutableStateOf(SoundManager.sfxEnabled) }
|
||||
@@ -170,6 +171,14 @@ fun SettingsScreen(
|
||||
onClick = { cc.skysparkle.matewave.settings.AppLinks.open(context, cc.skysparkle.matewave.settings.AppLinks.PRIVACY_POLICY) }
|
||||
)
|
||||
ListDivider()
|
||||
ListRow(
|
||||
title = stringResource(R.string.guide_show),
|
||||
subtitle = stringResource(R.string.guide_show_subtitle),
|
||||
icon = R.drawable.ic_hint,
|
||||
chevron = true,
|
||||
onClick = onOpenGuide
|
||||
)
|
||||
ListDivider()
|
||||
ListRow(
|
||||
title = stringResource(R.string.about_section),
|
||||
icon = R.drawable.ic_info,
|
||||
|
||||
@@ -378,4 +378,21 @@
|
||||
<string name="support_title">Matewave unterstützen</string>
|
||||
<string name="support_text">Kostenlos, quelloffen und werbefrei. Eine kleine Spende hilft, das Projekt weiterzuführen.</string>
|
||||
<string name="support_button">Auf Ko-fi spenden</string>
|
||||
|
||||
<!-- first-launch guide -->
|
||||
<string name="guide_skip">Überspringen</string>
|
||||
<string name="guide_next">Weiter</string>
|
||||
<string name="guide_start">Los geht\'s</string>
|
||||
<string name="guide_page_of">Seite %1$d von %2$d</string>
|
||||
<string name="guide_welcome_title">Willkommen bei Matewave</string>
|
||||
<string name="guide_welcome_text">Schach ohne Konto, ohne Werbung und ohne Internet. Alles bleibt auf deinem Handy.</string>
|
||||
<string name="guide_play_title">Spielen und lernen</string>
|
||||
<string name="guide_play_text">Spiele gegen den Computer in vier Stufen, löse Aufgaben passend zu deiner Wertung und lerne Eröffnungen – die App erinnert dich ans Wiederholen.</string>
|
||||
<string name="guide_nearby_title">Mit Freunden in der Nähe</string>
|
||||
<string name="guide_nearby_text">Spielt euch gegenüber über Bluetooth oder dasselbe WLAN, ganz ohne Internet. Dein Freund braucht Matewave ebenfalls: schick es über Einstellungen → App teilen. Freunde können deine Partien auch zuschauen.</string>
|
||||
<string name="guide_you_title">Ein bisschen über dich</string>
|
||||
<string name="guide_you_text">Spieler in der Nähe sehen deinen Namen. Deine Stufe bestimmt die Startwertung und die Aufgaben, die du bekommst.</string>
|
||||
<string name="guide_level_hint">Deinen Namen kannst du später im Profil ändern.</string>
|
||||
<string name="guide_show">Anleitung anzeigen</string>
|
||||
<string name="guide_show_subtitle">Ein kurzer Rundgang durch die App</string>
|
||||
</resources>
|
||||
|
||||
@@ -377,4 +377,21 @@
|
||||
<string name="support_title">Matewave を応援する</string>
|
||||
<string name="support_text">無料・オープンソースで広告なし。少額の寄付が開発の継続を支えます。</string>
|
||||
<string name="support_button">Ko-fi で寄付する</string>
|
||||
|
||||
<!-- first-launch guide -->
|
||||
<string name="guide_skip">スキップ</string>
|
||||
<string name="guide_next">次へ</string>
|
||||
<string name="guide_start">プレイを始める</string>
|
||||
<string name="guide_page_of">%2$dページ中%1$dページ</string>
|
||||
<string name="guide_welcome_title">Matewaveへようこそ</string>
|
||||
<string name="guide_welcome_text">アカウント不要、広告なし、インターネットも不要のチェス。データはすべてスマホの中に残ります。</string>
|
||||
<string name="guide_play_title">対局して学ぶ</string>
|
||||
<string name="guide_play_text">4段階のコンピューターと対局し、レーティングに合ったパズルを解き、定跡を学べます。復習のタイミングはアプリがお知らせします。</string>
|
||||
<string name="guide_nearby_title">近くの友だちと対局</string>
|
||||
<string name="guide_nearby_text">Bluetoothまたは同じWi-Fiで、インターネットなしで対面対局できます。相手にもMatewaveが必要です。「設定」→「アプリを共有」から送れます。友だちはあなたの対局を観戦することもできます。</string>
|
||||
<string name="guide_you_title">あなたについて</string>
|
||||
<string name="guide_you_text">近くのプレイヤーにはあなたの名前が表示されます。レベルによって初期レーティングと出題されるパズルが決まります。</string>
|
||||
<string name="guide_level_hint">名前はあとでプロフィールから変更できます。</string>
|
||||
<string name="guide_show">ガイドを表示</string>
|
||||
<string name="guide_show_subtitle">アプリのかんたんな紹介</string>
|
||||
</resources>
|
||||
|
||||
@@ -380,4 +380,21 @@
|
||||
<string name="support_title">Paremti Matewave</string>
|
||||
<string name="support_text">Nemokama, atvirojo kodo ir be reklamų. Nedidelė auka padeda projektui gyvuoti.</string>
|
||||
<string name="support_button">Paaukoti per Ko-fi</string>
|
||||
|
||||
<!-- first-launch guide -->
|
||||
<string name="guide_skip">Praleisti</string>
|
||||
<string name="guide_next">Toliau</string>
|
||||
<string name="guide_start">Pradėti žaisti</string>
|
||||
<string name="guide_page_of">%1$d puslapis iš %2$d</string>
|
||||
<string name="guide_welcome_title">Sveiki atvykę į Matewave</string>
|
||||
<string name="guide_welcome_text">Šachmatai be paskyros, be reklamų ir be interneto. Viskas lieka jūsų telefone.</string>
|
||||
<string name="guide_play_title">Žaiskite ir mokykitės</string>
|
||||
<string name="guide_play_text">Žaiskite su kompiuteriu keturiais lygiais, spręskite jūsų reitingą atitinkančius uždavinius ir mokykitės debiutų – programėlė primins, kada juos pakartoti.</string>
|
||||
<string name="guide_nearby_title">Žaiskite su draugais šalia</string>
|
||||
<string name="guide_nearby_text">Žaiskite akis į akį per Bluetooth arba tą patį Wi-Fi, internetas nereikalingas. Draugui taip pat reikia Matewave: nusiųskite ją per Nustatymai → Dalytis programa. Draugai gali stebėti jūsų partijas.</string>
|
||||
<string name="guide_you_title">Šiek tiek apie jus</string>
|
||||
<string name="guide_you_text">Šalia esantys žaidėjai mato jūsų vardą. Pagal lygį nustatomas pradinis reitingas ir parenkami uždaviniai.</string>
|
||||
<string name="guide_level_hint">Vardą vėliau galėsite pakeisti profilyje.</string>
|
||||
<string name="guide_show">Rodyti gidą</string>
|
||||
<string name="guide_show_subtitle">Trumpa programėlės apžvalga</string>
|
||||
</resources>
|
||||
|
||||
@@ -386,4 +386,21 @@
|
||||
<string name="support_title">Поддержать Matewave</string>
|
||||
<string name="support_text">Бесплатно, с открытым кодом и без рекламы. Небольшое пожертвование помогает проекту развиваться.</string>
|
||||
<string name="support_button">Пожертвовать через Ko-fi</string>
|
||||
|
||||
<!-- first-launch guide -->
|
||||
<string name="guide_skip">Пропустить</string>
|
||||
<string name="guide_next">Далее</string>
|
||||
<string name="guide_start">Начать играть</string>
|
||||
<string name="guide_page_of">Страница %1$d из %2$d</string>
|
||||
<string name="guide_welcome_title">Добро пожаловать в Matewave</string>
|
||||
<string name="guide_welcome_text">Шахматы без аккаунта, рекламы и интернета. Всё остаётся на вашем телефоне.</string>
|
||||
<string name="guide_play_title">Играйте и учитесь</string>
|
||||
<string name="guide_play_text">Играйте с компьютером на четырёх уровнях, решайте задачи под ваш рейтинг и учите дебюты: приложение напомнит, когда пора повторить.</string>
|
||||
<string name="guide_nearby_title">Играйте с друзьями рядом</string>
|
||||
<string name="guide_nearby_text">Играйте лицом к лицу через Bluetooth или общий Wi-Fi, интернет не нужен. У друга тоже должен быть Matewave: отправьте его через Настройки → Поделиться приложением. Друзья могут смотреть ваши партии.</string>
|
||||
<string name="guide_you_title">Немного о вас</string>
|
||||
<string name="guide_you_text">Игроки рядом видят ваше имя. От уровня зависят начальный рейтинг и задачи, которые вам попадутся.</string>
|
||||
<string name="guide_level_hint">Имя можно поменять позже в профиле.</string>
|
||||
<string name="guide_show">Показать гид</string>
|
||||
<string name="guide_show_subtitle">Короткий обзор приложения</string>
|
||||
</resources>
|
||||
|
||||
@@ -377,4 +377,21 @@
|
||||
<string name="support_title">支持 Matewave</string>
|
||||
<string name="support_text">免费、开源、无广告。一笔小小的捐助能让项目持续下去。</string>
|
||||
<string name="support_button">通过 Ko-fi 捐助</string>
|
||||
|
||||
<!-- first-launch guide -->
|
||||
<string name="guide_skip">跳过</string>
|
||||
<string name="guide_next">下一步</string>
|
||||
<string name="guide_start">开始下棋</string>
|
||||
<string name="guide_page_of">第 %1$d 页,共 %2$d 页</string>
|
||||
<string name="guide_welcome_title">欢迎使用 Matewave</string>
|
||||
<string name="guide_welcome_text">无需账号、无广告、无需联网的国际象棋。所有数据都留在你的手机上。</string>
|
||||
<string name="guide_play_title">对弈与学习</string>
|
||||
<string name="guide_play_text">与四个难度的电脑对弈,解答符合你等级分的谜题,学习开局,应用会提醒你何时复习。</string>
|
||||
<string name="guide_nearby_title">与附近的朋友对弈</string>
|
||||
<string name="guide_nearby_text">通过蓝牙或同一 Wi-Fi 面对面对弈,无需联网。朋友也需要安装 Matewave:可在“设置”→“分享应用”中发送。朋友还可以观看你的对局。</string>
|
||||
<string name="guide_you_title">介绍一下你自己</string>
|
||||
<string name="guide_you_text">附近的玩家会看到你的名字。你的水平决定初始等级分和推送给你的谜题。</string>
|
||||
<string name="guide_level_hint">名字之后可以在个人资料中修改。</string>
|
||||
<string name="guide_show">显示使用指南</string>
|
||||
<string name="guide_show_subtitle">快速了解本应用</string>
|
||||
</resources>
|
||||
|
||||
@@ -378,4 +378,21 @@
|
||||
<string name="support_title">Support Matewave</string>
|
||||
<string name="support_text">Free, open source and no ads. A small donation helps keep it going.</string>
|
||||
<string name="support_button">Donate on Ko-fi</string>
|
||||
|
||||
<!-- first-launch guide -->
|
||||
<string name="guide_skip">Skip</string>
|
||||
<string name="guide_next">Next</string>
|
||||
<string name="guide_start">Start playing</string>
|
||||
<string name="guide_page_of">Page %1$d of %2$d</string>
|
||||
<string name="guide_welcome_title">Welcome to Matewave</string>
|
||||
<string name="guide_welcome_text">Chess with no account, no ads and no internet needed. Everything stays on your phone.</string>
|
||||
<string name="guide_play_title">Play and learn</string>
|
||||
<string name="guide_play_text">Play the computer at four levels, solve puzzles that match your rating and learn openings, with reminders when it\'s time to review them.</string>
|
||||
<string name="guide_nearby_title">Play friends nearby</string>
|
||||
<string name="guide_nearby_text">Play face to face over Bluetooth or the same Wi-Fi, no internet needed. Your friend needs Matewave too: send it from Settings → Share the app. Friends can also watch your games.</string>
|
||||
<string name="guide_you_title">A bit about you</string>
|
||||
<string name="guide_you_text">Players nearby see your name. Your level sets the starting rating and the puzzles you get.</string>
|
||||
<string name="guide_level_hint">You can change your name later in your profile.</string>
|
||||
<string name="guide_show">Show the guide</string>
|
||||
<string name="guide_show_subtitle">A quick tour of the app</string>
|
||||
</resources>
|
||||
|
||||
Reference in New Issue
Block a user