public void HandleNotification(Notification notification) { IMenuApp app = _apps.Find(x => x.GetInfo().ID == notification.AppId); if (MenuAppContainer.current == null || app == null) { return; } _dropdown.value = _apps.IndexOf(app); bool ok = MenuAppContainer.current.SetView(app.GetRootItem()); if (ok) { app.HandleNotification(notification); } }
private void RegisterMenuApp(IMenuApp app) { app.Init(_api.OpenAPI, _api.MenuAPI, _api.HUDAPI); MenuApps.Add(app); }
public MenuController(IMenuApp menuApp) { _menuApp = menuApp; }