- Joined
- Dec 16, 2015
- Messages
- 3
- Reaction score
- 1
- First Language
- English (US)
Hey fellow developers,
I've been pooring over forums and Rpg Maker MV Javascript Code for hours trying to figure out how to simply tweak the pre-existing in-game menus.
For instance, I am attempting to remove the HP/MP bars that show up next to my actor's when I open the main menu (I've turned off the Status Menu Item button through the Database, so that's not a problem). I thought I found out where this code was in the core files, and I commented it out to see if it would have any effect on the game. It had none. So, I tried, a bit blindly, to create a plugin that overwrote the section of the code that I thought dealt with drawing the extra information, besides class and name. This also failed.
I was under the impression that the following code is what I would want to tweak to achieve my goal:
Window_Status.prototype.refresh = function() { this.contents.clear(); if (this._actor) { var lineHeight = this.lineHeight(); this.drawBlock1(lineHeight * 0); this.drawHorzLine(lineHeight * 1); this.drawBlock2(lineHeight * 2); this.drawHorzLine(lineHeight * 6); this.drawBlock3(lineHeight * 7); this.drawHorzLine(lineHeight * 13); this.drawBlock4(lineHeight * 14); }};Window_Status.prototype.drawBlock1 = function(y) { this.drawActorName(this._actor, 6, y); this.drawActorClass(this._actor, 192, y); this.drawActorNickname(this._actor, 432, y);};Window_Status.prototype.drawBlock2 = function(y) { this.drawActorFace(this._actor, 12, y); this.drawBasicInfo(204, y); this.drawExpInfo(456, y);};Window_Status.prototype.drawBlock3 = function(y) { this.drawParameters(48, y); this.drawEquipments(432, y);};Window_Status.prototype.drawBlock4 = function(y) { this.drawProfile(6, y);};Window_Status.prototype.drawHorzLine = function(y) { var lineY = y + this.lineHeight() / 2 - 1; this.contents.paintOpacity = 48; this.contents.fillRect(0, lineY, this.contentsWidth(), 2, this.lineColor()); this.contents.paintOpacity = 255;};I felt that commenting out:
this.drawBlock2(lineHeight * 2);this.drawHorzLine(lineHeight * 6);this.drawBlock3(lineHeight * 7);this.drawHorzLine(lineHeight * 13);this.drawBlock4(lineHeight * 14);would at least get me somewhere, but it didn't seem to do anything at all. And I have only been working on one project, so I haven't mixed up the file for one in another project.
I really want to become well aquanted with modifying windows and menus in the new system, given how important it is for game design, but thus far it has been like pulling teeth. I would appreciate any helpful feedback on my issue.
Thanks!
I've been pooring over forums and Rpg Maker MV Javascript Code for hours trying to figure out how to simply tweak the pre-existing in-game menus.
For instance, I am attempting to remove the HP/MP bars that show up next to my actor's when I open the main menu (I've turned off the Status Menu Item button through the Database, so that's not a problem). I thought I found out where this code was in the core files, and I commented it out to see if it would have any effect on the game. It had none. So, I tried, a bit blindly, to create a plugin that overwrote the section of the code that I thought dealt with drawing the extra information, besides class and name. This also failed.
I was under the impression that the following code is what I would want to tweak to achieve my goal:
Window_Status.prototype.refresh = function() { this.contents.clear(); if (this._actor) { var lineHeight = this.lineHeight(); this.drawBlock1(lineHeight * 0); this.drawHorzLine(lineHeight * 1); this.drawBlock2(lineHeight * 2); this.drawHorzLine(lineHeight * 6); this.drawBlock3(lineHeight * 7); this.drawHorzLine(lineHeight * 13); this.drawBlock4(lineHeight * 14); }};Window_Status.prototype.drawBlock1 = function(y) { this.drawActorName(this._actor, 6, y); this.drawActorClass(this._actor, 192, y); this.drawActorNickname(this._actor, 432, y);};Window_Status.prototype.drawBlock2 = function(y) { this.drawActorFace(this._actor, 12, y); this.drawBasicInfo(204, y); this.drawExpInfo(456, y);};Window_Status.prototype.drawBlock3 = function(y) { this.drawParameters(48, y); this.drawEquipments(432, y);};Window_Status.prototype.drawBlock4 = function(y) { this.drawProfile(6, y);};Window_Status.prototype.drawHorzLine = function(y) { var lineY = y + this.lineHeight() / 2 - 1; this.contents.paintOpacity = 48; this.contents.fillRect(0, lineY, this.contentsWidth(), 2, this.lineColor()); this.contents.paintOpacity = 255;};I felt that commenting out:
this.drawBlock2(lineHeight * 2);this.drawHorzLine(lineHeight * 6);this.drawBlock3(lineHeight * 7);this.drawHorzLine(lineHeight * 13);this.drawBlock4(lineHeight * 14);would at least get me somewhere, but it didn't seem to do anything at all. And I have only been working on one project, so I haven't mixed up the file for one in another project.
I really want to become well aquanted with modifying windows and menus in the new system, given how important it is for game design, but thus far it has been like pulling teeth. I would appreciate any helpful feedback on my issue.
Thanks!
Last edited by a moderator:

