-
Notifications
You must be signed in to change notification settings - Fork 15
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
[+] Fancy.CustomCreditsString #17
Conversation
Here's the translation of the review guide to Chinese: 审阅者指南 by Sourcery此拉取请求引入了一个新的配置选项,用于隐藏游戏中的"CREDIT(s)"文本。同时还将一些方法重构为公共方法。 信用文本隐藏过程的序列图sequenceDiagram
participant CC as CreditController
participant TC as TextMeshProUGUI
Note over CC,TC: When credits update
CC->>TC: SetCredits()
CC->>TC: Update text
Note over TC: Text set to empty string
Note over CC,TC: When free play mode changes
CC->>TC: SetFreePlayMode()
CC->>TC: Update text
Note over TC: Text set to empty string
显示 CreditConfig 变更的类图classDiagram
class CreditConfig {
-bool hideCreditsText
+bool PreIsFreePlay(ref bool __result)
+bool PreIsGameCostEnough(ref bool __result)
+bool PreCredit(ref uint __result)
+void PostSetFreePlayMode(TextMeshProUGUI ____creditText)
+void PostSetCredits(TextMeshProUGUI ____creditText)
}
note for CreditConfig "方法从私有改为公共
新增 hideCreditsText 配置
新增用于隐藏信用文本的后缀方法"
文件级变更
提示和命令与 Sourcery 交互
自定义您的体验访问您的仪表板以:
获取帮助Original review guide in EnglishReviewer's Guide by SourceryThis pull request introduces a new configuration option to hide the "CREDIT(s)" text in the game. It also refactors some methods to be public. Sequence diagram for credit text hiding processsequenceDiagram
participant CC as CreditController
participant TC as TextMeshProUGUI
Note over CC,TC: When credits update
CC->>TC: SetCredits()
CC->>TC: Update text
Note over TC: Text set to empty string
Note over CC,TC: When free play mode changes
CC->>TC: SetFreePlayMode()
CC->>TC: Update text
Note over TC: Text set to empty string
Class diagram showing changes to CreditConfigclassDiagram
class CreditConfig {
-bool hideCreditsText
+bool PreIsFreePlay(ref bool __result)
+bool PreIsGameCostEnough(ref bool __result)
+bool PreCredit(ref uint __result)
+void PostSetFreePlayMode(TextMeshProUGUI ____creditText)
+void PostSetCredits(TextMeshProUGUI ____creditText)
}
note for CreditConfig "Methods changed from private to public
New hideCreditsText config added
New postfix methods for hiding credits text"
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
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.
嘿 @Menci - 我已经审查了你的更改 - 以下是一些反馈:
整体评论:
- 除非有特定需要公开可见,否则考虑将方法保持为私有。这有助于维护封装性。
- hideCreditsText 的默认值可能应该为 false,以保持默认的用户界面可见性。用户可以选择隐藏。
以下是我在审查期间查看的内容
- 🟢 一般问题:一切看起来都很好
- 🟢 安全性:一切看起来都很好
- 🟢 测试:一切看起来都很好
- 🟢 复杂性:一切看起来都很好
- 🟢 文档:一切看起来都很好
帮助我变得更有用!请在每条评论上点击 👍 或 👎,我将使用这些反馈来改进你的评论。
Original comment in English
Hey @Menci - I've reviewed your changes - here's some feedback:
Overall Comments:
- Consider keeping the methods private unless there's a specific need for public visibility. This helps maintain encapsulation.
- The default value for hideCreditsText should probably be false to maintain UI visibility by default. Users can opt-in to hiding if desired.
Here's what I looked at during the review
- 🟢 General issues: all looks good
- 🟢 Security: all looks good
- 🟢 Testing: all looks good
- 🟢 Complexity: all looks good
- 🟢 Documentation: all looks good
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.
这个我的想法是做在 fancy 里面,做成自定义点数文本,打开之后就是自定义,留空就是不显示 |
Summary by Sourcery
新功能:
Original summary in English
Summary by Sourcery
New Features: