mirror of
https://github.com/goatcorp/Dalamud.git
synced 2026-02-24 13:41:49 +01:00
refactor: move Dalamud interface into a class
This commit is contained in:
parent
b37a2d1786
commit
3ee8e02f02
7 changed files with 367 additions and 329 deletions
|
|
@ -69,7 +69,7 @@ namespace Dalamud.Plugin
|
|||
#if DEBUG
|
||||
public bool IsDebugging => true;
|
||||
#else
|
||||
public bool IsDebugging => this.dalamud.IsDevMenu;
|
||||
public bool IsDebugging => this.dalamud.DalamudUi.IsDevMenu;
|
||||
#endif
|
||||
|
||||
private readonly Dalamud dalamud;
|
||||
|
|
|
|||
|
|
@ -213,7 +213,7 @@ namespace Dalamud.Plugin
|
|||
ImGui.SameLine();
|
||||
|
||||
if (ImGui.Button(Loc.Localize("SettingsInstaller", "Settings"))) {
|
||||
this.dalamud.OpenSettings();
|
||||
this.dalamud.DalamudUi.OpenSettings();
|
||||
}
|
||||
|
||||
var closeText = Loc.Localize("Close", "Close");
|
||||
|
|
|
|||
|
|
@ -251,5 +251,10 @@ namespace Dalamud.Plugin
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
public void ReloadPlugins() {
|
||||
UnloadPlugins();
|
||||
LoadPlugins();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue