I've got a question about a function in Window_Base. Can someone tell me exactly what .fittingHeight() does? Here's the code from dev tools window, as seen in the file rpg_windows.js:
Window_Base.prototype.fittingHeight = function(numLines) { return numLines * this.lineHeight() + this.standardPadding() * 2;};I'm reading through plugins that change up menus, and I keep seeing this being used, but I'm still not sure what's going on with this...
Yeah, fitting_height was also used in Ace, and maybe even VX.
So we're saying the number of lines by the height of each line, which will give the height of all the items combined. Adding standardPadding * 2 gives enough room for some spacing at the top and bottom of the contents.
@laaghisce, what you are asking for is a detailed walkthrough of a plugin. First I have to ask why you want to look at the script, if you have no scripting experience? Are you trying to use it, or to learn how to make one yourself? To use a plugin, you should not have to go into the script at all. If you want to learn how to make one, this is not the thread for it to happen in.
If you want your detailed walkthrough, could you please post a new thread in the Learning Javascript forum, state what plugin you're going to look at, ask what questions you would like answered, and someone will help you out
