Skip to main content

AddWindowCreateHook()

Add a callback hook to receive information every time a new Steam window opens.

Example

frontend/index.tsx
function windowCreated(_context: any) {
const title = _context.m_strTitle // name of the window that opened
}

// Entry point on the front end of your plugin
export default async function PluginMain() {
Millennium.AddWindowCreateHook(windowCreated)
}
ParameterTypeDescription
callback(context: object) => voidcallback of the hook
  • type method
  • returns void