remove padding from choices?

1709565448147.png

any way to remove these?
note: I can't use this and this.
is it possible by editing the rpg_windows.js? or do I have to use a plugin?
is it possible by editing the rpg_windows.js? or do I have to use a plugin?
There's no difference between editing the core script file and using a plugin, except one of them is correct and cleaner coding practice (and ensures compatibility with any other plugins you're using).

Why can't you use the second plugin you linked to, if it has parameters to do what you want?

Are you already using a plugin that alters the choice window, or is it just a different windowskin?

Without anything else, this should probably do what you're asking, but the other questions are worth considering.

Code:
Window_ChoiceList.prototype.itemRectForText = function(index) {
    var rect = this.itemRect(index);
//    rect.x += this.textPadding();
    rect.width -= this.textPadding() * 2;
    return rect;
};
There's no difference between editing the core script file and using a plugin, except one of them is correct and cleaner coding practice (and ensures compatibility with any other plugins you're using).

Why can't you use the second plugin you linked to, if it has parameters to do what you want?

Are you already using a plugin that alters the choice window, or is it just a different windowskin?

Without anything else, this should probably do what you're asking, but the other questions are worth considering.

Code:
Window_ChoiceList.prototype.itemRectForText = function(index) {
    var rect = this.itemRect(index);
//    rect.x += this.textPadding();
    rect.width -= this.textPadding() * 2;
    return rect;
};
thank you! it works!
the reason why I cant use the second plugin is cause i'm using rpg maker mv 1.6.1, the plugin requires 1.6.2
the reason why I cant use the second plugin is cause i'm using rpg maker mv 1.6.1, the plugin requires 1.6.2
No, it doesn't.

There are no code differences between 1.6.1 and 1.6.2 (nor the current version, 1.6.3). That's why we ask the questions 😉

There were code changes that required some plugins to be edited going from 1.5 to 1.6, and from older versions to 1.5.

But even then it always makes sense to try it to see if it works, rather than just saying you can't use it and asking for people to make you something new 😛

Good luck with your project!

Original thread: https://forums.rpgmakerweb.com/threads/remove-padding-from-choices.166461/