I'm 'very' new to JS, but took/currently taking a course on it.
When I'm trying to do is build my own custom menu. To hide things I don't want I'm just passing 0 as the parameter when creating those rectangles.
This is what I'm currently doing to hide the 'Status' window on the Equip Scene. Is there a better way to do this? (This is all done in a plugin so the original code stays unchanged)
Granted since I'm just passing 0s I could just skip the variable declaration, this is just to help myself in the learning process.
My Next question is, on the Equip Scene, picking a weapon/armor/etc... to equip/unequip shares the same window when further picking the item in question. The Window in question:
To explain further, this window, in which you choose 'Weapon' will be repopulated with every available weapon to equip and the 'remove' choice.
Is there a way to separate these windows, so that I can have them both up at the same (only after the first option is chosen) and side by side? ie: Weapon | Shield | Head | Armor | Accessory window on the left; The actual items in question on the right as its own window (List of Weapons if weapons are chosen, Armor for armor, etc...).
Sorry again, still really new to JS (3days old xD), so a lot still eludes me.
When I'm trying to do is build my own custom menu. To hide things I don't want I'm just passing 0 as the parameter when creating those rectangles.
This is what I'm currently doing to hide the 'Status' window on the Equip Scene. Is there a better way to do this? (This is all done in a plugin so the original code stays unchanged)
JavaScript:
Scene_Equip.prototype.statusWindowRect = function () {
const wx = 0;
const wy = 0;
const ww = 0;
const wh = 0;
return new Rectangle(wx, wy, ww, wh);
};
Granted since I'm just passing 0s I could just skip the variable declaration, this is just to help myself in the learning process.
My Next question is, on the Equip Scene, picking a weapon/armor/etc... to equip/unequip shares the same window when further picking the item in question. The Window in question:
JavaScript:
Scene_Equip.prototype.slotWindowRect = function() {
const commandWindowRect = this.commandWindowRect();
const wx = this.statusWidth();
const wy = commandWindowRect.y + commandWindowRect.height;
const ww = Graphics.boxWidth - this.statusWidth();
const wh = this.mainAreaHeight() - commandWindowRect.height;
return new Rectangle(wx, wy, ww, wh);
};
To explain further, this window, in which you choose 'Weapon' will be repopulated with every available weapon to equip and the 'remove' choice.
Is there a way to separate these windows, so that I can have them both up at the same (only after the first option is chosen) and side by side? ie: Weapon | Shield | Head | Armor | Accessory window on the left; The actual items in question on the right as its own window (List of Weapons if weapons are chosen, Armor for armor, etc...).
Sorry again, still really new to JS (3days old xD), so a lot still eludes me.