Stuffo

Villager
Member
Joined
Nov 1, 2021
Messages
14
Reaction score
5
First Language
Swedish
Primarily Uses
RMMV
could anyone make a plugin where the lowercase letters and the "page" buttons are reoved in the name input? Bassicly the read spots on the screenshot is the lowercase and page button. Im using a font where lowercase is identical to uppercase. And in dont need more options so i just want to remove the page button. If there already is a plugin that can do it, please send a link!Sorry if this is too much to ask for and thanks .(MV)
Message #help-mv
 

Attachments

  • ab.png
    ab.png
    367.5 KB · Views: 3

mlogan

Global Moderators
Global Mod
Joined
Mar 18, 2012
Messages
16,545
Reaction score
9,186
First Language
English
Primarily Uses
RMMV

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

 

autodidact

Veteran
Veteran
Joined
Nov 13, 2020
Messages
82
Reaction score
64
First Language
English
Primarily Uses
RMMV
Hi,
I have been enjoying fiddling around with the RPG MV maker base code.

Try saving and putting this into a .js file in your plugins folder. It might not quite be what you want, but you can always tweak some of the specifics to get closer.

JavaScript:
// Window_NameInput.LATIN1 =
//         [ 'A','B','C','D','E',  'a','b','c','d','e',
//           'F','G','H','I','J',  'f','g','h','i','j',
//           'K','L','M','N','O',  'k','l','m','n','o',
//           'P','Q','R','S','T',  'p','q','r','s','t',
//           'U','V','W','X','Y',  'u','v','w','x','y',
//           'Z','[',']','^','_',  'z','{','}','|','~',
//           '0','1','2','3','4',  '!','#','$','%','&',
//           '5','6','7','8','9',  '(',')','*','+','-',
//           '/','=','@','<','>',  ':',';',' ','Page','OK' ];

//Removed the lowercase, but you may want to reposition some of the symbols
Window_NameInput.LATIN1 =
[ 'A','B','C','D','E',  'F','G','H','I','J',
'K','L','M','N','O',    'P','Q','R','S','T',
'U','V','W','X','Y',    'Z',' ', ' ', ' ', ' ',
'0','1','2','3','4',    '5','6','7','8','9',
'[',']','^', '{','}',   '|','~', '!','#','$',  
'%','&', '(',')','*',   '+','-', '/','=','@',  
'<','>',  ':',';',' ',  '_','OK'

];

//Reduces letter window height
Window_NameInput.prototype.windowHeight = function() {
    return this.fittingHeight(7);
};

//Window_NameInput.prototype.maxCols = function() {
//    return 10;
//};

//Resizes max selectable items since we removed lowercase alphabet.
Window_NameInput.prototype.maxItems = function() {
    return 67;
};

//index of 1000 completely removes the option to change pages, since the max is 67.
Window_NameInput.prototype.isPageChange = function() {
    return this._index === 1000;
};

//If the _index is less than 66 (aka "ok"), then insert the character. If it is not, then it is the OK button
Window_NameInput.prototype.character = function() {
    return this._index < 66 ? this.table()[this._page][this._index] : '';
};

//re-assign to new positon of OK
Window_NameInput.prototype.isOk = function() {
    return this._index === 66;
};

//Jump to the OK button's new position
Window_NameInput.prototype.processJump = function() {
    if (this._index !== 66) {
        this._index = 66;
        SoundManager.playCursor();
    }
};

//Removed the center space that divided the upper and lowercase letters
Window_NameInput.prototype.itemRect = function(index) {
    return {
        x: index % 10 * 42 + Math.floor(index % 10 / 5),
        y: Math.floor(index / 10) * this.lineHeight(),
        width: 42,
        height: this.lineHeight()
    };
};

