RMMV Intregrating SRD_FullscreenToggleOption -> YEP_OptionsCore

Frostorm

[]D[][]V[][]D aka "Staf00"
Veteran
Joined
Feb 22, 2016
Messages
1,510
Reaction score
1,107
First Language
English
Primarily Uses
RMMV
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
 

caethyril

^_^
Veteran
Joined
Feb 21, 2018
Messages
2,058
Reaction score
1,483
First Language
EN
Primarily Uses
RMMZ
:kaohi: 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:
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:
  • 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:
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

Why is there so much month left at the end of money? D=
Hello humans! How goes your day in this journey of living? I hope it is good, for I am human like you, and I am feeling great! Worship the altar.
Sand is basically small rocks

Forum statistics

Threads
105,608
Messages
1,014,969
Members
137,273
Latest member
Parzival
Top