Interactive Tools Enhancements Support (#5115)

* added `useInteractive` hook and exposed to `PluginApi`
* made `SceneFileInfoPanel` patchable
This commit is contained in:
blackx69
2024-08-05 19:34:27 -05:00
committed by GitHub
parent c79f299d1a
commit c8d4dacffd
4 changed files with 60 additions and 5 deletions

View File

@@ -16,6 +16,7 @@ import { useToast } from "./hooks/Toast";
import Event from "./hooks/event";
import { before, instead, after, components, RegisterComponent } from "./patch";
import { useSettings } from "./components/Settings/context";
import { useInteractive } from "./hooks/Interactive/context";
// due to code splitting, some components may not have been loaded when a plugin
// page is loaded. This function will load all components passed to it.
@@ -94,6 +95,7 @@ export const PluginApi = {
useSpriteInfo,
useToast,
useSettings,
useInteractive,
},
patch: {
// intercept the arguments of supported functions