-
Notifications
You must be signed in to change notification settings - Fork 734
微软账号皮肤相关修改 #3858
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
微软账号皮肤相关修改 #3858
Conversation
需要至少实现简中和英语的翻译
|
|
考虑为披风名添加翻译吗? |
Co-authored-by: 3gf8jv4dv <[email protected]>
如果这个 PR 被合并,后续会在独立 PR 中添加翻译 |
若要加入披风选择功能,应直接在启动器内加入数个披风的贴图以允许玩家可视化地选择披风 |
@@ -0,0 +1,203 @@ | |||
/* | |||
* Hello Minecraft! Launcher | |||
* Copyright (C) 2021 huangyuhui <[email protected]> and contributors |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
* Copyright (C) 2021 huangyuhui <huanghongxun2008@126.com> and contributors | |
* Copyright (C) 2025 huangyuhui <huanghongxun2008@126.com> and contributors |
无关紧要的小建议~
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
不应更新版权信息年份
Co-authored-by: 3gf8jv4dv <[email protected]>
之前的2019十周年金色苦力怕披风和Pan都是基岩版独占的,最近同步java了。还有普通披风,登录基岩版获得,还需要同步一下翻译 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
可供选择的披风选项现在看起来像是居中,且会受到右侧披风图像加载与否的影响(转圈时/呈现图像时文本会跳动)。
Co-authored-by: 3gf8jv4dv <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
public Task<?> uploadSkin() { | ||
if (account instanceof OfflineAccount) { | ||
Controllers.dialog(new OfflineAccountSkinPane((OfflineAccount) account)); | ||
return null; | ||
return Task.runAsync(Schedulers.javafx(), () -> { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
质疑此处分别对 OfflineAccount 和 MicrosoftAccount 处理,会增加耦合性。如果可能,请使用面向对象的思维处理不同账户类型的操作。
} catch (ResourceNotFoundError error) { | ||
previewCapeImage = FXUtils.newRemoteImage(capeItem.getSelectedData().getUrl()); | ||
} | ||
previewCapeImage = scaleImageNearestNeighbor(previewCapeImage, 10, 10); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
你在重复造轮子 :( 请使用 JavaFX 的 ImageView 来转换图片大小
HMCL/src/main/java/org/jackhuang/hmcl/ui/account/MicrosoftAccountChangeCapeDialog.java
Outdated
Show resolved
Hide resolved
HMCL/src/main/java/org/jackhuang/hmcl/ui/account/MicrosoftAccountChangeCapeDialog.java
Outdated
Show resolved
Hide resolved
@@ -0,0 +1,203 @@ | |||
/* | |||
* Hello Minecraft! Launcher | |||
* Copyright (C) 2021 huangyuhui <[email protected]> and contributors |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
不应更新版权信息年份
} | ||
|
||
public static class MinecraftProfileResponseCape { | ||
String id; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
用于 Gson 序列化的字段应当标记为 private final
String id; | ||
String state; | ||
String url; | ||
String variant; // CLASSIC, SLIM |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
既然这是一个 Enum,则应当使用对应的 Enum 作为类型。同样,请标记为 private final
Close #3486
Close #3633
Close #3410
内容: