mirror of
https://git.joinsharkey.org/Sharkey/Sharkey.git
synced 2024-11-26 22:03:09 +02:00
enhance(drop-and-fusion): some tweaks
This commit is contained in:
parent
271407312e
commit
0aefebf02a
4 changed files with 8 additions and 6 deletions
1
locales/index.d.ts
vendored
1
locales/index.d.ts
vendored
|
@ -1201,6 +1201,7 @@ export interface Locale {
|
||||||
"replaying": string;
|
"replaying": string;
|
||||||
"ranking": string;
|
"ranking": string;
|
||||||
"lastNDays": string;
|
"lastNDays": string;
|
||||||
|
"backToTitle": string;
|
||||||
"_bubbleGame": {
|
"_bubbleGame": {
|
||||||
"howToPlay": string;
|
"howToPlay": string;
|
||||||
"_howToPlay": {
|
"_howToPlay": {
|
||||||
|
|
|
@ -1198,6 +1198,7 @@ replay: "リプレイ"
|
||||||
replaying: "リプレイ中"
|
replaying: "リプレイ中"
|
||||||
ranking: "ランキング"
|
ranking: "ランキング"
|
||||||
lastNDays: "直近{n}日"
|
lastNDays: "直近{n}日"
|
||||||
|
backToTitle: "タイトルへ"
|
||||||
|
|
||||||
_bubbleGame:
|
_bubbleGame:
|
||||||
howToPlay: "遊び方"
|
howToPlay: "遊び方"
|
||||||
|
|
|
@ -16,7 +16,7 @@ import * as os from '@/os.js';
|
||||||
const props = withDefaults(defineProps<{
|
const props = withDefaults(defineProps<{
|
||||||
x: number;
|
x: number;
|
||||||
y: number;
|
y: number;
|
||||||
value?: number;
|
value?: number | string;
|
||||||
}>(), {
|
}>(), {
|
||||||
value: 1,
|
value: 1,
|
||||||
});
|
});
|
||||||
|
|
|
@ -98,7 +98,7 @@ SPDX-License-Identifier: AGPL-3.0-only
|
||||||
<div v-if="isGameOver" :class="$style.frame">
|
<div v-if="isGameOver" :class="$style.frame">
|
||||||
<div :class="$style.frameInner">
|
<div :class="$style.frameInner">
|
||||||
<div class="_buttonsCenter">
|
<div class="_buttonsCenter">
|
||||||
<MkButton primary rounded @click="backToTitle">{{ i18n.ts.done }}</MkButton>
|
<MkButton primary rounded @click="backToTitle">{{ i18n.ts.backToTitle }}</MkButton>
|
||||||
<MkButton primary rounded @click="replay">{{ i18n.ts.showReplay }}</MkButton>
|
<MkButton primary rounded @click="replay">{{ i18n.ts.showReplay }}</MkButton>
|
||||||
<MkButton primary rounded @click="share">{{ i18n.ts.share }}</MkButton>
|
<MkButton primary rounded @click="share">{{ i18n.ts.share }}</MkButton>
|
||||||
<MkButton rounded @click="exportLog">Copy replay data</MkButton>
|
<MkButton rounded @click="exportLog">Copy replay data</MkButton>
|
||||||
|
@ -953,9 +953,8 @@ async function share() {
|
||||||
const file = await uploading;
|
const file = await uploading;
|
||||||
if (!file) return;
|
if (!file) return;
|
||||||
os.post({
|
os.post({
|
||||||
initialText: `#BubbleGame
|
initialText: `#BubbleGame (${props.gameMode})
|
||||||
MODE: ${props.gameMode}
|
SCORE: ${score.value.toLocaleString()}${props.gameMode === 'yen' ? '円' : 'pt'}`,
|
||||||
SCORE: ${score.value.toLocaleString()} (MAX CHAIN: ${maxCombo.value})`,
|
|
||||||
initialFiles: [file],
|
initialFiles: [file],
|
||||||
instant: true,
|
instant: true,
|
||||||
});
|
});
|
||||||
|
@ -986,6 +985,7 @@ function attachGameEvents() {
|
||||||
|
|
||||||
sound.playUrl('/client-assets/drop-and-fusion/hold.mp3', {
|
sound.playUrl('/client-assets/drop-and-fusion/hold.mp3', {
|
||||||
volume: 0.5 * sfxVolume.value,
|
volume: 0.5 * sfxVolume.value,
|
||||||
|
playbackRate: replayPlaybackRate.value,
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -1024,7 +1024,7 @@ function attachGameEvents() {
|
||||||
const domX = rect.left + (x * viewScale);
|
const domX = rect.left + (x * viewScale);
|
||||||
const domY = rect.top + (y * viewScale);
|
const domY = rect.top + (y * viewScale);
|
||||||
os.popup(MkRippleEffect, { x: domX, y: domY }, {}, 'end');
|
os.popup(MkRippleEffect, { x: domX, y: domY }, {}, 'end');
|
||||||
os.popup(MkPlusOneEffect, { x: domX, y: domY, value: scoreDelta }, {}, 'end');
|
os.popup(MkPlusOneEffect, { x: domX, y: domY, value: scoreDelta + (props.gameMode === 'yen' ? '円' : '') }, {}, 'end');
|
||||||
});
|
});
|
||||||
|
|
||||||
game.addListener('monoAdded', (mono) => {
|
game.addListener('monoAdded', (mono) => {
|
||||||
|
|
Loading…
Reference in a new issue