From da69fb227da94af010541fce03f9a086bad46349 Mon Sep 17 00:00:00 2001 From: xu_yanfeng Date: Fri, 21 Feb 2025 14:43:46 +0800 Subject: [PATCH] =?UTF-8?q?=E6=BB=9A=E5=8A=A8=E8=AF=B4=E6=98=8E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/devtools/index.vue | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) diff --git a/src/views/devtools/index.vue b/src/views/devtools/index.vue index 33e3771..e97a079 100644 --- a/src/views/devtools/index.vue +++ b/src/views/devtools/index.vue @@ -60,12 +60,19 @@ export default defineComponent({ }; timer.name = "devtools"; onMounted(() => { - ccui.footbar.showTipsArray({ - tips: [ - "Press space in the hierarchy to quickly control the display and hiding of nodes", // - "If you encounter any problems during use, please feel free to contact me", - ], - }); + const zh = !!navigator.language.startsWith("zh"); + const tips: string[] = zh + ? [ + "在层级中按空格快速控制显示和隐藏节点", // + "如果遇到任何问题,欢迎联系我", + "在游戏界面快速拾取节点(Inspect Game),可以快速在节点树中定位", + "打开QQ频道,全球的cocoser,web在线交流", + ] + : [ + "Press space in the hierarchy to quickly control the display and hiding of nodes", // + "If you encounter any problems during use, please feel free to contact me", + ]; + ccui.footbar.showTipsArray({ tips }); ccui.footbar.registerCmd({ icon: "github", cb: () => {