Plugin API Feature Request - Open Edit Game Screen From Plug-in

Issue #6530 new
Adam Fry created an issue

As a plug-in developer, I’d love a method in the plug-in API (probably in ILaunchBoxMainViewModel) that allows me to open the Edit Game screen for a given IGame in the LaunchBox user interface. The value behind this is when a plug-in uses the IDataManager.AddNewGame method, I can add a new game automatically for the user, then I can use methods in IDataManager and ILaunchBoxMainViewModel to save the data and refresh LaunchBox so the game will appear in LaunchBox. It would be nice if there was a method I could use to automatically open the game so users can edit the game details without having to search for the newly added game themselves. This would be similar to the ILaunchBoxMainViewModel.PlayGame method but instead of launching the game, it would open the Edit Game screen as if the user had selected a game and pressed CTRL+E.

I’ve created a 2nd related feature request that would be a JumpToGame method that would allow the plug-in automatically select a given IGame in the LaunchBox interface. That feature request is here:

https://bitbucket.org/jasondavidcarr/launchbox/issues/6529/plugin-api-feature-request-jump-to-game

The end to end workflow would be something like:

  1. User triggers plug-in
  2. Plug-in creates a new game
  3. Plug-in saves the new game in the LB data file
  4. Plug-in refreshes the LB screen
  5. Plug-in jumps to the new game
  6. Plug-in opens the edit game screen

The reason why I’d like to do this is that there are some things that are not easily done via the plug-in API like finding the LB database ID for a new game or downloading meta-data for a game. When having a plug-in add a new game, I don’t see much value in reinventing the wheel on those functionalities, I’d rather the user use the existing out-of-the-box functionality that allows them to do that. I think this little bridge to get from the plug-in adding a new game to the edit game screen being open for the user would be a nice ability to streamline the process for adding a new game from a plug-in.

Comments (0)

  1. Log in to comment