mirror of
https://github.com/goatcorp/Dalamud.git
synced 2026-02-22 07:47:45 +01:00
Initial icon replacement commit
This commit is contained in:
parent
5c7c6fc7d6
commit
84c66ddc6e
5 changed files with 549 additions and 0 deletions
|
|
@ -11,6 +11,7 @@ using Dalamud.Game.ClientState.Actors.Types;
|
|||
using Dalamud.Game.ClientState.Actors.Types.NonPlayer;
|
||||
using Dalamud.Game.Command;
|
||||
using Dalamud.Game.Internal;
|
||||
using Dalamud.Game.Internal.Gui;
|
||||
using Dalamud.Game.Network;
|
||||
using Dalamud.Plugin;
|
||||
using Dalamud.Settings;
|
||||
|
|
@ -39,6 +40,10 @@ namespace Dalamud {
|
|||
|
||||
public readonly DalamudStartInfo StartInfo;
|
||||
|
||||
public readonly IconReplacer IconReplacer;
|
||||
|
||||
public readonly IconReplaceChecker IconReplaceChecker;
|
||||
|
||||
public Dalamud(DalamudStartInfo info) {
|
||||
this.StartInfo = info;
|
||||
|
||||
|
|
@ -66,6 +71,10 @@ namespace Dalamud {
|
|||
|
||||
this.PluginManager = new PluginManager(this, info.PluginDirectory, info.DefaultPluginDirectory);
|
||||
|
||||
this.IconReplaceChecker = new IconReplaceChecker(this.targetModule, this.sigScanner);
|
||||
|
||||
this.IconReplacer = new IconReplacer(this, this.targetModule, this.sigScanner);
|
||||
|
||||
try {
|
||||
this.PluginManager.LoadPlugins();
|
||||
} catch (Exception ex) {
|
||||
|
|
@ -79,6 +88,10 @@ namespace Dalamud {
|
|||
Framework.Enable();
|
||||
|
||||
this.BotManager.Start();
|
||||
|
||||
this.IconReplaceChecker.Enable();
|
||||
|
||||
this.IconReplacer.Enable();
|
||||
}
|
||||
|
||||
public void Unload() {
|
||||
|
|
@ -95,6 +108,10 @@ namespace Dalamud {
|
|||
this.BotManager.Dispose();
|
||||
|
||||
this.unloadSignal.Dispose();
|
||||
|
||||
this.IconReplaceChecker.Dispose();
|
||||
|
||||
this.IconReplacer.Dispose();
|
||||
}
|
||||
|
||||
private void SetupCommands() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue