mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-30 12:23:39 +01:00
Update for 5.1
This commit is contained in:
parent
4ad5bee0c6
commit
545757d406
9 changed files with 100 additions and 28 deletions
|
|
@ -158,8 +158,8 @@ namespace Dalamud {
|
|||
HelpMessage = "Unmute a word or sentence. Usage: /fatewatchremove <word or sentence>"
|
||||
});
|
||||
|
||||
CommandManager.AddHandler("/xldactortable", new CommandInfo(OnDebugActorTable) {
|
||||
HelpMessage = "Actor table operations",
|
||||
CommandManager.AddHandler("/xldstate", new CommandInfo(OnDebugPrintGameState) {
|
||||
HelpMessage = "Print parsed game state",
|
||||
ShowInHelp = false
|
||||
});
|
||||
|
||||
|
|
@ -318,11 +318,13 @@ namespace Dalamud {
|
|||
Process.Start(ChatHandlers.LastLink);
|
||||
}
|
||||
|
||||
private void OnDebugActorTable(string command, string arguments) {
|
||||
private void OnDebugPrintGameState(string command, string arguments) {
|
||||
Framework.Gui.Chat.Print(this.ClientState.Actors.Length + " entries");
|
||||
Framework.Gui.Chat.Print(this.ClientState.LocalPlayer.Name);
|
||||
Framework.Gui.Chat.Print(this.ClientState.LocalPlayer.CurrentWorld.Name);
|
||||
Framework.Gui.Chat.Print(this.ClientState.LocalPlayer.HomeWorld.Name);
|
||||
Framework.Gui.Chat.Print(this.ClientState.LocalContentId.ToString("X"));
|
||||
Framework.Gui.Chat.Print(Framework.Gui.Chat.LastLinkedItemId.ToString());
|
||||
|
||||
for (var i = 0; i < this.ClientState.Actors.Length; i++) {
|
||||
var actor = this.ClientState.Actors[i];
|
||||
|
|
@ -369,7 +371,6 @@ namespace Dalamud {
|
|||
continue;
|
||||
|
||||
this.Configuration.ComboPresets |= value;
|
||||
Framework.Gui.Chat.Print(argumentsParts[1] + " SET");
|
||||
}
|
||||
}
|
||||
break;
|
||||
|
|
@ -379,7 +380,6 @@ namespace Dalamud {
|
|||
continue;
|
||||
|
||||
this.Configuration.ComboPresets ^= value;
|
||||
Framework.Gui.Chat.Print(argumentsParts[1] + " TOGGLE");
|
||||
}
|
||||
}
|
||||
break;
|
||||
|
|
@ -390,7 +390,6 @@ namespace Dalamud {
|
|||
continue;
|
||||
|
||||
this.Configuration.ComboPresets &= ~value;
|
||||
Framework.Gui.Chat.Print(argumentsParts[1] + " UNSET");
|
||||
}
|
||||
}
|
||||
break;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue