First of, I have no idea if this is the right section to post this but...
I'm trying to get the map name display location to the middle, I have a HUD that is being obstructed by the default left align of the map display name popup. There is no option for it's location in the editor, how can I do that?
[SOLVED]Map name display relocate.
● ARCHIVED · READ-ONLY
-
-
I aligned this with my plugin:
SpoilerCode:(function(){ Window_MapName.prototype.initialize = function() { var wight = this.windowWidth(); var height = this.windowHeight(); /* Edit X variable to position Map name display */ var x = (Graphics.boxWidth - wight) / 2 - 256 - 48; /* -------------------------------------------- */ Window_Base.prototype.initialize.call(this, x, 0, wight, height); this.opacity = 0; this.contentsOpacity = 0; this._showCount = 0; this.refresh(); }; })(); -
Thanks, I also somehow managed to do a workaround by modifying rpg_windows.jsI aligned this with my plugin:
SpoilerCode:(function(){ Window_MapName.prototype.initialize = function() { var wight = this.windowWidth(); var height = this.windowHeight(); /* Edit X variable to position Map name display */ var x = (Graphics.boxWidth - wight) / 2 - 256 - 48; /* -------------------------------------------- */ Window_Base.prototype.initialize.call(this, x, 0, wight, height); this.opacity = 0; this.contentsOpacity = 0; this._showCount = 0; this.refresh(); }; })();
On line 4667:
Window_Base.prototype.initialize.call(this, 450, 0, wight, height);
changing it to 450 made it aligned to the center of my screen. -
Glad to hear (read) it, but my advice is NOT to modify rpg_*.js files directly, but overriding some of their functions via plugins with simple reason. Modyfing original files may cause some major problems with your project and it will be hard to find where you messed up things. With plugin method you simply turn it off and games should work again :)
-
I understand, and yes I used your plugin instead and got it to work, thanks!Glad to hear (read) it, but my advice is NOT to modify rpg_*.js files directly, but overriding some of their functions via plugins with simple reason. Modyfing original files may cause some major problems with your project and it will be hard to find where you messed up things. With plugin method you simply turn it off and games should work again :)
-
I aligned this with my plugin:
SpoilerCode:(function(){ Window_MapName.prototype.initialize = function() { var wight = this.windowWidth(); var height = this.windowHeight(); /* Edit X variable to position Map name display */ var x = (Graphics.boxWidth - wight) / 2 - 256 - 48; /* -------------------------------------------- */ Window_Base.prototype.initialize.call(this, x, 0, wight, height); this.opacity = 0; this.contentsOpacity = 0; this._showCount = 0; this.refresh(); }; })();
Hi there, I'm totally new to these coding / plugin stuff, do I create a new js file and just paste the code there?
I wanted to relocate the map's display name too.
Cheers! -
Save this code as .js File, place it in plugins folder of your game, better see tutorial how it's done
-
I f
Save this code as .js File, place it in plugins folder of your game, better see tutorial how it's done
I figured it out, thanks a lot!