public static void MoveBackward(bool start, bool redo = false) { if (start && !UseLUAToMove) { CloseChatFrameEditBox(); } if (UseLUAToMove) { Lua.LuaDoString(start ? "MoveBackwardStart();" : "MoveBackwardStop();"); } else { if (start) { Keybindings.DownKeybindings(Enums.Keybindings.MOVEBACKWARD); } else { Keybindings.UpKeybindings(Enums.Keybindings.MOVEBACKWARD); } } if (redo) { MoveBackward(!start); } }
public static void Ascend(bool start, bool redo = false, bool forceLUA = false) { if (start && !UseLUAToMove) { CloseChatFrameEditBox(); } if (UseLUAToMove || forceLUA) { Lua.LuaDoString(start ? "JumpOrAscendStart();" : "AscendStop();"); } else { if (start) { Keybindings.DownKeybindings(Enums.Keybindings.JUMP); } else { Keybindings.UpKeybindings(Enums.Keybindings.JUMP); } } if (redo) { Ascend(!start); } }
public static void Descend(bool start, bool redo = false, bool forceLUA = false) { if (start && !UseLUAToMove) { CloseChatFrameEditBox(); } if (UseLUAToMove || forceLUA) { Lua.LuaDoString(start ? "SitStandOrDescendStart();" : "DescendStop();"); } else { if (start) { Keybindings.DownKeybindings(Enums.Keybindings.SITORSTAND); } else { Keybindings.UpKeybindings(Enums.Keybindings.SITORSTAND); } } if (redo) { Descend(!start); } }
public static void StrafeRight(bool start, bool redo = false) { if (start && !UseLUAToMove) { CloseChatFrameEditBox(); } if (UseLUAToMove) { Lua.LuaDoString(start ? "StrafeRightStart();" : "StrafeRightStop();"); } else { if (start) { Keybindings.DownKeybindings(Enums.Keybindings.STRAFERIGHT); } else { Keybindings.UpKeybindings(Enums.Keybindings.STRAFERIGHT); } } if (redo) { StrafeRight(!start); } }