Jump to content
LaunchBox Community Forums

Skarn

Members
  • Posts

    15
  • Joined

  • Last visited

Everything posted by Skarn

  1. Yeah, it's tricky to get the balance between convenience and flexibility. Once there is too many choices/actions, it becomes more sensible to just make it a full utility. Ultimately it's probably not a requirement many have - people would be more inclined to just add as many cover images as they like, and let LaunchBox do its logic in selecting one for display. Maybe as the user is 'initiating' the paste for a reason, showing a window of all the images currently allocated to the game with 'delete' buttons on each would give the user more autonomy is deciding if they want to 'clean up' images as part of the action and also confirm visually what is already there. That window could also have a 'remove all' button. The next logical extension is for multiple games to be selected, and have a window with a 'Next/Previous' button on it and let the user move through the selections and take action on searching / pasting / deleting images
  2. I am cautious about the approach honestly, there are quite a few scenarios where having multiple images for an Image Group are very valid. Launchbox either cycles or randomly selects from images when multiple apply or it uses region preferences etc. Perhaps I should switch to more of a tool window approach where it can be chosen more clearly what "kind of paste" needs to happen as whether you keep existing images / follow region really can change. Thanks for kind comments about code, but already I am revising how I'll lay it out. The Settings class needs to be more safe/robust for adding/removing new settings and I have very little error handling. Need to make sure I'm closing all streams and I've left a few unused references here and there. One big thing I haven't tested is what happens to games with international characters! I should see how Launchbox names the images for those. Also the whole -01 filenaming I now see is irrelevant. I was hoping Launchbox used the naming order as a preference, but as far as I can tell, it is random selection if multiple 01,02,03 etc. exists. All good things to learn and the whole reason for this first "simple" plugin.
  3. Hi, Before I get into bigger ideas / projects - this is my first plugin if anyone would like to review / test. Two new game context menu options: Search Cover Simple opens your browser to Google Images with the game platform and title as search parameters. Paste Image Copies an image in the clipboard (e.g. right-click image in browser and select 'Copy Image') to the game's images folder for the Image Type selected. Paste Image options There are options available for the "Paste Image" function in the Tools > Paste Image Settings menu. By default the "Paste Image" command will save to the game's region image sub-folder. If "Ignore Region" is turned on, it will save to the game's platform folder. If "Delete other images" is turned on, it will delete existing images for the Image Type selected. If both options are turned on, all images for the Image Type selected will be deleted, leaving only the pasted image. This is actually my use case - I wanted as shortcut to force the new image to be the only one available for LaunchBox to display. Please refer to the git hub readme.md for full detail, code review and feedback and bugs are welcomed. https://github.com/Skarnivorous/LaunchBoxPasteImage
  4. Thanks Fry, unfortunately, PluginHelper.LaunchBoxMainViewModel.RefreshData(); looks like it is working - the grid reloads, but the new image isn't picked up until I select 'Refresh Selected Images' myself... Maybe I'm just trying too quickly... I'll try a delay.
  5. Hi, In main UI you can right click and select Refresh Images for selected. Does anyone know an equivalent in plugin API? I have a good code flow for updating images, but once the process completes, I have to manually select Refresh Images to see the changes. Thanks!
  6. It's a neat idea, showing a controller map image as part of the game launch/details. I think I'd probably go for a little built in editor where the background controller image is selected/uploaded for a game, and then a bit of xml definition which describes the coordinates of text labels, and have Launchbox render the image and the labels over the top on demand via a plugin. But regardless of approach, this seems like it might be a fair bit of work to assign everything. Maybe just per platform to show where the user controller maps to the original platform controller would be an easier base approach.
  7. I will work with 3.5 as the target for now. It's not critical at all to work with .Net 5.0 (core), just wondered if I was doing something wrong or if it just isn't compatible at this time. I suspect the latter and am happy using 3.5.
  8. I was trying to use a webview but I suspect it was clashing with the already existing cefsharp in launchbox. So I am just using Launchbox's one now. I may still end up needing another dll (I don't right now) and I'll report back if I have any issues again.
  9. I'm playing around implementing something for this. I'll be using the right click menu plugin system "Web search image(s)", a form window will display showing one of the selected/searched games at a time with some basic info (platform, title). A search on google images will automatically run - showing the search bar for tweaking the search criteria if needed. A drop down will allow selecting the target image type (front cover, back cover etc.). Clicking a google result will show a larger preview of the image with an 'Assign' button. Pressing 'Assign' will download and save/attach the image to the Launchbox game db. On assign, the window will move to the next game and repeat the search. A shortcut will be to double click to assign instead of seeing the preview first. One 'limitation' will be that user will have to generate a google search api key and enter it into the plugin settings. I'll release the full source as we go. I've not done anything for money before, but I'll look into setting up like a voluntary paypal dontate button or something if anyone feels strongly enough about it to give some support.
  10. Hi, is it possible Launchbox will be updated to use a newer version of CefSharp/Chromium? I'd like to use some newer features, and see some graphic issues with the 83 version included in Launchbox. Thanks 🙂
  11. Unfortunately this doesn't seem to work and Launchbox tries to initialise the dll as a plugin too.
  12. Hi, when trying to load additional references and assemblies for my plugin project, Launchbox will log: FIRST CHANCE EXCEPTION: Could not load file or assembly 'WHATEVER'. The system cannot find the file specified. at System.Reflection.RuntimeAssembly.nLoad(AssemblyName fileName, String codeBase, RuntimeAssembly assemblyContext, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, AssemblyLoadContext assemblyLoadContext) at System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName assemblyRef, StackCrawlMark& stackMark, AssemblyLoadContext assemblyLoadContext) Where is Launchbox looking for the additional referenced assembly dlls? I can move them there to see if it works. I've tried the root folder and the core sub folder. Thanks for any assistance.
  13. Hi, have any plugin developers been able to get a .Net 5.0 targetted class/dll with WindowsForms to work with Launchbox? No errors are produced, but also none of the interfaces get initialized. If I target Core 3.1 it works fine.
×
×
  • Create New...