Merge pull request #172 from ascclemens/master

Add /xllog
This commit is contained in:
goaaats 2020-09-12 20:17:07 +02:00 committed by GitHub
commit bb87547218
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -546,6 +546,11 @@ namespace Dalamud {
ShowInHelp = false
});
CommandManager.AddHandler("/xllog", new CommandInfo(OnOpenLog) {
HelpMessage = Loc.Localize("DalamudDevLogHelp", "Open dev log DEBUG"),
ShowInHelp = false
});
CommandManager.AddHandler("/xlplugins", new CommandInfo(OnOpenInstallerCommand) {
HelpMessage = Loc.Localize("DalamudInstallerHelp", "Open the plugin installer")
});
@ -695,6 +700,11 @@ namespace Dalamud {
this.isImguiDrawDevMenu = !this.isImguiDrawDevMenu;
}
private void OnOpenLog(string command, string arguments) {
this.logWindow = new DalamudLogWindow(CommandManager);
this.isImguiDrawLogWindow = true;
}
private void OnDebugImInfoCommand(string command, string arguments) {
var io = this.InterfaceManager.LastImGuiIoPtr;
var info = $"WantCaptureKeyboard: {io.WantCaptureKeyboard}\n";