-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathFrameworkMod.cs
41 lines (33 loc) · 1.06 KB
/
FrameworkMod.cs
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
35
36
37
38
39
40
41
using System;
using System.Collections.Generic;
using Planetbase;
namespace PlanetbaseFramework
{
public class FrameworkMod : ModBase
{
public const string AssemblyVersion = "2.3.3.0";
public new static readonly Version ModVersion = new Version(AssemblyVersion);
public FrameworkMod()
{
Utils.ErrorTexture = ModTextures.Find(x => x.name.Equals("error.png"));
}
public override string ModName { get; } = "Planetbase Framework";
public override void Init()
{
RegisterTitleButton(new ModTitleButton());
InjectPatches();
}
public override ICollection<string> GetContributors()
{
return new[] { "solidDoWant" };
}
private class ModTitleButton : TitleButton
{
public ModTitleButton() : base("mod_titlemenu") { }
public override void HandleAction(GameStateTitle gst)
{
GameManager.getInstance().setNewState(new ModListGameState());
}
}
}
}