RMMV How to increase size Skill List in battle ?

Hunters12

Villager
Member
Joined
Jun 30, 2014
Messages
18
Reaction score
6
First Language
English
Primarily Uses
From this
Screenshot_9.png
to like this
Screenshot_10.png
I tried change Line Height on YEP_CoreEngine 36 to 50 but it affect to all windows
 

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
34,763
Reaction score
8,970
First Language
German
Primarily Uses
RMMV
that is because all windows use the same framework of functions.

if you want two windows to behave differently then you basically have to reprogram one to behave differently using different values, and that requires full functions instead of just changing a constant value.


I suggest you place a plugin request or report this to a mod to move it to plugin requests.
make sure to include links to the plugins that create the rest of your battlescreen so that any programmer knows where to check for compatibility.
 

caethyril

^_^
Global Mod
Joined
Feb 21, 2018
Messages
3,046
Reaction score
2,358
First Language
EN
Primarily Uses
RMMZ

I've moved this thread to JS Plugin Requests. Thank you.

The attached plugin works for me with no other plugins active.
JavaScript:
(function(alias) {
    Window_BattleSkill.prototype.itemHeight = function() {
        return alias.apply(this, arguments) * 2;
    };
})(Window_BattleSkill.prototype.itemHeight);

(function(alias) {
    Window_BattleSkill.prototype.drawItemName = function(item, x, y, width) {
        return alias.call(this, item, x, y + this.lineHeight() / 2, width);
    };
})(Window_BattleSkill.prototype.drawItemName);

(function(alias) {
    Window_BattleSkill.prototype.drawSkillCost = function(item, x, y, width) {
        return alias.call(this, item, x, y + this.lineHeight() / 2, width);
    };
})(Window_BattleSkill.prototype.drawSkillCost);
If you want something different, or it doesn't work for you, then give more details and, like Andar says, list the plugins that you are using. :kaohi:
 

Attachments

  • bigBattleSkillDisplay.js
    652 bytes · Views: 4

Hunters12

Villager
Member
Joined
Jun 30, 2014
Messages
18
Reaction score
6
First Language
English
Primarily Uses
[move]JS Plugin Requests[/move]The attached plugin works for me with no other plugins active.
JavaScript:
(function(alias) {
    Window_BattleSkill.prototype.itemHeight = function() {
        return alias.apply(this, arguments) * 2;
    };
})(Window_BattleSkill.prototype.itemHeight);

(function(alias) {
    Window_BattleSkill.prototype.drawItemName = function(item, x, y, width) {
        return alias.call(this, item, x, y + this.lineHeight() / 2, width);
    };
})(Window_BattleSkill.prototype.drawItemName);

(function(alias) {
    Window_BattleSkill.prototype.drawSkillCost = function(item, x, y, width) {
        return alias.call(this, item, x, y + this.lineHeight() / 2, width);
    };
})(Window_BattleSkill.prototype.drawSkillCost);
If you want something different, or it doesn't work for you, then give more details and, like Andar says, list the plugins that you are using. :kaohi:

Thank you!! it actually working, but there is a huge space / gape between skill.
I am using YEP_BattleEngine and YEP_SkillCore
Screenshot_9.png Screenshot_10.png
Is there anyway to reduce space between skill ? and which var to put custom lineHeight ?
 

caethyril

^_^
Global Mod
Joined
Feb 21, 2018
Messages
3,046
Reaction score
2,358
First Language
EN
Primarily Uses
RMMZ
Thank you!! it actually working, but there is a huge space / gape between skill.
I am using YEP_BattleEngine and YEP_SkillCore
The horizontal space, between columns? Try adding this to the end of the plugin:

Window_BattleSkill.prototype.spacing = function() { return 24; // originally 48 };
Change the 24 if you like~

Also, I do not believe those are the only plugins you are using. E.g. that turn order indicator looks like the one from Olivia's Order Turn Battle plugin. In this kind of situation it is more helpful to post screenshot(s) of your Plugin Manager showing all the plugins active in your project. (No need to do that now unless you want more help, though.)
 

Latest Threads

Latest Profile Posts

So technically I just ate sausages that were a year old. Use by date was 12/27/2021. But since those dates are just guesses with no scientific reasoning behind them I'll prolly be fine. Guess I know soon if I'm praying to the Porcelain God.
People laughed at me when I said that Activision Blizzard would get bought up by another company if they didn't fire their execs. Now their value has dipped so much Microsoft is willing to buy the company, likely followed by some heavy terminations if they want to purify the current toxic image of Activision Blizzard.
Pro tip: don't be this person.1642536788532.png

Forum statistics

Threads
118,495
Messages
1,116,364
Members
155,480
Latest member
aSasSSasdadw
Top