SaltyMonkey лет назад: 6
Родитель
Сommit
2063eb3707
3 измененных файлов с 12 добавлено и 1 удалено
  1. 1 1
      README.md
  2. 1 0
      docs/commands.md
  3. 10 0
      lib/unitCommands.js

+ 1 - 1
README.md

@@ -24,7 +24,7 @@ FPS Manager is modern and extremely customizable module for Tera Toolbox which c
 - Custom modes (don't like predefined settings for configurations or they can't fit your gameplay? just rename everything or create personal configurations)
 - Optional commands (commands IS OPTIONAL and can be disabled in settings)
 - Interactive messages (Want to know details about mod automation decisions? Just use interactive mode)
-- Manual mode (can apply your custom settings in middle of combat - use advanced commands to overwrite automation)
+- Manual mode with input prediction (can apply your custom mode in middle of combat EVEN IF YOU CAN'T REMEMBER EXACT MODE NAME OR LAZY TO WRITE MODE NAME FULLY)
 
 ## FAQ
 

+ 1 - 0
docs/commands.md

@@ -7,6 +7,7 @@ Full list for all in-game chat commands
 | /8 fm help     | /8 fn h    | Print compact command list in Toolbox chat |
 | /8 fm auto     | /8 fn a    | Enable/Disable automatic mode changes based on events.|
 | /8 fm mode <name> | /8 fn m <name> | Forcefully enable desired mode from active preset|
+| /8 fm list     | /8 fn l    | Print available modes |
 | /8 fm class <name> | /8 fn c <name> | Enable/Disable per-class presets. Will need relog|
 | /8 fm debug | /8 fn d | Enable/Disable some inbuild debug features|
 | /8 fm interactive | /8 fn i | Enable/Disable interactive messages in chat when modes changes|

+ 10 - 0
lib/unitCommands.js

@@ -11,6 +11,7 @@
 */
 const rfdc = require("rfdc")({ "proto": true });
 const stringSimilarity = require("string-similarity");
+
 class unitControl {
 	/**
 	 *Creates an instance of Control.
@@ -54,6 +55,13 @@ class unitControl {
 			deps.data._eventTrigger();
 		};
 
+		const modeListHandler = () => {
+			deps.mod.command.message("Current preset contains:");
+			Object.keys(deps.data.preset.modes).forEach(key => {
+				deps.mod.command.message(`${key}`);
+			});
+		};
+
 		const commands = {
 			"a": autoSettingHandler,
 			"auto": autoSettingHandler,
@@ -63,6 +71,8 @@ class unitControl {
 			"help": helpHandler,
 			"m": activeModeHandler,
 			"mode": activeModeHandler,
+			"l": modeListHandler,
+			"list": modeListHandler,
 			"d": debugSettingsHandler,
 			"debug": debugSettingsHandler
 		};