RMMV Intregrating SRD_FullscreenToggleOption -> YEP_OptionsCore

Frostorm

[]D[][]V[][]D aka "Staf00"
Veteran
Joined
Feb 22, 2016
Messages
1,568
Reaction score
1,156
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,072
Reaction score
1,493
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

grief... lol... I keep seeing request for MZ versions of MV plugins. this is why I haven't moved over and just MZ for my MV project.
Egg-sitting minigame is coming along nicely. Are you a bad enough dino to keep all these raptor eggs warm?

I forgot to post the animated version of the previous map I was working on. I'm still arguing with myself on if I like the stark blue ground better than the undergrowth ground used on the waterfall map. Hmm...
now that fmod is free for indie(<200k revenue), it would be interesting to see someone add fmod support for rpg maker
Can't say I can't promise progress on a project just yet. But I can say I had fun databasing tonight. :)

Forum statistics

Threads
105,800
Messages
1,016,557
Members
137,494
Latest member
soikeohomnay
Top