Jump to content
LaunchBox Community Forums

int3

Members
  • Posts

    21
  • Joined

  • Last visited

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

int3's Achievements

8-Bit Processor

8-Bit Processor (3/7)

16

Reputation

  1. I think @Jason Carr forgot to add GetSelectedPlatform(). I'm on 9.8-beta-10 and cannot see the method :X But when it gets added I'll post a new video
  2. I'm not sure what kind of links I can post here but search for "HPPC2.Full.System.Install", it's a 12gb download. Extract and go to HyperPC\Attract\menu-art\snap and search in the folder for "Collection". You get 47 videos 720p you can use for the playlists Edit: you also get the wheels from \menu-art\wheel
  3. @Jason Carr only problem in using SystemEventTypes.SelectionChanged is I don't have a way to get the currently selected platform (from the platforms view). It fires when I open BigBox and when I move up or down, but since there's no game selected I can't use PluginHelper.StateManager.GetAllSelectedGames()[0].Platform. Maybe if you add a GetSelectedPlatform() to StateManager?
  4. @Jason Carr glad you like it. I'm attaching a small code I tried now, it only generates the log for the SystemEvent :X BigBoxPluginsTest.cs
  5. @Jason Carr hey jason is there any way to get the platform selected from the platforms menu? I'm getting the platform from the game with SystemEventTypes.SelectionChanged -> GetAllSelectedGames()[0].Platform but I wanted to change colors from the platforms menu Looking at the api I see IBigBoxThemeElementPlugin.OnSelectionChanged but it doesn't seem to be firing or maybe I'm doing something wrong (not sure if I'd have to handle OnUp(), OnDown(), etc) The idea is when I open BigBox or go to "View Platforms" get the currently selected platform, and when I move up or down get the newly selected, etc. Thank you
  6. Ok first let me say I'm doing everything the lazy way docs -> https://www.yeelight.com/download/Yeelight_Inter-Operation_Spec.pdf - you have to activate lan control from the app - the lamp will listen on 55443 for raw tcp json commands (NOT http) (philips hue, for example, you send commands via http post) the recommended way to start would be doing an SSDP discover on your network to get info about the lamp(s) (ip/port/etc). I'm just hardcoding the ip I get from the app/router. I'm also not checking for any server replies so I had to put that sleep on shutdown, because it was disconnecting before powering off :x BigLight.cs
  7. I created a simple plugin to integrate launchbox/bigbox with my yeelight rgb. It kind of simulates a backlight (I have the bulb behind the tv) but I think it looks better, for this case at least The light turn on when I start bigbox, change the color based on selectedgame -> platform and turn off when I exit.. Here's how it looks right now I don't plan in doing a public release but I can share the code if anyone gets interested.
  8. Here is a starting point if someone wants to create this plugin public void OnSelected(IGame selectedGame) { var launchBoxPath = AppDomain.CurrentDomain.BaseDirectory; foreach (var emulator in PluginHelper.DataManager.GetAllEmulators()) { foreach (var emulatorPlatform in emulator.GetAllEmulatorPlatforms()) { if (emulatorPlatform.Platform == selectedGame.Platform && emulatorPlatform.IsDefault) { WshShell wsh = new WshShell(); IWshShortcut shortcut = wsh.CreateShortcut( Environment.GetFolderPath(Environment.SpecialFolder.Desktop) + "\\" + selectedGame.Title + ".lnk" ); shortcut.TargetPath = launchBoxPath + "\\" + emulator.ApplicationPath; shortcut.Arguments = emulatorPlatform.CommandLine + " \"" + launchBoxPath + selectedGame.ApplicationPath + "\""; shortcut.WorkingDirectory = Path.GetDirectoryName(shortcut.TargetPath); shortcut.Save(); break; } } } } It's working for my case where I have emulators and games relative to launchbox folder, and retroarch as default for everything. You'd have to check for absolute paths and other configurations and since I'm using the game title as the filename, remove/replace invalid characters, etc. Edit: for some reason after I refresh the page the "code block" is highlighting stuff as gray
×
×
  • Create New...