MZ "Skill:" Text removal help

Greetings, I know I've been bothering a lot lately, I usually try to figure things out by myself, but I do admit I get very lost when it comes to this stuff, and can't find much topics around either... But, as I was trying to polish the "Customized Fighting Style" system (Using the Vizustella's Class Change System), I wanted to get rid of the "Skill:" line of text in all three multiclasses, since only the first class decides the type of skill and connected SV Battler, while the "Role" decides the type of skills available (And Race only the bonus stats and passive states), so, it would be a bit of an Eyesore seeing an empy "Skill: " line there, while I could have the name bigger and centered along the icon.

1761752184752.png


But I can't seem to figure out the right line of code in the console, neither the options in the Plugin parameters! Is there someone familiar with the plugin that could help me out? Even just simply know where to exactly looking at.
Thanks in advance for the time.
const params = PluginManager.parameters("YourPluginName");
const mappings = JSON.parse(params.EventVariableMappings || "[]").map(m => JSON.parse(m));

// Assign values on game start
const _Scene_Map_start = Scene_Map.prototype.start;
Scene_Map.prototype.start = function() {
_Scene_Map_start.call(this);
mappings.forEach(m => {
const varId = Number(m.VariableId);
const val = Number(m.Value);
if (varId > 0) $gameVariables.setValue(varId, val);
/*:
* @target MZ
* @plugindesc [Extension] Hide "Skill:" line in multiclass display (VisuStella Class Change System).
* @Author You
*
* @Help
* This hides the "Skill:" label for secondary/tertiary classes,
* leaving only the class name + icon. Primary class still shows normally.
*/

(() => {
// Alias the drawClassData (or equivalent) method
const _Window_ClassList_drawClassData = Window_ClassList.prototype.drawClassData;
Window_ClassList.prototype.drawClassData = function(rect, data) {
// Call original
_Window_ClassList_drawClassData.call(this, rect, data);

// Now scrub the "Skill:" line if this is not the main class
if (data && data._slotId > 0) { // slotId 0 = main class
const lineHeight = this.lineHeight();
const y = rect.y + lineHeight * 2; // usually where "Skill:" is drawn
this.contents.clearRect(rect.x, y, rect.width, lineHeight);
}
};

// Optional: Center class name + icon
const _Window_ClassList_drawItem = Window_ClassList.prototype.drawItem;
Window_ClassList.prototype.drawItem = function(index) {
const rect = this.itemRect(index);
const data = this.itemAt(index);
if (data) {
// Draw icon + name centered
const iconIndex = data.iconIndex || 0;
const name = data.name;
const textWidth = this.textWidth(name) + (iconIndex > 0 ? ImageManager.iconWidth + 4 : 0);
const x = rect.x + (rect.width - textWidth) / 2;
const y = rect.y;
if (iconIndex > 0) {
this.drawIcon(iconIndex, x, y + 2);
this.drawText(name, x + ImageManager.iconWidth + 4, y, rect.width, 'left');
} else {
this.drawText(name, x, y, rect.width, 'left');
}
}
};
})();

Add that extension to bottom of the plugin. should remove it..NOTE it removes it entirely so it wont populate at all. I DO not use Visustella so no idea if that will work since their ghostcode A$$es 😛 (j/k sorta)
1761755495404.png

Got this error when checking out! Also "Ghostcode"?
I was so bored I temporarily came out of retirement.

It seems like that dude just gave you something that AI spat out.

But if you look at the plugin settings, you'll see that you can affect the extra data it draws in the Window Settings -> Window_ClassTier JS:Extra Data. There's the SKILL TYPE ACCESS, where you can comment out the line that says drawText, or if you only want it to draw it for the first tier, they declare a 'tier' const above, which you can reference in a conditional, like if (tier === 1) -> drawText

There doesn't seem to be a setting/JS to change the class name position, but you can go to the console and get their obfuscated method with SceneManager._scene._classTierWindow.drawItem (EDIT: If you're in the scene, you can just get it straight from the window prototype) In that method you can see spots where it draws text. Like I could spot places with ['y'] which you know is the draw function. The first of them drew the tier and the second one drew the class name. So you can just add to the x/y-argument there to move it. The second draw line didn't show that 'x'/'y' for me, but since the other one did, I could see the scrambled method name. Also, you can guess the spot as the draw function is one which takes lots of arguments.

You can try to do similar stuff to move the icon-picture. I managed to get rid of it by commenting out a line (method with 3 arguments), but it didn't seem to take normal x, y arguments like drawIcon (?) Don't have the motivation to play around it more. You can try to check if you can move it yourself, or try asking AI LOL. Or maybe just comment out the line, and add your own line to draw something there in a position you specify.

Anyway, I go back to my break.
I was so bored I temporarily came out of retirement.

It seems like that dude just gave you something that AI spat out.

But if you look at the plugin settings, you'll see that you can affect the extra data it draws in the Window Settings -> Window_ClassTier JS:Extra Data. There's the SKILL TYPE ACCESS, where you can comment out the line that says drawText, or if you only want it to draw it for the first tier, they declare a 'tier' const above, which you can reference in a conditional, like if (tier === 1) -> drawText

There doesn't seem to be a setting/JS to change the class name position, but you can go to the console and get their obfuscated method with SceneManager._scene._classTierWindow.drawItem (EDIT: If you're in the scene, you can just get it straight from the window prototype) In that method you can see spots where it draws text. Like I could spot places with ['y'] which you know is the draw function. The first of them drew the tier and the second one drew the class name. So you can just add to the x/y-argument there to move it. The second draw line didn't show that 'x'/'y' for me, but since the other one did, I could see the scrambled method name. Also, you can guess the spot as the draw function is one which takes lots of arguments.

You can try to do similar stuff to move the icon-picture. I managed to get rid of it by commenting out a line (method with 3 arguments), but it didn't seem to take normal x, y arguments like drawIcon (?) Don't have the motivation to play around it more. You can try to check if you can move it yourself, or try asking AI LOL. Or maybe just comment out the line, and add your own line to draw something there in a position you specify.

Anyway, I go back to my break.
I kinda presumed something was a bit "Odd" by how it was also formated, but still, nice to see you again and as always you were more than helpful, thank you so much!
I was so bored I temporarily came out of retirement.

It seems like that dude just gave you something that AI spat out.

But if you look at the plugin settings, you'll see that you can affect the extra data it draws in the Window Settings -> Window_ClassTier JS:Extra Data. There's the SKILL TYPE ACCESS, where you can comment out the line that says drawText, or if you only want it to draw it for the first tier, they declare a 'tier' const above, which you can reference in a conditional, like if (tier === 1) -> drawText

There doesn't seem to be a setting/JS to change the class name position, but you can go to the console and get their obfuscated method with SceneManager._scene._classTierWindow.drawItem (EDIT: If you're in the scene, you can just get it straight from the window prototype) In that method you can see spots where it draws text. Like I could spot places with ['y'] which you know is the draw function. The first of them drew the tier and the second one drew the class name. So you can just add to the x/y-argument there to move it. The second draw line didn't show that 'x'/'y' for me, but since the other one did, I could see the scrambled method name. Also, you can guess the spot as the draw function is one which takes lots of arguments.

You can try to do similar stuff to move the icon-picture. I managed to get rid of it by commenting out a line (method with 3 arguments), but it didn't seem to take normal x, y arguments like drawIcon (?) Don't have the motivation to play around it more. You can try to check if you can move it yourself, or try asking AI LOL. Or maybe just comment out the line, and add your own line to draw something there in a position you specify.

Anyway, I go back to my break.
I take it as a complement you think A.I wrote that lol. I wrote in a quick succession of also writing my own code. I don't know the variables of his game so i gave him an open ended scaffolding to play with not a bulletproof fix.
Sure buddy 😀

EDIT: They edited the code in their reply.
I kinda presumed something was a bit "Odd" by how it was also formated, but still, nice to see you again and as always you were more than helpful, thank you so much!
I write all code syntax correct. Sorry it not what you needed. Hope others help you better. You said you have little to no JS knowledge so why would i shorthand it when it will just come back with syntax errors?
I may have confused two different people. Sorry fi you not the person who said that.

For the ghost-code, i mean minified code, it effectively none existent "ghost" like. IF you don't like what they do touch mentality..in a Community base building games it a "anti-community" structure which is fine for some.
For the ghost-code, i mean minified code, it effectively none existent "ghost" like. IF you don't like what they do touch mentality..in a Community base building games it a "anti-community" structure which is fine for some.

minified code isnt bad normally. devtools itself has a "pretty print" feature you can use to format minified plugins properly. the major thing with those are that the plugins are obfuscated, so its difficult to poke around to see what it does or make safe changes.

@Fedriz_Marini
did you manage to sort out the issue? or should this remain open?

Original thread: https://forums.rpgmakerweb.com/threads/skill-text-removal-help.180768/