Skip to content

Commit

Permalink
Add UI
Browse files Browse the repository at this point in the history
  • Loading branch information
unvisual committed Feb 22, 2025
1 parent 0ddb055 commit 4d13f4e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 2 additions & 0 deletions phira/locales/zh-CN/song.ftl
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,8 @@ mods-flip-x = X 轴反转
mods-flip-x-sub = 在 X 轴上反转谱面
mods-fade-out = 下隐
mods-fade-out-sub = 音符在靠近判定线时会隐藏
mods-strict-mode = 严判模式
mods-strict-mode-sub = 判定时间缩短为原来的一半
rate-failed = 评分失败
rate-done = 评分成功
Expand Down
1 change: 1 addition & 0 deletions phira/src/scene/song.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1221,6 +1221,7 @@ impl SongScene {
item(tl!("mods-autoplay"), Some(tl!("mods-autoplay-sub")), Mods::AUTOPLAY);
item(tl!("mods-flip-x"), Some(tl!("mods-flip-x-sub")), Mods::FLIP_X);
item(tl!("mods-fade-out"), Some(tl!("mods-fade-out-sub")), Mods::FADE_OUT);
item(tl!("mods-strict-mode"), Some(tl!("mods-strict-mode-sub")), Mods::STRICT);
(width, h)
});
}
Expand Down
4 changes: 2 additions & 2 deletions prpr/src/judge.rs
Original file line number Diff line number Diff line change
Expand Up @@ -362,9 +362,9 @@ impl Judge {

let (LIMIT_BAD_R, LIMIT_GOOD_R, LIMIT_PERFECT_R) =
if res.config.strict() {
(LIMIT_BAD, LIMIT_GOOD,LIMIT_PERFECT)
(LIMIT_BAD*0.5, LIMIT_GOOD*0.5, LIMIT_PERFECT*0.5)
} else {
(LIMIT_BAD*0.5, LIMIT_GOOD*0.5, 0.5* LIMIT_PERFECT)
(LIMIT_BAD, LIMIT_GOOD, LIMIT_PERFECT)
};

if res.config.autoplay() {
Expand Down

0 comments on commit 4d13f4e

Please sign in to comment.