//removes some margin offset on the right.
Window_NameInput.prototype.refresh = function() {
    var table = this.table();
    this.contents.clear();
    this.resetTextColor();
    for (var i = 0; i < 90; i++) {
        var rect = this.itemRect(i);
        rect.x += 3;
        rect.width -= 2; //original value was 6
        this.drawText(table[this._page][i], rect.x, rect.y, rect.width, 'center');
    }
};

What it looks like:
1635705580566.png
 

Stuffo

Villager
Member
Joined
Nov 1, 2021
Messages
14
Reaction score
5
First Language
Swedish
Primarily Uses
RMMV
Hi,
I have been enjoying fiddling around with the RPG MV maker base code.

Try saving and putting this into a .js file in your plugins folder. It might not quite be what you want, but you can always tweak some of the specifics to get closer.

JavaScript:
// Window_NameInput.LATIN1 =
//         [ 'A','B','C','D','E',  'a','b','c','d','e',
//           'F','G','H','I','J',  'f','g','h','i','j',
//           'K','L','M','N','O',  'k','l','m','n','o',
//           'P','Q','R','S','T',  'p','q','r','s','t',
//           'U','V','W','X','Y',  'u','v','w','x','y',
//           'Z','[',']','^','_',  'z','{','}','|','~',
//           '0','1','2','3','4',  '!','#','$','%','&',
//           '5','6','7','8','9',  '(',')','*','+','-',
//           '/','=','@','<','>',  ':',';',' ','Page','OK' ];

//Removed the lowercase, but you may want to reposition some of the symbols
Window_NameInput.LATIN1 =
[ 'A','B','C','D','E',  'F','G','H','I','J',
'K','L','M','N','O',    'P','Q','R','S','T',
'U','V','W','X','Y',    'Z',' ', ' ', ' ', ' ',
'0','1','2','3','4',    '5','6','7','8','9',
'[',']','^', '{','}',   '|','~', '!','#','$', 
'%','&', '(',')','*',   '+','-', '/','=','@', 
'<','>',  ':',';',' ',  '_','OK'

];

//Reduces letter window height
Window_NameInput.prototype.windowHeight = function() {
    return this.fittingHeight(7);
};

//Window_NameInput.prototype.maxCols = function() {
//    return 10;
//};

//Resizes max selectable items since we removed lowercase alphabet.
Window_NameInput.prototype.maxItems = function() {
    return 67;
};

//index of 1000 completely removes the option to change pages, since the max is 67.
Window_NameInput.prototype.isPageChange = function() {
    return this._index === 1000;
};

//If the _index is less than 66 (aka "ok"), then insert the character. If it is not, then it is the OK button
Window_NameInput.prototype.character = function() {
    return this._index < 66 ? this.table()[this._page][this._index] : '';
};

//re-assign to new positon of OK
Window_NameInput.prototype.isOk = function() {
    return this._index === 66;
};

//Jump to the OK button's new position
Window_NameInput.prototype.processJump = function() {
    if (this._index !== 66) {
        this._index = 66;
        SoundManager.playCursor();
    }
};

//Removed the center space that divided the upper and lowercase letters
Window_NameInput.prototype.itemRect = function(index) {
    return {
        x: index % 10 * 42 + Math.floor(index % 10 / 5),
        y: Math.floor(index / 10) * this.lineHeight(),
        width: 42,
        height: this.lineHeight()
    };
};

//removes some margin offset on the right.
Window_NameInput.prototype.refresh = function() {
    var table = this.table();
    this.contents.clear();
    this.resetTextColor();
    for (var i = 0; i < 90; i++) {
        var rect = this.itemRect(i);
        rect.x += 3;
        rect.width -= 2; //original value was 6
        this.drawText(table[this._page][i], rect.x, rect.y, rect.width, 'center');
    }
};

What it looks like:
View attachment 205426
Thanks its works PERFECTLY :D
 

autodidact

Veteran
Veteran
Joined
Nov 13, 2020
Messages
82
Reaction score
64
First Language
English
Primarily Uses
RMMV
Hi,
I found a couple of keyboard bugs in the code I gave you. So, here is some extra stuff to add to the rest.

