MV Intregrating SRD_FullscreenToggleOption -> YEP_OptionsCore

So I'm using both SRD's FullscreenToggleOption & Yanfly's OptionsCore plugins and just noticed that SRD's plugin doesn't show up in the Options menu. I'm assuming I need to put the correct stuff in the OptionsCore plugin settings. My question is: What do I put?
1603886482848.png
👋 Correct, you'd need to specify the option in Yanfly's plugin. Fullscreen stuff is built into the engine, though, so you don't need SRD's Full Screen Option plugin if you're using Yanfly's Options Core.

You can copy+paste this into the Text tab of the relevant parameter structure:
Spoiler: Plaintext option
Code:
{"Name":"\\i[0]Fullscreen","---Settings---":"","HelpDesc":"\"Toggle between fullscreen or windowed mode.\"","Symbol":"fullscreen","ShowHide":"\"show = true;\"","Enable":"\"enabled = true;\"","Ext":"\"ext = 0;\"","---Functions---":"","MakeCommandCode":"\"this.addCommand(name, symbol, enabled, ext);\"","DrawItemCode":"\"var rect = this.itemRectForText(index);\\nvar statusWidth = this.statusWidth();\\nvar titleWidth = rect.width - statusWidth;\\nthis.resetTextColor();\\nthis.changePaintOpacity(this.isCommandEnabled(index));\\nthis.drawOptionsName(index);\\nthis.drawOptionsOnOff(index);\"","ProcessOkCode":"\"var index = this.index();\\nvar symbol = this.commandSymbol(index);\\nvar value = this.getConfigValue(symbol);\\nthis.changeValue(symbol, !value);\\nif (value) Graphics._cancelFullScreen();\\nelse Graphics._requestFullScreen();\"","CursorRightCode":"\"var index = this.index();\\nvar symbol = this.commandSymbol(index);\\nvar value = this.getConfigValue(symbol);\\nthis.changeValue(symbol, true);\\nGraphics._requestFullScreen();\"","CursorLeftCode":"\"var index = this.index();\\nvar symbol = this.commandSymbol(index);\\nvar value = this.getConfigValue(symbol);\\nthis.changeValue(symbol, false);\\nGraphics._cancelFullScreen();\"","DefaultConfigCode":"\"ConfigManager[symbol] = false;\"","SaveConfigCode":"\"config[symbol] = ConfigManager[symbol];\"","LoadConfigCode":"\"if (config[symbol] !== undefined) {\\n  ConfigManager[symbol] = !!config[symbol];\\n}\\nif (ConfigManager[symbol]) Graphics._requestFullScreen();\\nelse Graphics._cancelFullScreen();\""}
...or you can edit each field, in which case here are some examples:
Spoiler: Snippets
  • Cursor right:
    JavaScript:
    var index = this.index();
    var symbol = this.commandSymbol(index);
    var value = this.getConfigValue(symbol);
    this.changeValue(symbol, true);
    Graphics._requestFullScreen();
  • Cursor left:
    JavaScript:
    var index = this.index();
    var symbol = this.commandSymbol(index);
    var value = this.getConfigValue(symbol);
    this.changeValue(symbol, false);
    Graphics._cancelFullScreen();
  • Process OK:
    JavaScript:
    var index = this.index();
    var symbol = this.commandSymbol(index);
    var value = this.getConfigValue(symbol);
    this.changeValue(symbol, !value);
    if (value) Graphics._cancelFullScreen();
    else Graphics._requestFullScreen();
  • Load Config:
    JavaScript:
    if (config[symbol] !== undefined) {
      ConfigManager[symbol] = !!config[symbol];
    }
    if (ConfigManager[symbol]) Graphics._requestFullScreen();
    else Graphics._cancelFullScreen();
Source:
👋 Correct, you'd need to specify the option in Yanfly's plugin. Fullscreen stuff is built into the engine, though, so you don't need SRD's Full Screen Option plugin if you're using Yanfly's Options Core.

You can copy+paste this into the Text tab of the relevant parameter structure:
Spoiler: Plaintext option
Code:
{"Name":"\\i[0]Fullscreen","---Settings---":"","HelpDesc":"\"Toggle between fullscreen or windowed mode.\"","Symbol":"fullscreen","ShowHide":"\"show = true;\"","Enable":"\"enabled = true;\"","Ext":"\"ext = 0;\"","---Functions---":"","MakeCommandCode":"\"this.addCommand(name, symbol, enabled, ext);\"","DrawItemCode":"\"var rect = this.itemRectForText(index);\\nvar statusWidth = this.statusWidth();\\nvar titleWidth = rect.width - statusWidth;\\nthis.resetTextColor();\\nthis.changePaintOpacity(this.isCommandEnabled(index));\\nthis.drawOptionsName(index);\\nthis.drawOptionsOnOff(index);\"","ProcessOkCode":"\"var index = this.index();\\nvar symbol = this.commandSymbol(index);\\nvar value = this.getConfigValue(symbol);\\nthis.changeValue(symbol, !value);\\nif (value) Graphics._cancelFullScreen();\\nelse Graphics._requestFullScreen();\"","CursorRightCode":"\"var index = this.index();\\nvar symbol = this.commandSymbol(index);\\nvar value = this.getConfigValue(symbol);\\nthis.changeValue(symbol, true);\\nGraphics._requestFullScreen();\"","CursorLeftCode":"\"var index = this.index();\\nvar symbol = this.commandSymbol(index);\\nvar value = this.getConfigValue(symbol);\\nthis.changeValue(symbol, false);\\nGraphics._cancelFullScreen();\"","DefaultConfigCode":"\"ConfigManager[symbol] = false;\"","SaveConfigCode":"\"config[symbol] = ConfigManager[symbol];\"","LoadConfigCode":"\"if (config[symbol] !== undefined) {\\n  ConfigManager[symbol] = !!config[symbol];\\n}\\nif (ConfigManager[symbol]) Graphics._requestFullScreen();\\nelse Graphics._cancelFullScreen();\""}
...or you can edit each field, in which case here are some examples:
​
Spoiler: Snippets
  • Cursor right:
    JavaScript:
    var index = this.index();
    var symbol = this.commandSymbol(index);
    var value = this.getConfigValue(symbol);
    this.changeValue(symbol, true);
    Graphics._requestFullScreen();
  • Cursor left:
    JavaScript:
    var index = this.index();
    var symbol = this.commandSymbol(index);
    var value = this.getConfigValue(symbol);
    this.changeValue(symbol, false);
    Graphics._cancelFullScreen();
  • Process OK:
    JavaScript:
    var index = this.index();
    var symbol = this.commandSymbol(index);
    var value = this.getConfigValue(symbol);
    this.changeValue(symbol, !value);
    if (value) Graphics._cancelFullScreen();
    else Graphics._requestFullScreen();
  • Load Config:
    JavaScript:
    if (config[symbol] !== undefined) {
      ConfigManager[symbol] = !!config[symbol];
    }
    if (ConfigManager[symbol]) Graphics._requestFullScreen();
    else Graphics._cancelFullScreen();

​
​
Source:
This helped me big time.
Many thanks!

Original thread: https://forums.rpgmakerweb.com/threads/intregrating-srd_fullscreentoggleoption-yep_optionscore.129267/