Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions Tweaks/WalkingModeCommand.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
using FFXIVClientStructs.FFXIV.Client.Game.Control;
using SimpleTweaksPlugin.Tweaks.AbstractTweaks;
using SimpleTweaksPlugin.TweakSystem;

namespace SimpleTweaksPlugin.Tweaks;

[TweakName("Walking Mode Command")]
[TweakDescription("Adds a command to toggle walking mode")]
[TweakAuthor("SubaruYashiro")]
public unsafe class WalkingModeCommand: CommandTweak
{
protected override string Command => "/walk";
protected override string HelpMessage => "Toggle Walking Mode";

protected override void OnCommand(string args)
{
Control* ctrl = Control.Instance();
ctrl->IsWalking = !ctrl->IsWalking;
}
}