forked from solidDoWant/Planetbase-Framework
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathFrameworkMod.cs
More file actions
35 lines (28 loc) · 926 Bytes
/
FrameworkMod.cs
File metadata and controls
35 lines (28 loc) · 926 Bytes
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
using System;
using Planetbase;
namespace PlanetbaseFramework
{
public class FrameworkMod : ModBase
{
public const string AssemblyVersion = "2.2.2.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();
}
private class ModTitleButton : TitleButton
{
public ModTitleButton() : base("mod_titlemenu") { }
public override void HandleAction(GameStateTitle gst)
{
GameManager.getInstance().setNewState(new ModListGameState());
}
}
}
}