-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathRuntimeTextFactory.cs
More file actions
20 lines (19 loc) · 1014 Bytes
/
RuntimeTextFactory.cs
File metadata and controls
20 lines (19 loc) · 1014 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
using LiveSplit.RuntimeText;
using LiveSplit.Model;
using LiveSplit.UI.Components;
using System;
using System.IO;
using System.Reflection;
[assembly: ComponentFactory(typeof(RuntimeTextFactory))]
namespace LiveSplit.RuntimeText {
public class RuntimeTextFactory : IComponentFactory {
public string UpdateName => ComponentName;
public string UpdateURL => Path.Combine("https://raw.githubusercontent.com/Voxelse", Assembly.GetExecutingAssembly().GetName().Name, "main/");
public string XMLURL => UpdateURL + "Components/ComponentsUpdate.xml";
public Version Version => Assembly.GetExecutingAssembly().GetName().Version;
public string ComponentName => "Runtime Text";
public string Description => "Displays text that can be modified by code at runtime.";
public ComponentCategory Category => ComponentCategory.Information;
public IComponent Create(LiveSplitState state) => new RuntimeTextComponent(state, "Runtime Text", "Runtime Text");
}
}