RMMV How to increase size Skill List in battle ?

Status
Not open for further replies.

SifDoge

Veteran
Veteran
Joined
Jun 30, 2014
Messages
40
Reaction score
16
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
37,918
Reaction score
10,508
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
4,484
Reaction score
3,510
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: 8

SifDoge

Veteran
Veteran
Joined
Jun 30, 2014
Messages
40
Reaction score
16
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
4,484
Reaction score
3,510
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.)
 

aliensanfo

Villager
Member
Joined
Jul 14, 2021
Messages
5
Reaction score
0
First Language
italian
Primarily Uses
RMMV
Thank you, it works!
Is it possible to do this even on the ITEM LIST on battle?
Thanks!! :D
 

caethyril

^_^
Global Mod
Joined
Feb 21, 2018
Messages
4,484
Reaction score
3,510
First Language
EN
Primarily Uses
RMMZ
Is it possible to do this even on the ITEM LIST on battle?
Maybe this (untested):
JavaScript:
(function(alias) {
    Window_BattleItem.prototype.itemHeight = function() {
        return alias.apply(this, arguments) * 2;
    };
})(Window_BattleItem.prototype.itemHeight);

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

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

Window_BattleItem.prototype.spacing = function() {
    return 24;  // originally 48
};
Since this thread was solved months ago:

This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

 
Status
Not open for further replies.

Latest Threads

Latest Posts

Latest Profile Posts

I am supposed to be preparing to teach my students this afternoon and tomorrow morning about Refugees, Asylees, and Fraud/Misrepresentation and all I can think about is how to improve my Turn Order display. :stickytongue:
Try changing POV battle, near and far away like suikoden...
watercave2.jpg

diablofar.jpg

In the end I choose near over shoulder resembles RE4. Tight close window better. The correlation between battleback, monster style and battler should also be observed and merged.
Upgraded my avatar to be cuter.
When you look for several things for ages and then suddenly find it all at once.

Status.png
Status2.png
equip.png
I'm going to see if I can set up a triple booting setup. Windows for standard use & gaming, debian for linux development and manjaro for linux gaming, wine & proton use.

Forum statistics

Threads
129,703
Messages
1,204,422
Members
170,769
Latest member
ghostyen
Top