mirror of
https://gitlab.com/lecarore/breakout71.git
synced 2025-05-04 10:49:13 -04:00
wip
This commit is contained in:
parent
45f9b516fc
commit
b5fafa5f3c
8 changed files with 32 additions and 25 deletions
|
@ -29,8 +29,8 @@ android {
|
|||
applicationId = "me.lecaro.breakout"
|
||||
minSdk = 21
|
||||
targetSdk = 34
|
||||
versionCode = 29100127
|
||||
versionName = "29100127"
|
||||
versionCode = 29100389
|
||||
versionName = "29100389"
|
||||
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
|
||||
vectorDrawables {
|
||||
useSupportLibrary = true
|
||||
|
|
File diff suppressed because one or more lines are too long
12
dist/index.html
vendored
12
dist/index.html
vendored
File diff suppressed because one or more lines are too long
|
@ -1,5 +1,5 @@
|
|||
// The version of the cache.
|
||||
const VERSION = "29100127";
|
||||
const VERSION = "29100389";
|
||||
|
||||
// The name of the cache
|
||||
const CACHE_NAME = `breakout-71-${VERSION}`;
|
||||
|
|
|
@ -1475,4 +1475,4 @@
|
|||
"bricks": "_________GGWWrr__GGWWrr__GGWWrr__GGWWrr_________________________",
|
||||
"credit": "italia by Topenvy"
|
||||
}
|
||||
]
|
||||
]
|
||||
|
|
|
@ -1 +1 @@
|
|||
"29100127"
|
||||
"29100389"
|
||||
|
|
|
@ -514,14 +514,19 @@ h2.histogram-title strong {
|
|||
transition:
|
||||
transform 0.2s,
|
||||
box-shadow 0.2s;
|
||||
box-shadow: 0 1px 0 black inset, 0 2px #5da3ea, 0 4px white;
|
||||
&:hover{
|
||||
|
||||
background: #5da3ea;
|
||||
}
|
||||
box-shadow:
|
||||
0 1px 0 black inset,
|
||||
0 2px #5da3ea,
|
||||
0 4px white;
|
||||
&:hover {
|
||||
background: #5da3ea;
|
||||
}
|
||||
&:active {
|
||||
transform: translate(0, 4px);
|
||||
box-shadow: 0 1px 0 black inset, 0 0px #5da3ea, 0 0px white;
|
||||
box-shadow:
|
||||
0 1px 0 black inset,
|
||||
0 0px #5da3ea,
|
||||
0 0px white;
|
||||
}
|
||||
|
||||
transition:
|
||||
|
|
|
@ -44,7 +44,7 @@ export async function openUpgradesPicker(gameState: GameState) {
|
|||
${icons["icon:" + medal + "_medal"]}
|
||||
<p>
|
||||
<strong>${name}</strong><br/>
|
||||
${{gold:t('level_up.gold'),silver:t('level_up.silver'),no:t('level_up.no'),}[medal] }
|
||||
${{ gold: t("level_up.gold"), silver: t("level_up.silver"), no: t("level_up.no") }[medal]}
|
||||
</p>
|
||||
</div>`);
|
||||
}
|
||||
|
@ -144,26 +144,28 @@ export async function openUpgradesPicker(gameState: GameState) {
|
|||
}</button>`;
|
||||
|
||||
const lvlInfo = lvl ? upgradeLevelAndMaxDisplay(u, gameState) : "";
|
||||
const help =u.help(Math.max(1, lvl))
|
||||
const help = u.help(Math.max(1, lvl));
|
||||
|
||||
return {
|
||||
u,button,
|
||||
u,
|
||||
button,
|
||||
html: `<div class="upgrade choice ${
|
||||
(!lvl && gameState.upgrade_points && " ") ||
|
||||
(lvl && "used") ||
|
||||
"greyed-out"
|
||||
}" >
|
||||
${icons["icon:" + u.id]}
|
||||
<p data-tooltip="${escapeAttribute(lvl ? help: u.fullHelp(Math.max(1, lvl)))}">
|
||||
<p data-tooltip="${escapeAttribute(lvl ? help : u.fullHelp(Math.max(1, lvl)))}">
|
||||
<strong>${u.name}</strong> ${lvlInfo}
|
||||
${lvl ? '':help}
|
||||
${lvl ? "" : help}
|
||||
</p>
|
||||
${button}
|
||||
</div>`,
|
||||
};
|
||||
});
|
||||
|
||||
const forcePick = gameState.upgrade_points>0 && !!actions.find(a=>a.button!=='')
|
||||
const forcePick =
|
||||
gameState.upgrade_points > 0 && !!actions.find((a) => a.button !== "");
|
||||
|
||||
const upgradeId = await requiredAsyncAlert<PerkId | null>({
|
||||
title: t("level_up.title", {
|
||||
|
@ -172,7 +174,7 @@ export async function openUpgradesPicker(gameState: GameState) {
|
|||
}),
|
||||
content: [
|
||||
{
|
||||
disabled:forcePick,
|
||||
disabled: forcePick,
|
||||
text: t("level_up.go", { name: gameState.level.name }),
|
||||
help: forcePick
|
||||
? t("level_up.go_with_upgrades", {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue