- Joined
- Mar 2, 2016
- Messages
- 9
- Reaction score
- 1
- First Language
- German
- Primarily Uses
Plugins Used:
http://yanfly.moe/2015/10/09/yep-1-core-engine/
http://yanfly.moe/2018/04/13/yep-165-options-core-rpg-maker-mv/
http://yanfly.moe/2018/01/19/yep-162-advanced-switches-and-variables-rpg-maker-mv/
I'll try to explain my problem as best as I can. If I alter the default settings for any option of the plugin it doesn't work. Just as an example If I want the games sound to be at 80% by default after starting up the game for the first time, it is always 100% even if I put it like that.
Or another example I want to create an option that controls a switch so I make it like that.
It works fine except for the default to be true. It's always off on default.
For the Switch that should be controlled by this, I use this:
So my issue with this is that I can't set first time startup defaults for the yanfly options core plugin. Does anyone have an idea what is wrong with this? I already tried to make a new project with only these three plugins and got the same result.
http://yanfly.moe/2015/10/09/yep-1-core-engine/
http://yanfly.moe/2018/04/13/yep-165-options-core-rpg-maker-mv/
http://yanfly.moe/2018/01/19/yep-162-advanced-switches-and-variables-rpg-maker-mv/
I'll try to explain my problem as best as I can. If I alter the default settings for any option of the plugin it doesn't work. Just as an example If I want the games sound to be at 80% by default after starting up the game for the first time, it is always 100% even if I put it like that.
Code:
//Default Config
ConfigManager[symbol] = 80;
Code:
//In the Options Pluign:
// Make Option:
this.addCommand(name, symbol, enabled, ext);
//Draw Option:
var rect = this.itemRectForText(index);
var statusWidth = this.statusWidth();
var titleWidth = rect.width - statusWidth;
this.resetTextColor();
this.changePaintOpacity(this.isCommandEnabled(index));
this.drawOptionsName(index);
this.drawOptionsOnOff(index);
//Press OK:
var index = this.index();
var symbol = this.commandSymbol(index);
var value = this.getConfigValue(symbol);
this.changeValue(symbol, !value);
//Crusor Right:
var index = this.index();
var symbol = this.commandSymbol(index);
var value = this.getConfigValue(symbol);
this.changeValue(symbol, true);
//Crusor Left:
var index = this.index();
var symbol = this.commandSymbol(index);
var value = this.getConfigValue(symbol);
this.changeValue(symbol, false);
//Default Config
ConfigManager[symbol] = true;
//Save Config
config[symbol] = ConfigManager[symbol];
//Load Cofing
ConfigManager[symbol] = !!config[symbol];
For the Switch that should be controlled by this, I use this:
Code:
Eval: ConfigManager['exampleoption']

