-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathFancyTextFactory.cs
More file actions
34 lines (26 loc) · 1.1 KB
/
Copy pathFancyTextFactory.cs
File metadata and controls
34 lines (26 loc) · 1.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
// ============================================================================
// FancyTextFactory.cs
// Registers FancyText with LiveSplit's component system.
// ============================================================================
using System;
using System.Reflection;
using LiveSplit.Model;
using LiveSplit.UI.Components;
[assembly: ComponentFactory(typeof(FancyTextFactory))]
namespace LiveSplit.UI.Components
{
public class FancyTextFactory : IComponentFactory
{
public string ComponentName => "Fancy Text";
public string Description =>
"Configurable label with gradient text colors, custom outline sizes, " +
"and custom shadow sizes.";
public ComponentCategory Category => ComponentCategory.Media;
public IComponent Create(LiveSplitState state) => new FancyTextComponent(state);
public string UpdateName => ComponentName;
public string UpdateURL => string.Empty;
public string XMLURL => string.Empty;
public Version Version =>
Assembly.GetExecutingAssembly().GetName().Version;
}
}