-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathStartupScript.cs
43 lines (40 loc) · 1.4 KB
/
StartupScript.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
42
43
using Bannerlord.UIExtenderEx;
using HarmonyLib;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime;
using System.Text;
using System.Threading.Tasks;
using TaleWorlds.CampaignSystem;
using TaleWorlds.Core;
using TaleWorlds.Library;
using TaleWorlds.MountAndBlade;
namespace MoreWeaponSlots
{
internal class StartupScript : MBSubModuleBase
{
protected override void OnSubModuleLoad()
{
new Harmony("WeaponSlotPatch").PatchAll();
base.OnSubModuleLoad();
//UIExtender uiExtender = new UIExtender("SurrenderTweaks");
//uiExtender.Register(typeof(StartupScript).Assembly);
//uiExtender.Enable();
}
// Token: 0x06000007 RID: 7 RVA: 0x000021A8 File Offset: 0x000003A8
protected override void OnBeforeInitialModuleScreenSetAsRoot()
{
base.OnBeforeInitialModuleScreenSetAsRoot();
//InformationManager.DisplayMessage(new InformationMessage("All the units shall look the same!"));
}
protected override void InitializeGameStarter(Game game, IGameStarter starterObject)
{
base.InitializeGameStarter(game, starterObject);
if (starterObject is CampaignGameStarter starter)
{
starter.AddBehavior(SlotManager.Instance);
}
}
}
}