hwangbro

livesplit component

Aug 25th, 2021
471
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.82 KB | None | 0 0
  1. How to make a LiveSplit component:
  2. -start a new C# project. Select "class library" (dll) as the type of project | Important: Make sure to use a .net framework 4.6.1 class library
  3. -add references to LiveSplit.Core.dll and UpdateManager.dll to your project (you are going to need to use the LiveSplit.UI.Components namespace throughout the project)
  4. -add a new class to your project that implements the IComponent interface or extends one of its implementing classes
  5. -add a new class to your project that implements IComponentFactory
  6. -make sure to implement the Create() method of this interface such that it returns an instance of the component class that you made
  7. -add a ComponentFactory attribute to your AssemblyInfo.cs file and give it the type of your factory class like so
  8. [assembly: ComponentFactory(typeof(MyComponentFactory))]
Add Comment
Please, Sign In to add comment