Skip to content

Commit 4d13f4e

Browse files
committed
Add UI
1 parent 0ddb055 commit 4d13f4e

3 files changed

Lines changed: 5 additions & 2 deletions

File tree

phira/locales/zh-CN/song.ftl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,8 @@ mods-flip-x = X 轴反转
103103
mods-flip-x-sub = 在 X 轴上反转谱面
104104
mods-fade-out = 下隐
105105
mods-fade-out-sub = 音符在靠近判定线时会隐藏
106+
mods-strict-mode = 严判模式
107+
mods-strict-mode-sub = 判定时间缩短为原来的一半
106108
107109
rate-failed = 评分失败
108110
rate-done = 评分成功

phira/src/scene/song.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1221,6 +1221,7 @@ impl SongScene {
12211221
item(tl!("mods-autoplay"), Some(tl!("mods-autoplay-sub")), Mods::AUTOPLAY);
12221222
item(tl!("mods-flip-x"), Some(tl!("mods-flip-x-sub")), Mods::FLIP_X);
12231223
item(tl!("mods-fade-out"), Some(tl!("mods-fade-out-sub")), Mods::FADE_OUT);
1224+
item(tl!("mods-strict-mode"), Some(tl!("mods-strict-mode-sub")), Mods::STRICT);
12241225
(width, h)
12251226
});
12261227
}

prpr/src/judge.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -362,9 +362,9 @@ impl Judge {
362362

363363
let (LIMIT_BAD_R, LIMIT_GOOD_R, LIMIT_PERFECT_R) =
364364
if res.config.strict() {
365-
(LIMIT_BAD, LIMIT_GOOD,LIMIT_PERFECT)
365+
(LIMIT_BAD*0.5, LIMIT_GOOD*0.5, LIMIT_PERFECT*0.5)
366366
} else {
367-
(LIMIT_BAD*0.5, LIMIT_GOOD*0.5, 0.5* LIMIT_PERFECT)
367+
(LIMIT_BAD, LIMIT_GOOD, LIMIT_PERFECT)
368368
};
369369

370370
if res.config.autoplay() {

0 commit comments

Comments
 (0)