mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-15 05:04:15 +01:00
feat: add /xllog
This commit is contained in:
parent
fbff9b4135
commit
0b92a0f81f
1 changed files with 10 additions and 0 deletions
|
|
@ -546,6 +546,11 @@ namespace Dalamud {
|
||||||
ShowInHelp = false
|
ShowInHelp = false
|
||||||
});
|
});
|
||||||
|
|
||||||
|
CommandManager.AddHandler("/xllog", new CommandInfo(OnOpenLog) {
|
||||||
|
HelpMessage = Loc.Localize("DalamudDevLogHelp", "Open dev log DEBUG"),
|
||||||
|
ShowInHelp = false
|
||||||
|
});
|
||||||
|
|
||||||
CommandManager.AddHandler("/xlplugins", new CommandInfo(OnOpenInstallerCommand) {
|
CommandManager.AddHandler("/xlplugins", new CommandInfo(OnOpenInstallerCommand) {
|
||||||
HelpMessage = Loc.Localize("DalamudInstallerHelp", "Open the plugin installer")
|
HelpMessage = Loc.Localize("DalamudInstallerHelp", "Open the plugin installer")
|
||||||
});
|
});
|
||||||
|
|
@ -695,6 +700,11 @@ namespace Dalamud {
|
||||||
this.isImguiDrawDevMenu = !this.isImguiDrawDevMenu;
|
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) {
|
private void OnDebugImInfoCommand(string command, string arguments) {
|
||||||
var io = this.InterfaceManager.LastImGuiIoPtr;
|
var io = this.InterfaceManager.LastImGuiIoPtr;
|
||||||
var info = $"WantCaptureKeyboard: {io.WantCaptureKeyboard}\n";
|
var info = $"WantCaptureKeyboard: {io.WantCaptureKeyboard}\n";
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue