RMMV How to increase size Skill List in battle ?

SifDoge

Villager
Member
Joined
Jun 30, 2014
Messages
25
Reaction score
9
First Language
English
Primarily Uses
RMMV
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
35,794
Reaction score
9,462
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,484
Reaction score
2,630
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: 6

SifDoge

Villager
Member
Joined
Jun 30, 2014
Messages
25
Reaction score
9
First Language
English
Primarily Uses
RMMV
[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,484
Reaction score
2,630
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 Posts

Latest Profile Posts

This is Ralph from VX!
index.php

Always be consistent with your project.
Making backups regularly is good for the soul.
The worst text you can get from a friend "You left your webcam on!!!

Forum statistics

Threads
121,851
Messages
1,144,665
Members
160,104
Latest member
mastersora132
Top