Removing the Window Border rpg maker mv [solved]

Hello folks,
i need some little help. how do i remove the white border and the grey background from the clock?
thak u very much



M9X8y8m.png
I think you can only change that by Javascript, by inserting a line which changes the window opacity to zero. If you provide me the code, I can try to do that for you... unless there is an easier way? :v
thanks alot.
yes its the only way i am think this is gonna be work. i had tried a few things and its working but on the wrong windows haha.
i think we must change that in the rpg_windows.js or in the lighting script. the clock is from the script i will link you.

here ->https://forums.rpgmakerweb.com/index.php?threads/lighting-and-time-editor-continued.86409/

if you can this done for me it would be amazing and your a real lifesaver.
See if this works please (I'm at work so I don't have MV here to test it myself).
You must find the code for that particular window. It looks like it came from one of your plugin. Try searching for something "Window_Time" or "Window_MapTime" or anything like that (we coders like to put names that describe objects accurately lol). I would advise against modifying anything in the rpg_windows.js since your window's most likely isn't in there (1), and because it is considered bad practice to modify the default plugins (2). People usually overwrite the default plugins by adding a new plugin and redefining stuff.

Anyways, find your window and just set the opacity to zero. You should see something like this, assuming it's called something like Window_MapTime:

Code:
Window_MapTime.prototype.initialize = function(x, y, width, height) {
    // Blabla all the other code here
    // Insert the next line
    this.opacity = 0;
}
@TheNewSon
thanks but it giving me the error this window width is not a function.

@MushroomCake28
thanks for your advice but i had tried this already and also received mostly a error because there are many "windows_time" words in there and i dont know which is the right one.
Okay i will never edit default plugins, good to know.
Once more! If this doesn't work either, then I'll wait until I'm home, but I think it'll work this time...
Ive tested it again but another error 🙁

typeerror
cannot set property alpha of undefinded
Does this work? (Import as a plugin, after the Lighting & Time one.)
Code:
(function(alias) {
	Window_Time.prototype.initialize = function() {
		alias.call(this);
		this.setBackgroundType(2);
	};
})(Window_Time.prototype.initialize);
I think this should tell it to initialize the window as usual, then set the window background type to Transparent (0 = Normal, 1 = Dim). 🙂
Yeaaaaah
you did it! Thank u very much!!!
This is alot better 🙂

This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/removing-the-window-border-rpg-maker-mv-solved.112962/