feat: plugin updates, more installer stuff

This commit is contained in:
goat 2020-02-27 20:43:58 +09:00
parent bef5a35fd9
commit 3640d30cc7
5 changed files with 100 additions and 21 deletions

View file

@ -329,6 +329,11 @@ namespace Dalamud {
HelpMessage = "Draw dev menu DEBUG",
ShowInHelp = false
});
CommandManager.AddHandler("/xlplugins", new CommandInfo(OnOpenInstallerCommand)
{
HelpMessage = "Open the plugin installer"
});
}
private void OnUnloadCommand(string command, string arguments) {
@ -550,6 +555,11 @@ namespace Dalamud {
this.isImguiDrawDevMenu = true;
}
private void OnOpenInstallerCommand(string command, string arguments) {
this.pluginWindow = new PluginInstallerWindow(this.PluginManager, this.StartInfo.PluginDirectory, this.StartInfo.GameVersion);
this.isImguiDrawPluginWindow = true;
}
private int RouletteSlugToKey(string slug) => slug.ToLower() switch {
"leveling" => 1,
"506070" => 2,