What does this fix?
  • You can now use the up and down arrow on the keyboard and it will properly wrap to the next line of input.
  • Removes "Page" option functionality from keyboard.
JavaScript:
//allows keyboard to wrap when it hits the bottom of 7 row input.
Window_NameInput.prototype.cursorDown = function(wrap) {
    if (this._index < 80 || wrap) {
        this._index = (this._index + 10) % 70;
        //this._index = (this._index + 10) % 90; //original
    }
};
//allows keyboard to wrap when it hits the top of 7 row input.
Window_NameInput.prototype.cursorUp = function(wrap) {
    if (this._index >= 10 || wrap) {
        this._index = (this._index + 60) % 70;
        //this._index = (this._index + 80) % 90; //original
    }
};
//Override to remove page option from keyboard
Window_NameInput.prototype.cursorPagedown = function() {
    //this._page = (this._page + 1) % this.table().length;
    //this.refresh();
};
//Override to remove page option from keyboard
Window_NameInput.prototype.cursorPageup = function() {
    //this._page = (this._page + this.table().length - 1) % this.table().length;
    //this.refresh();
};
 

Stuffo

Villager
Member
Joined
Nov 1, 2021
Messages
14
Reaction score
5
First Language
Swedish
Primarily Uses
RMMV
Thanks its works PERFECTLY :D
Hi,
I found a couple of keyboard bugs in the code I gave you. So, here is some extra stuff to add to the rest.

What does this fix?
  • You can now use the up and down arrow on the keyboard and it will properly wrap to the next line of input.
  • Removes "Page" option functionality from keyboard.
JavaScript:
//allows keyboard to wrap when it hits the bottom of 7 row input.
Window_NameInput.prototype.cursorDown = function(wrap) {
    if (this._index < 80 || wrap) {
        this._index = (this._index + 10) % 70;
        //this._index = (this._index + 10) % 90; //original
    }
};
//allows keyboard to wrap when it hits the top of 7 row input.
Window_NameInput.prototype.cursorUp = function(wrap) {
    if (this._index >= 10 || wrap) {
        this._index = (this._index + 60) % 70;
        //this._index = (this._index + 80) % 90; //original
    }
};
//Override to remove page option from keyboard
Window_NameInput.prototype.cursorPagedown = function() {
    //this._page = (this._page + 1) % this.table().length;
    //this.refresh();
};
//Override to remove page option from keyboard
Window_NameInput.prototype.cursorPageup = function() {
    //this._page = (this._page + this.table().length - 1) % this.table().length;
    //this.refresh();
};
THANKS AGAIN :D
 

Latest Threads

Latest Posts

Latest Profile Posts

I'm working with Excel today, and I just hate VBA so much. It's like the designers said "How can we make a programming language that works as obtusely and inefficiently as possible?"
Beep-Beep-Motha-facka.gif

Just finished and uploaded the delivery truck base/sprite sheet. I've been steadily replacing the default assets with early modern alternatives. The air-ship for a biplane, horse-drawn wagon for a delivery truck, and next a sailboat for a steam-powered passenger liner (think of the SS Olympic and RMS Titanic).
I caught a shiny magikarp on pokemonGO today AND finally saw Detective Pikachu and it was so cute and I'm still so hype AHHHHH!!!
one of the coolest things I've learned from the forums is the ability to give yourself a hitbox. I have a move you can do on the fields. shoulder tackle. thanks to the forums, that tackle triggers self A switches on some events. NPC's and the environment now react to the tackle. awesome.
I really liked how this one turned out! :kaopride:
WYqMPf6.png

Character (Yes, this is a character): Nibiru the Primal Being from Yugioh.

Forum statistics

Threads
121,947
Messages
1,145,369
Members
160,220
Latest member
Trex1930
Top