No. I was just assuming it wouldn't wouldn't disappear when close because I can change the opacity of the window and that did'nt effect the sprites. I said I had a feeling that it wouldn't but I never got it to works so IDK. I would prefer opening and closing it to entirely disappearing.
open() and close() are similar to show() and hide() - they manipulate the opacity of the window, causing it - and everything assigned to it, to become utterly invisible and thus transparent. Open & close do it gradually, show & hide do it instantly.
I was following a tutorial so I don't know what the "prototype" this even is. I understand Scene Map and start and what functions are generally.
That's unfortunate. I'd recommend checking JS tutorials on prototypes and classes. Understanding how they work is essential.
I thought I only needed the open and close part of that update function so I left the other ones out. Like what is updateTone or BackgroundDimmer? What came to mind was transitioning which I don't want. I want to reinterate that I do not want the screen to dim open a new scene menu this is just a pop up window. How I explain that clearly.
Those are update functions that only do something when the window has been told to use them. They're inert, they only do something when you need them to. Stripping them out of an update function is a really bad idea. What you've done is even worse - you've stripped them out of the prototype of
all windows. Which means you've prevented all windows in existence from being able to change the tone color, or to dim a background.
And since you didn't change your window, but the prototype of all windows, you've basically destroyed important functionality in all your windows. Some plugins or windows are probably going to crash or malfunction as a result.
Furthermore, you haven't actually added the necessary update functionality to your own window, because you're still overriding the update function that you've just redefined, meaning the change you did in that update function of the Window_Base affects
all windows but yours.
Nope I have it in three locations to show where I've tried it in my code and didn't work.
As outlined above, what you did 3 times was change the way all default windows work, essentially destroying part of their functionality, while leaving only your window unaffected.
No I understand how I wrote the code and where everything is so I'm not confused on that part. What confuses me is calling other functions and how this:
Code:
changeCharacterGraphics() {
if (newCharacterGraphic != $gameParty.leader()._name) {
newCharacterGraphic = $gameParty.leader()._name;
this.removeChild(this.characterGraphic);
this.characterGraphic = new Sprite(ImageManager.loadPicture(newCharacterGraphic));
this.characterGraphic.anchor.set(0.5);
this.characterGraphic.x = eval(LadyLegend.PlayerHud._HUDx) == 0 ? hudWidth/4.2 : eval(LadyLegend.PlayerHud._HUDx) == Graphics.width ? hudWidth-hudWidth/4.2 : hudWidth/2;
this.characterGraphic.y = eval(LadyLegend.PlayerHud._HUDy) == 0 ? hudHeight : 0;
if(eval(LadyLegend.PlayerHud._HUDx) < hudWidth) this.characterGraphic.scale.x *= -1;
}
}
would work without any update indicators that checks if it true or not constantly. I need it to be checked constantly to update the image when the party leader changes.
They would change because the update function, once the Window is the child of a scene (via addWindow or addChild when adding it to a Window that's a child of the scene) is invoked 60 times a second. The main JS file loops a section of itself, that section calls all main game objects, among them the Scene Manager, the SceneManager updates the scene, and the scene updates all of its children and all of their childrens children update their children - so long as you leave the original update function in existence - as I showed you in my earlier example - instead of overwriting it or overwriting the Window_Base functionality.
I did remapped the spacebar key in the core js. I eventually will add my own key for my personal project but as a plugin others can use it'll be the default buttons they will choose from.
Those are not good ideas. Playing around with the keyMapper with new buttons will conflict with every other plugin that tries the same, potentially causing massive incompatibility or other problems.
If you want custom buttons to work, you're going to have to either layer a new Input Manager on top of the old one - or use the one I provide in my Plugin for Plugin Developers, which allows all developers, across all plugins, to simply write one line to make a key work.
Since your modifications of the core file are not part of the code above, I cannot tell you whether you correctly changed anything or not.
I'm still learning and I know there's a million ways to do one thing and my way or at least the way the tutorial went I understand how to display a permanent window that displays information. I am trying to work off that and make that window toggle on and off the screen NOT open a menu scene and close it. That I know how to do that. I don't want that. Sort of how the choice window opens and closes but I don't want a command menu. I do but one thing at a time.
I did this very exact thing. At first all I had was a window and the animated sprite and couldn't figure out how to close the window. I moved on because I tend to spend an entire day trying to find a solution. So instead of getting little work done and holding the project up to solve a problem I save the problem for later.
Windows can be toggled either via show&hide or open&close very easily. If the sprite is a child of that window, the sprite will adopt the opacity of its parent (the window) and become invisible as well.
1. Start RPG Maker in playtesting.
2. Open the console. (F12 or F8 for RPGMV)
3. On the Title Screen, write this into the console:
SceneManager._scene._commandMenu.hide()
This will make the window with the commands disappear. use show() to make it reappear.
This is a very basic way to manipulate a window.
This can be done, with those commands, for every window. Close and open do the same, but they're gradual. In the case of this command Window, close() will not work quite right, because the window checks to see if it is closed and opens if so automatically. But you can do the same for every other window in the game, including message windows, menu windows, etc.
And if they open or close, they'll gradually disappear or appear rather than instantaneously.