Plugin API Feature Request - Jump To Game

Issue #6529 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 jump to (auto-select) 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 jump the user to the newly added game. This would be similar to ILaunchBoxMainViewModel.PlayGame but instead of launching the game, it would just select the game as if the user had scrolled to it and clicked on it.

I’ve written another related feature request that would be an EditGame method that would allow the plug-in to open up the Edit Game window for a given IGame. That feature request is here:

https://bitbucket.org/jasondavidcarr/launchbox/issues/6530/plugin-api-feature-request-open-edit-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 (1)

  1. Log in to comment