Skip to content

Commit 6fdd61a

Browse files
IcedDogsjfhsjfhljlVinkMivik
authored
feat: Three new mods (#626)
* Update Crowdin configuration file * Update Crowdin configuration file * Create build.yml * feat: add three new mods * feat: mods related translation * fix: remove debug code * fix: Adjustment for nightcore mod * feat: Implement ending scene mod icons * fix: Delete .github/workflows/build.yml * chore: fix cargo.lock * chore: cargo fmt * fix: add resvg * fix: clippy * feat: remove svg, tweak ui * refactor: remove dead code --------- Co-authored-by: sjfhsjfh <872286346@qq.com> Co-authored-by: ljlvink <qpalzmlong@foxmail.com> Co-authored-by: mivik <mivikq@gmail.com>
1 parent a061fd1 commit 6fdd61a

17 files changed

Lines changed: 214 additions & 50 deletions

File tree

assets/mod/autoplay.png

1.64 KB
Loading

assets/mod/fade_in.png

783 Bytes
Loading

assets/mod/fade_out.png

783 Bytes
Loading

assets/mod/flip_x.png

1.99 KB
Loading

assets/mod/nightcore.png

1.86 KB
Loading

assets/mod/rainbow.png

3.38 KB
Loading

phira/locales/en-US/song.ftl

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,11 +102,17 @@ review-edit-tags-done = Tags updated.
102102
103103
mods = Mods
104104
mods-autoplay = Autoplay
105-
mods-autoplay-sub = Plays the chart without user input.
105+
mods-autoplay-sub = Results will not be submitted when enabled.
106106
mods-flip-x = Mirror
107107
mods-flip-x-sub = Mirrors the chart by the X-axis.
108+
mods-fade-in = Fade-In
109+
mods-fade-in-sub = Makes notes fade in when they approach the judgeline.
108110
mods-fade-out = Fade-Out
109111
mods-fade-out-sub = Makes notes fade out when they approach the judgeline.
112+
mods-nightcore = Nightcore
113+
mods-nightcore-sub = Plays the chart at higher speed
114+
mods-rainbow = Rainbow
115+
mods-rainbow-sub = Makes your game a *little* more colorful
110116
111117
rate-failed = Rate failed.
112118
rate-done = Rated successfully.

phira/locales/ja-JP/song.ftl

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,5 +54,16 @@ ldb = リーダーボード
5454
ldb-load-failed = リーダーボードの読み込みに失敗
5555
ldb-no-rank = なし
5656
57+
mods = Mods
5758
mods-autoplay = オートプレイ
5859
mods-autoplay-sub = これを有効にすると、リザルトの記録が無効になります
60+
mods-flip-x = ミラー
61+
mods-flip-x-sub = X軸に沿って譜面を反転させます
62+
mods-fade-in = フェードイン
63+
mods-fade-in-sub = ノーツが判定線に近づくと現れるようにします
64+
mods-fade-out = フェードアウト
65+
mods-fade-out-sub = ノーツが判定線に近づくと消えるようにします
66+
mods-nightcore = ナイトコア
67+
mods-nightcore-sub = より高速で譜面をプレイします
68+
mods-rainbow = レインボー
69+
mods-rainbow-sub = ゲームを *少しだけ* カラフルにします

phira/locales/zh-CN/song.ftl

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,8 +103,14 @@ mods-autoplay = 自动游玩
103103
mods-autoplay-sub = 启用后将无法上传成绩
104104
mods-flip-x = X 轴反转
105105
mods-flip-x-sub = 在 X 轴上反转谱面
106+
mods-fade-in = 上隐
107+
mods-fade-in-sub = 音符在靠近判定线时会显现
106108
mods-fade-out = 下隐
107109
mods-fade-out-sub = 音符在靠近判定线时会隐藏
110+
mods-nightcore = 夜店
111+
mods-nightcore-sub = 以高倍速游玩谱面
112+
mods-rainbow = 彩虹
113+
mods-rainbow-sub = 遇上彩虹,吃定彩虹
108114
109115
rate-failed = 评分失败
110116
rate-done = 评分成功

phira/src/scene/song.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1267,7 +1267,7 @@ impl SongScene {
12671267
let (btn, clicked) = &mut self.mod_btns[index];
12681268
if *clicked {
12691269
*clicked = false;
1270-
self.mods.toggle(flag);
1270+
self.mods.toggle_mod(flag);
12711271
}
12721272
let on = self.mods.contains(flag);
12731273
let oh = rr.h;
@@ -1288,7 +1288,10 @@ impl SongScene {
12881288
};
12891289
item(tl!("mods-autoplay"), Some(tl!("mods-autoplay-sub")), Mods::AUTOPLAY);
12901290
item(tl!("mods-flip-x"), Some(tl!("mods-flip-x-sub")), Mods::FLIP_X);
1291+
item(tl!("mods-fade-in"), Some(tl!("mods-fade-in-sub")), Mods::FADE_IN);
12911292
item(tl!("mods-fade-out"), Some(tl!("mods-fade-out-sub")), Mods::FADE_OUT);
1293+
item(tl!("mods-nightcore"), Some(tl!("mods-nightcore-sub")), Mods::NIGHTCORE);
1294+
item(tl!("mods-rainbow"), Some(tl!("mods-rainbow-sub")), Mods::RAINBOW);
12921295
(width, h)
12931296
});
12941297
}

0 commit comments

Comments
 (0)