Posted August 15, 2025 by Sang Hendrix
Here is a tutorial made by Alasthorn. Special thanks to Alasthorn for a great tutorial that will help YEP Option Core users.
this.addCommand(name, symbol, enabled, ext);
var rect = this.itemRectForText(index); var statusWidth = this.statusWidth(); var titleWidth = rect.width - statusWidth; this.resetTextColor(); this.changePaintOpacity(this.isCommandEnabled(index)); this.drawOptionsName(index); var symbol = this.commandSymbol(index); var value = this.getConfigValue(symbol); var languages = ['FR', 'EN']; var languageNames = ['Français', 'English']; var langIndex = languages.indexOf(value); var status = languageNames[langIndex] || value; this.drawText(status, titleWidth, rect.y, statusWidth, 'center');
var index = this.index(); var symbol = this.commandSymbol(index); var value = this.getConfigValue(symbol); var languages = ['FR', 'EN']; var current = languages.indexOf(value); var next = (current + 1) % languages.length; this.changeValue(symbol, languages[next]); changeToLanguage(languages[next]);
var index = this.index(); var symbol = this.commandSymbol(index); var value = this.getConfigValue(symbol); var languages = ['FR', 'EN']; var current = languages.indexOf(value); var next = (current + 1) % languages.length; this.changeValue(symbol, languages[next]); changeToLanguage(languages[next]);
var index = this.index(); var symbol = this.commandSymbol(index); var value = this.getConfigValue(symbol); var languages = ['FR', 'EN']; var current = languages.indexOf(value); var next = (current - 1 + languages.length) % languages.length; this.changeValue(symbol, languages[next]); changeToLanguage(languages[next]);
ConfigManager[symbol] = 'FR';
config[symbol] = ConfigManager[symbol];
ConfigManager[symbol] = config[symbol] || 'FR';
Note: FR and EN are the symbols for my two languages in the game: French and English, but you can adapt them as you wish: example :
var languages = [‘FR’, ‘EN’, ‘JP’, ‘DE’]; var languageNames = [‘Français’, ‘English’, ‘Japanese’, ‘German’];
to be modified in:
Draw Option Code
Process OK Code
Cursor Right Code
Cursor Left Code