Add ability to search and activate entities via the command dialog (#3692)

This commit is contained in:
Sebastian Malton authored and GitHub committed 2021-09-23 13:18:31 -04:00
1 parent 3c55cba40d
commit 3c77c06519
5 files changed
+90 -3

No files matched your search

@@ -30,6 +30,7 @@ import { HotbarRemoveCommand } from "../components/hotbar/hotbar-remove-command"
import { HotbarSwitchCommand } from "../components/hotbar/hotbar-switch-command";
import { navigate } from "../navigation";
import { HotbarRenameCommand } from "../components/hotbar/hotbar-rename-command";
import { ActivateEntityCommand } from "../components/activate-entity-command";
export function initCommandRegistry() {
CommandRegistry.getInstance()
@@ -196,5 +197,11 @@ export function initCommandRegistry() {
scope: "global",
action: () => CommandOverlay.open(<HotbarRenameCommand />)
},
{
id: "catalog.searchEntities",
title: "Catalog: Activate Entity ...",
scope: "global",
action: () => CommandOverlay.open(<ActivateEntityCommand />)
},
]);
}