Skip to content

feat: add option to disable effect#545

Open
ChickenPige0n wants to merge 1 commit intoTeamFlos:mainfrom
ChickenPige0n:option-disable-effect
Open

feat: add option to disable effect#545
ChickenPige0n wants to merge 1 commit intoTeamFlos:mainfrom
ChickenPige0n:option-disable-effect

Conversation

@ChickenPige0n
Copy link
Member

Closes #541
image

@NuanRMxi
Copy link
Member

NuanRMxi commented May 8, 2025

能试试和autoplay放一起吗

@unvisual
Copy link

unvisual commented Jun 2, 2025

能试试和autoplay放一起吗

渲染代码是这么写的,直接改动可能破坏兼容性,或者堆if史山((

Comment on lines +47 to +48
item-disable-effect = Disable Shader Effect
item-disable-effect-sub = You can turn on this option if you experience lag when playing a chart with shader effects.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

- item-disable-effect = Disable Shader Effect
- item-disable-effect-sub = You can turn on this option if you experience lag when playing a chart with shader effects.
+ item-shader-effect = Shader Effect
+ item-shader-effect = You can turn off this option if you experience lag when playing a chart with shader effects.

我们应该用双重否定句吗?我觉得描述为“着色器效果”,然后值默认为开,这样会符合直觉一点

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

虽然config里确实是disable_effect,但我觉得给用户呈现的要符合直觉一点?不一定和内部实现相同。

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

各种地方也应该相应改名

Comment on lines +47 to +48
item-disable-effect = 禁用着色器效果
item-disable-effect-sub = 如果你在播放包含着色器效果的谱面时遇到卡顿,可以开启此选项以提升流畅度。
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

- item-disable-effect = 禁用着色器效果
- item-disable-effect-sub = 如果你在播放包含着色器效果的谱面时遇到卡顿,可以开启此选项以提升流畅度。
+ item-shader-effect = 着色器效果
+ item-shader-effect-sub = 如果你在播放包含着色器效果的谱面时遇到卡顿,可以关闭此选项以提升流畅度。

同上

}
item! {
render_title(ui, tl!("item-disable-effect"), Some(tl!("item-disable-effect-sub")));
render_switch(ui, rr, t, &mut self.disable_effect_btn, config.disable_effect);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这样这里就应该用!config.disable_effect了,虽然内部实现有点怪,但是用起来可能更符合直觉?

@sjfhsjfh
Copy link
Contributor

需要内部讨论一下公平性问题

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feature]增加禁用shader选项

5 participants