Bind all windows x,y,width and height to variables that users can easily edit

Description of the Feature:
Currently, if you want to edit RPG Maker MV's default UI, you have to go through huge lines of scripts and edit them there. Potentially forgetting where they are as well. This could've easily been solved if there's a master script where all the UI x/y/width/height can be easily edited via the plugin manager.

So for example, the script will be displayed like this:

# Window Gold
X: #Number
Y: #Number
W: #Number
H: #Number

#Window Equip - Actor Stats Display
X: #Number
Y: #Number
W: #Number
H: #Number

Code Implementation // Mockups:
The idea is the same as this except we can see it in plugin manager instead.



Why is this feature good?
This feature is great because of the following:
  • People can easily edit their UIs without relying too much on 3rd party scripts.
  • It enforces people to work more modular.
  • Games would stop looking like clones of each other.
  • Public Scripters will have an easier time (at least I would). Because now, when you do scripts, you can just append to the master script file with your own windows and freely change them there.
  • RMMV uses JSON format, why isn't this even an option?

Possible issues with this feature?
Issues that might arise from this feature:
  • Might require some scripters to modify their scripts, but testing Luna Engine out, they shouldn't at least for general windows.
Yes please! I would love to no longer have to worry about adding in parameters for all my windows. As a plugin dev, I would much rather spend time on getting the plugin complete, rather than create a massive amount of params and variables just so a user can edit my windows. Not to mention it would make things much simpler and organized for the user.
I like this idea; makes my life a lot easier and can actually make new Window Class in RPGMakerMV.
I've been wanting something like this for a while now. Having to edit core scripts to adjust windows and looking through the rather large amount of lines of code just to find a few snippets to edit? This would ease work off the plugin devs and game devs. Voted yes all the way!
Yes, this would be so useful in my current project. 🙂
I'd like it to make it easy to generalize all the windows and get things working quicker.
I think this is a great suggestion. Make it happen!
This gave me an awesome idea for a plugin which allows players to drag windows around!! 😀
In fact I just wrote the code for testing it in the title screen super fun. So if this comes out I should be able to easily save the new coordinates from dragging.
I'm actually gonna look at a logical design for this.
I'm gonna be the odd one out.
There should be 1 window script RPG_WIndow(x,y,width,height) and call it when needed.
Having so many scripts doing..the exact same thing is bad design imho.

In my own RPG Kit I have 1 object and call it like so.
Code:
instance_create_layer(x,y,"Instances",o_rpgWindow);
var wini;
for (wini = 0; wini < instance_number(o_rpgWindow); wini += 1) {
   rpg_window[wini] = instance_find(o_rpgWindow,wini);
}

window = rpg_window[0];
window.x_pos = camera_get_view_width(view_camera[0])/2-158;
window.y_pos = camera_get_view_height(view_camera[0])-62;
window.width = 315;
window.height = 60;
I basically call the object as an array and then use it's store values and manipulate them on a per instance basis, javascript allows this so why not use it?

There's so much repetitiveness in MVs core scripts that I literally want to face palm.
Unless I am misunderstanding you @Rukiri all the core window objects inherit from Window_Base which in turn inherits from Window. This object is where the x, y, width and height get set in the move function. Currently in order to change the location of each window you would have to change for example:
Code:
//in Scene_Menu to change where the gold window is located we would have to change the following
//function
Scene_Menu.prototype.createGoldWindow = function() {
    // and change 0, 0 to whatever we want it set too.
    this._goldWindow = new Window_Gold(0, 0);
    // if we want to change the y coordinate then we also have to either remove this line or change it
    this._goldWindow.y = Graphics.boxHeight - this._goldWindow.height;
    this.addWindow(this._goldWindow);
};
From what I understand of @Archeia's suggestion it would put all of these coordinates and size variables for each window in a single object for easy editing. So instead of having to go through a bunch of code to change window coordinates/size you could change them using the plugin manager.
I'm gonna be the odd one out.
There should be 1 window script RPG_WIndow(x,y,width,height) and call it when needed.
Having so many scripts doing..the exact same thing is bad design imho.

II basically call the object as an array and then use it's store values and manipulate them on a per instance basis, javascript allows this so why not use it?

There's so much repetitiveness in MVs core scripts that I literally want to face palm.
You completely misunderstood what I said yeah. Also with each menu potentially having different design, you cannot put the same x/y/w/h on each window. Are you saying that Window Equip should be the same size and coordinates as Window Status? Because I can guarantee you it's not.

And the repetitive nature of RMMV could've been avoided if it was again, designed, as modular which is btw good design in many development aspects.
@SumRndmDde has already created a plugin that, among other functions, makes editing windows easy. You can edit width, height, rows and cols, and they are draggable. It even overrides any settings you make yourself. So I'm voting Yes, but not important.
@SumRndmDde has already created a plugin that, among other functions, makes editing windows easy. You can edit width, height, rows and cols, and they are draggable. It even overrides any settings you make yourself. So I'm voting Yes, but not important.
I'm pretty sure SumRndmDde only did HUD? but that doesn't matter, because we're not talking about 3rd party plugins, we're talking about making it the main so every plugin creator can just have an easier time.
I'm pretty sure SumRndmDde only did HUD? but that doesn't matter, because we're not talking about 3rd party plugins, we're talking about making it the main so every plugin creator can just have an easier time.
No. Not only. True, HUD maker is a HUD maker and doesn't do anything else, but I'm talking about Super Tools engine.
Spoiler: here's the video
No. Not only. True, HUD maker is a HUD maker and doesn't do anything else, but I'm talking about Super Tools engine.
Spoiler: here's the video
It's still a 3rd party tool that is not part of the default. It doesn't fix the inherent problem where people won't make stuff for his super tools and instead for people who wants to make their own plugins.

The idea is to lessen the amount of work for users and/or plugin developers when wanting to create their own custom UIs and Windows without fear that any future update might destroy their plugins. (e.g. RPG Maker 1.5.0 changing all image loading function names and now you have to redo all of them. I could've saved so much work if I didn't have to alias things or copy paste code and just the value of a constant/parameter)
Sure, I'm not fighting you, I'm just clarifying 🙂
Sure, I'm not fighting you, I'm just clarifying 🙂
The thing is, it's missing the entire point of the suggestion. And I'm not fighting you either, because the fact it was suggested means the problem this is meaning to solve is missed.
I thought about this a bit.

The MV code base is huge and mapping the x,y,width, height would be a pain and lead to a lot of edits as a community script.

So, instead from a programming perspective I have a solution.

Every Scene and Window has a name in MV.

We can give users a list of Windows & Scene Names. Then place a single function in Window_Base that will overwrite the Window properties on initialization and refresh the contents based on what names are in the list.

If a Scene name is provided only the scene is effected with the window changes.

If a Window name is provided, the changes are global.

This makes changing the properties optional using the struct type now available in the PluginManager list. Devs just have to make sure their new Window class is available in the global context.

Meaning as a dev and as a creator life is a lot easier; add changes you want, leave the ones you don't want to edit off the list.
I agree that there should be a way for users to modify windows through a simple UI. And, as you said, having it built in would allow plugin writers to build off the basics and keep things more uniform.

Echoing what Poryg was saying, I know that SRD's plugin is fairly intuitive as a hold-over for people looking for this feature now. Kind of like how Yanfly's plugins get brought up with other gameplay mechanics suggested in this subforum.

Original thread: https://forums.rpgmakerweb.com/threads/bind-all-windows-x-y-width-and-height-to-variables-that-users-can-easily-edit.80757/