[Feature] 将服务器积分榜自动转换为Overlay窗口#112
[Feature] 将服务器积分榜自动转换为Overlay窗口#112Wind-DeterMination-backup wants to merge 3 commits intoTinyLake:mainfrom
Conversation
Summary of ChangesHello, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! 此拉取请求旨在通过引入一个新的Overlay窗口来优化服务器积分榜消息的显示方式。它能够自动识别并拦截带有特定前缀的积分榜消息,将其从聊天框中移除,转而在一个独立的、可调整大小和位置的Overlay窗口中清晰展示。这一改进显著提升了长文本消息的可读性,避免了聊天界面的混乱,并确保了重要信息的存档,为用户提供了更整洁、更高效的信息获取体验。 Highlights
🧠 New Feature in Public Preview: You can now enable Memory to help Gemini Code Assist learn from your team's feedback. This makes future code reviews more consistent and personalized to your project's style. Click here to enable Memory in your admin console. Changelog
Activity
Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for GitHub and other Google products, sign up here. You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension. Footnotes
|
|
暂缓,等上游发版 Anuken@d15da6e |
背景
[#FEBBEF][]。改动内容
BroadOverlay组件,专门识别并承载带保留前缀的服务器积分榜消息。Hooks.onHandleSendMessage的服务端消息分支里优先拦截该前缀;命中后不再继续走默认聊天显示,避免前缀污染聊天框。broadOverlay。技术细节
src/mindustryX/features/ui/BroadOverlay.ktUIExtKt.init()中初始化并注册新的 Overlay 窗口。Hooks.onHandleSendMessage()sender == null的服务器消息分支处理。null,从而跳过Vars.ui.chatfrag.addMessage(message)的默认路径。BroadOverlay内部维护最近一次积分榜正文和更新时间。ResetEvent/WorldLoadEvent时清空内容,避免跨地图/跨服务器残留旧榜单。Vars.state.isGame && hasContent(),没有内容时不会占据 HUD。ScrollPane + labelWrap承载多行排行榜文本,保留颜色标记。行为说明
验证
work/下执行:./gradlew.bat core:compileJava --no-daemon