Fry Posted March 15, 2022 Share Posted March 15, 2022 The ISystemEventsPlugin interface will notify a plugin via the OnEventRaised method whenever certain events occur. It passes the plugin a SystemEventTypes string to indicate what type of event has occurred. One of the event types is SelectionChanged. Does anyone know a way to identify what was actually selected when this event fires? I was looking around at the PluginHelper's BigBoxMainViewModel, DataManager, and StateManager to see if I can figure out what platform, playlist, or game was selected but I couldn't find a way. I'm hoping I'm missing something simple, or is it just not possible? 1 Quote Link to comment Share on other sites More sharing options...
fraganator Posted March 16, 2022 Share Posted March 16, 2022 1 hour ago, Fry said: The ISystemEventsPlugin interface will notify a plugin via the OnEventRaised method whenever certain events occur. It passes the plugin a SystemEventTypes string to indicate what type of event has occurred. One of the event types is SelectionChanged. Does anyone know a way to identify what was actually selected when this event fires? I was looking around at the PluginHelper's BigBoxMainViewModel, DataManager, and StateManager to see if I can figure out what platform, playlist, or game was selected but I couldn't find a way. I'm hoping I'm missing something simple, or is it just not possible? There doesn't seem to be an obvious way to get what was selected at the point when the selection was changed, just what is currently selected. The StateManager has methods for getting selected games and the selected platform. Not sure about the playlist though. Might involve tracking some selection state internally to work out what has changed. PluginHelper.StateManager.GetAllSelectedGames(); PluginHelper.StateManager.GetSelectedPlatform(); 1 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.