I am using Mog Hunter's monogatari menu system.
atelierrgss.wordpress.com
I think I found the coding that I need to edit... but I am not sure HOW to edit it. I managed to make it stop scaleing by changing the scale.x= 0.010 and 1.30 to 1.000. So it would stop growing when selected.
//==============================
// * create Buttons
//==============================
Scene_Item.prototype.createButtons = function() {
this._buttons = [];
this._buttonsAni = [];
for (var i = 0; i < 4; i++) {
this._buttonsAni = 0;
this._buttons = new Sprite(this._comImg);
this._buttons.anchor.x = 0.5;
this._buttons.anchor.y = 0.5;
if (i === 0) {
this._buttons.x = Moghunter.scItem_Com1_X;
this._buttons.y = Moghunter.scItem_Com1_Y;
} else if (i === 1) {
this._buttons.x = Moghunter.scItem_Com2_X;
this._buttons.y = Moghunter.scItem_Com2_Y;
} else if (i === 2) {
this._buttons.x = Moghunter.scItem_Com3_X;
this._buttons.y = Moghunter.scItem_Com3_Y;
} else if (i === 3) {
this._buttons.x = Moghunter.scItem_Com4_X;
this._buttons.y = Moghunter.scItem_Com4_Y;
};
this._field.addChild(this._buttons);
};
};
//==============================
// * update Buttons
//==============================
Scene_Item.prototype.updateButtons = function() {
for (var i = 0; i < this._buttons.length; i++) {
if (this._categoryWindow._index === i && !this._actorWindow.active) {
if (this._buttonsAni === 0) {
this._buttons.scale.x += 1.000;
if (this._buttons.scale.x >= 1.00) {
this._buttons.scale.x = 1.00;
this._buttonsAni = 1;
};
} else {
this._buttons.scale.x -= 0.010;
if (this._buttons.scale.x <= 1.00) {
this._buttons.scale.x = 1.00;
this._buttonsAni = 0;
};
};
this._buttons.opacity += 20;
} else {
this._buttonsAni = 0
if (this._buttons.scale.x >= 1.00) {
this._buttons.scale.x -= 0.010;
if (this._buttons.scale.x <= 1.00) {
this._buttons.scale.x = 1.00;
};
};
if (this._buttons.opacity > 180) {
this._buttons.opacity -= 15;
};
};
this._buttons.scale.y = this._buttons.scale.x;
};
};
I want it to basically be the white image when active and the grey image when in active.
So instead of scaling and changing ocupancy, the else case should be like 'Com11' replacing
'Com1', Com2=Com22, ect ect.
Can I do that in this specific portion of the coding?
Thank you!
RMV – Monogatari
Last Updated 2017 / 12 / 06 File Name – MOG_SceneEquip.js (v1.0) File Name – MOG_SceneItem.js (v1.1) File Name – MOG_SceneMenu.js (v1.2) File Name – MOG_SceneSkill.js (v1.1)…
I think I found the coding that I need to edit... but I am not sure HOW to edit it. I managed to make it stop scaleing by changing the scale.x= 0.010 and 1.30 to 1.000. So it would stop growing when selected.
//==============================
// * create Buttons
//==============================
Scene_Item.prototype.createButtons = function() {
this._buttons = [];
this._buttonsAni = [];
for (var i = 0; i < 4; i++) {
this._buttonsAni = 0;
this._buttons = new Sprite(this._comImg);
this._buttons.anchor.x = 0.5;
this._buttons.anchor.y = 0.5;
if (i === 0) {
this._buttons.x = Moghunter.scItem_Com1_X;
this._buttons.y = Moghunter.scItem_Com1_Y;
} else if (i === 1) {
this._buttons.x = Moghunter.scItem_Com2_X;
this._buttons.y = Moghunter.scItem_Com2_Y;
} else if (i === 2) {
this._buttons.x = Moghunter.scItem_Com3_X;
this._buttons.y = Moghunter.scItem_Com3_Y;
} else if (i === 3) {
this._buttons.x = Moghunter.scItem_Com4_X;
this._buttons.y = Moghunter.scItem_Com4_Y;
};
this._field.addChild(this._buttons);
};
};
//==============================
// * update Buttons
//==============================
Scene_Item.prototype.updateButtons = function() {
for (var i = 0; i < this._buttons.length; i++) {
if (this._categoryWindow._index === i && !this._actorWindow.active) {
if (this._buttonsAni === 0) {
this._buttons.scale.x += 1.000;
if (this._buttons.scale.x >= 1.00) {
this._buttons.scale.x = 1.00;
this._buttonsAni = 1;
};
} else {
this._buttons.scale.x -= 0.010;
if (this._buttons.scale.x <= 1.00) {
this._buttons.scale.x = 1.00;
this._buttonsAni = 0;
};
};
this._buttons.opacity += 20;
} else {
this._buttonsAni = 0
if (this._buttons.scale.x >= 1.00) {
this._buttons.scale.x -= 0.010;
if (this._buttons.scale.x <= 1.00) {
this._buttons.scale.x = 1.00;
};
};
if (this._buttons.opacity > 180) {
this._buttons.opacity -= 15;
};
};
this._buttons.scale.y = this._buttons.scale.x;
};
};
I want it to basically be the white image when active and the grey image when in active.
So instead of scaling and changing ocupancy, the else case should be like 'Com11' replacing
'Com1', Com2=Com22, ect ect.
Can I do that in this specific portion of the coding?
Thank you!