The code itself is the documentation. And, furthermore, programming is difficult. Sure, learning the language itself is easy as the mass of "learn JavaScript in 60 minutes" tutorials out there demonstrate, but learn how to work with an already existing framework is not.
I don't really agree with this. It's great that there is documentation for MZ, but it still isn't very good. I came to RPG Maker because I was feeling nostalgic and decided on MV because it already had a large amount of available plugins, both free and paid. Yes, learning how to program can be frustrating but comparing RM to Unity, if I want to do something in Unity, I can just look it up:
docs.unity3d.com
All properties, functions, parameters, etc, are all here. Is it going to be challenging? Sure, but it's significantly 1000% less challenging and frustrating than having to open up rpg_windows.js and sift through 6000 lines of someone else's code to try and make sense of how these objects work.
This isn't a case of "this is just how it is," I would consider RPG Maker to be up there with the top dogs in terms of availability and popularity. Godot, Unity, and UE all have clear documentation where RM does not.
What also helps is to look at already existing windows that look similar to yours like Window_TitleCommand
It doesn't though, because in some cases they'll be using an alias, or using some functions but not all. The closest usable resource I've found is
https://github.com/rpgtkoolmv/corescript
As well as:
https://kinoar.github.io/rmmv-doc-web/
These two resources as far as I'm aware are the only grip the community has on any form of documentation that shows properties, hierarchy, functions, etc.
I don't want this to be misconstrued, because I do appreciate the help. You did try to guide me in a direction that may work, but I gave up on Window_Command because:
Width and Height broke immediately. Why? Oh, because despite defining it, it has it's own functions for width and height:
Code:
Window_Command.prototype.initialize = function(x, y) {
this.clearCommandList();
this.makeCommandList();
var width = this.windowWidth();
var height = this.windowHeight();
Window_Selectable.prototype.initialize.call(this, x, y, width, height);
this.refresh();
this.select(0);
this.activate();
};
This is fine, I can change initialize, but it was easier for me to just use .windowWidth() and .windowHeight(), why wouldn't I? They're alread there.
The one I still don't understand is, it doesn't have it's own x or y, but kept setting x and y to 0 and despite everything I tried it just wouldn't stop doing this. Window_TitleCommand has an updatePlacement function, but I don't see anything like that in Window_Command, although I guess I could just make one.
It was so frustrating because I was so close to completing the plugin, and where I see the benefits of Window_Command it's like starting right from scratch even though it's an inherited object.
I lost interest in trying to find out why it doesn't work and just decided to use Window_Selectable, grab the indices for the Select() method and create switch cases for 0, 1, 2, etc, whatever I want my menu to input and built my own handler. I would like to learn how to use Window_Command eventually, but the menu is already completed and everything works exactly as intended.