A fast 2D and 3D game engine — TypeScript SDK, C++/WebAssembly core, visual editor. Ship one project to web, desktop, WeChat MiniGames, playable ads, and native Android / iOS.
TypeScript 2d-game-engine3d3d-game-engineandroidcppecsgame-editorgame-enginegamedeviostypescriptwebassemblywebglwebgpuwechat-minigame
fix(editor): disambiguate Build/Compile/Package; surface Command Palette
esengine3dc5d8de6965
diff --git a/desktop/src/commands/editorCommands.ts b/desktop/src/commands/editorCommands.tsindex 526bb0266..c001d626a 100644--- a/desktop/src/commands/editorCommands.ts+++ b/desktop/src/commands/editorCommands.ts@@ -106,7 +106,8 @@ commands.register({commands.register({id: 'project.export',label: t('cmd.project.export'),- category: t('cat.file'),+ category: t('cat.build'),+ keybinding: 'mod+shift+b',isEnabled: () => !!ProjectStore.getSnapshot(),run: () => editor().setBuildOpen(true),});diff --git a/desktop/src/components/SettingsDialog.tsx b/desktop/src/components/SettingsDialog.tsxindex e52ba6092..c2ba21725 100644--- a/desktop/src/components/SettingsDialog.tsx+++ b/desktop/src/components/SettingsDialog.tsx@@ -352,7 +352,11 @@ export function SettingsDialog() {const [open, setOpen] = useState(false);const [query, setQuery] = useState('');const sections = settingsRegistry.allSections();- const [active, setActive] = useState(() => sections[0]?.id ?? '');+ // Open on the requested section (e.g. Help → Keyboard Shortcuts), else the first.+ const [active, setActive] = useState(() => {+ const want = useEditorStore.getState().settingsSection;+ return (want && sections.some((s) => s.id === want) ? want : sections[0]?.id) ?? '';+ });// Subscribe so rows reflect live changes of bound (editorStore) settings too.useEditorStore((s) => `${s.showGrid}|${s.showGizmos}|${s.snapping}|${s.snapStep}`);diff --git a/desktop/src/i18n/messages/commands.ts b/desktop/src/i18n/messages/commands.tsindex 062718144..eb7939f16 100644--- a/desktop/src/i18n/messages/commands.ts+++ b/desktop/src/i18n/messages/commands.ts@@ -15,7 +15,7 @@ export const commandMessages = defineMessages({'cmd.project.open': { en: 'Open Project…', zh: '打开项目…' },'cmd.project.save': { en: 'Save Scene', zh: '保存场景' },'cmd.project.saveAs': { en: 'Save Scene As…', zh: '场景另存为…' },- 'cmd.project.export': { en: 'Build…', zh: '构建…' },+ 'cmd.project.export': { en: 'Package Project…', zh: '打包项目…' },'cmd.project.close': { en: 'Close Project', zh: '关闭项目' },'cmd.project.resavePrefabs': { en: 'Resave All Prefabs', zh: '重新保存所有预制体' },@@ -66,7 +66,7 @@ export const commandMessages = defineMessages({'cmd.play.toggle': { en: 'Play', zh: '运行' },'cmd.play.stop': { en: 'Stop', zh: '停止' },'cmd.play.pause': { en: 'Pause / Resume', zh: '暂停 / 继续' },- 'cmd.build.scripts': { en: 'Build Project Scripts', zh: '构建项目脚本' },+ 'cmd.build.scripts': { en: 'Compile Scripts', zh: '编译脚本' },// — Command categories (menus, shortcuts page grouping) —'cat.file': { en: 'File', zh: '文件' },diff --git a/desktop/src/i18n/messages/layout.ts b/desktop/src/i18n/messages/layout.tsindex 2469fdc57..67a580da1 100644--- a/desktop/src/i18n/messages/layout.ts+++ b/desktop/src/i18n/messages/layout.ts@@ -49,8 +49,8 @@ export const layoutMessages = defineMessages({'layout.playInWindow': { en: 'Play In New Window', zh: '在新窗口中运行' },'layout.singlePlayer': { en: 'Single Player', zh: '单人' },'layout.playersListenServer': { en: '{n} Players (Listen Server)', zh: '{n} 名玩家(监听服务器)' },- 'layout.build': { en: 'Build', zh: '构建' },- 'layout.buildScriptsTooltip': { en: 'Build project scripts', zh: '构建项目脚本' },+ 'layout.build': { en: 'Compile', zh: '编译' },+ 'layout.buildScriptsTooltip': { en: 'Compile project scripts (type-check + bundle)', zh: '编译项目脚本(类型检查 + 打包)' },// — Status bar —'layout.contentDrawer': { en: 'Content Drawer', zh: '内容抽屉' },diff --git a/desktop/src/i18n/messages/menu.ts b/desktop/src/i18n/messages/menu.tsindex 5317288a1..ec557b22f 100644--- a/desktop/src/i18n/messages/menu.ts+++ b/desktop/src/i18n/messages/menu.ts@@ -26,6 +26,7 @@ export const menuMessages = defineMessages({},'menu.checkUpdates': { en: 'Check for Updates…', zh: '检查更新…' },'menu.openLogs': { en: 'Open Log Folder', zh: '打开日志文件夹' },+ 'menu.keyboardShortcuts': { en: 'Keyboard Shortcuts', zh: '键盘快捷键' },'toast.extractedSchemas': { en: 'Extracted component schemas', zh: '组件 Schema 已提取' },'toast.extractFailed': { en: 'Extract failed', zh: '提取失败' },diff --git a/desktop/src/layout/MenuBar.tsx b/desktop/src/layout/MenuBar.tsxindex aa6d4605e..b2944b628 100644--- a/desktop/src/layout/MenuBar.tsx+++ b/desktop/src/layout/MenuBar.tsx@@ -94,8 +94,6 @@ export function MenuBar() {cmdItem('project.save'),cmdItem('project.saveAs'),{ sep: true },- cmdItem('project.export'),- { sep: true },cmdItem('project.close'),],},@@ -148,6 +146,8 @@ export function MenuBar() {{title: t('menu.build'),items: [+ cmdItem('project.export'),+ { sep: true },cmdItem('build.scripts'),{label: t('menu.extractSchemas'),@@ -191,6 +191,12 @@ export function MenuBar() {}),},{ sep: true },+ cmdItem('palette.open'),+ {+ label: t('menu.keyboardShortcuts'),+ onClick: () => useEditorStore.getState().openSettings('shortcuts'),+ },+ { sep: true },{label: t('menu.openLogs'),onClick: () => void window.estella?.app?.openLogs?.(),diff --git a/desktop/src/store/editorStore.ts b/desktop/src/store/editorStore.tsindex 7b1c68bda..eafba949e 100644--- a/desktop/src/store/editorStore.ts+++ b/desktop/src/store/editorStore.ts@@ -100,6 +100,9 @@ interface EditorState {// Settings window (the registry-driven preferences dialog).settingsOpen: boolean;setSettingsOpen: (open: boolean) => void;+ /** Section to open Settings on (e.g. 'shortcuts' from Help); null = the first. */+ settingsSection: string | null;+ openSettings: (section?: string | null) => void;// Command palette (Ctrl/Cmd+Shift+P) — run any registry command by name.paletteOpen: boolean;@@ -193,6 +196,8 @@ export const useEditorStore = create<EditorState>((set) => ({settingsOpen: false,setSettingsOpen: (settingsOpen) => set({ settingsOpen }),+ settingsSection: null,+ openSettings: (section = null) => set({ settingsOpen: true, settingsSection: section }),paletteOpen: false,setPaletteOpen: (paletteOpen) => set({ paletteOpen }),