Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- How to make a LiveSplit component:
- -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
- -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)
- -add a new class to your project that implements the IComponent interface or extends one of its implementing classes
- -add a new class to your project that implements IComponentFactory
- -make sure to implement the Create() method of this interface such that it returns an instance of the component class that you made
- -add a ComponentFactory attribute to your AssemblyInfo.cs file and give it the type of your factory class like so
- [assembly: ComponentFactory(typeof(MyComponentFactory))]
Add Comment
Please, Sign In to add comment