SRD Window Skin Option + Yanfly Options Core

Frostorm

[]D[][]V[][]D aka "Staf00"
Veteran
Joined
Feb 22, 2016
Messages
1,626
Reaction score
1,196
First Language
English
Primarily Uses
RMMV
As the title suggests, I'm trying to incorporate SRD_WindowSkinOption with YEP_OptionsCore. Yanfly's plugin allows you to add extra functionality to the options menu, but I don't know how to fill it out...
options.png
 

Trihan

Speedy Scripter
Veteran
Joined
Apr 12, 2012
Messages
2,604
Reaction score
1,961
First Language
English
Primarily Uses
RMMV
So you're trying to add an option for changing windowskin?
 

Frostorm

[]D[][]V[][]D aka "Staf00"
Veteran
Joined
Feb 22, 2016
Messages
1,626
Reaction score
1,196
First Language
English
Primarily Uses
RMMV
Yes, I'm trying to access SRD's window skin changing options via Yanfly's options core.
 

ShadowDragon

Veteran
Veteran
Joined
Oct 8, 2018
Messages
2,945
Reaction score
1,050
First Language
Dutch
Primarily Uses
RMMV
it was already answer somewhere, but here is the code (I save that:D )

Symbol Parameter : windowSkin and/or fontStyle (same code!)


==================
"Draw Option Code"
==================
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 value = this.getConfigValue(symbol);
var rate = value / x; // change x to a number of windowskins/fontstyles
this.drawText(this.statusText(index), titleWidth, rect.y, statusWidth, 'center');


=================
"Process OK Code"
=================
var index = this.index();
var symbol = this.commandSymbol(index);
var value = this.getConfigValue(symbol);
value += 1;
if (value > x) { // change x to a number of windowskins/fontstyles
value = 0;
}
value = value.clamp(0, x); // change x to a number of windowskins/fontstyles
this.changeValue(symbol, value);


===================
"Cursor Right Code"
===================
var index = this.index();
var symbol = this.commandSymbol(index);
var value = this.getConfigValue(symbol);
value += 1;
value = value.clamp(0, x); // change x to a number of windowskins/fontstyles
this.changeValue(symbol, value);


===================
"Cursor Right Code"
===================
var index = this.index();
var symbol = this.commandSymbol(index);
var value = this.getConfigValue(symbol);
value -= 1;
value = value.clamp(0, x); // change x to a number of windowskins/fontstyles
this.changeValue(symbol, value);


=====================
"Default Config Code"
=====================
ConfigManager[symbol] = 0;


==================
"Load Config Code"
==================
var value = config[symbol];
if (value !== undefined) {
ConfigManager[symbol] = Number(value).clamp(0, x); // change x to a number of windowskins/fontstyles
} else {
ConfigManager[symbol] = 0;
}
 

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

Latest Threads

Latest Profile Posts

Day 9 of giveaways! 8 prizes today :D
He mad, but he cute :kaopride:

Our latest feature is an interview with... me?!

People4_2 (Capelet off and on) added!

Just beat the last of us 2 last night and starting jedi: fallen order right now, both use unreal engine & when I say i knew 80% of jedi's buttons right away because they were the same buttons as TLOU2 its ridiculous, even the same narrow hallway crawl and barely-made-it jump they do. Unreal Engine is just big budget RPG Maker the way they make games nearly identical at its core lol.

Forum statistics

Threads
106,040
Messages
1,018,476
Members
137,824
Latest member
dobratemporal
Top