Commands
// Ensure the React UI has initialized first (e.g., call Show React App)
if (window.RPGBridge && RPGBridge.IsInitialized()) {
// Use enums defined in menus/shared/types.js (emitted by the menus build)
// Example: open the Main Menu screen
RPGBridge.CreateEvent(
RPGEventType.SCREEN_OPEN,
RPGScreen[RPGScreen.MainMenu],
{ abitraryData: 'value' },
'EventTrace_usedForDebuggingAndLoggingPurposes'
);
}Last updated