-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathEntryPoint.vb
26 lines (22 loc) · 867 Bytes
/
EntryPoint.vb
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
Imports HarmonyLib
Imports TaleWorlds.Core
Imports TaleWorlds.Engine.GauntletUI
Imports TaleWorlds.MountAndBlade
Namespace Global.FindEverywhere
Public Class EntryPoint
Inherits MBSubModuleBase
Public Overrides Sub OnCampaignStart(game As Game, starterObject As Object)
MyBase.OnCampaignStart(game, starterObject)
UIResourceManager.UIResourceDepot.StartWatchingChangesInDepot()
End Sub
Protected Overrides Sub OnSubModuleLoad()
MyBase.OnSubModuleLoad()
Dim har As New Harmony("org.calradia.admiralnelson.findeverywhere")
har.PatchAll()
End Sub
Protected Overrides Sub OnApplicationTick(dt As Single)
MyBase.OnApplicationTick(dt)
UIResourceManager.UIResourceDepot.CheckForChanges()
End Sub
End Class
End Namespace