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,357
Reaction score
9,058
First Language
English
Primarily Uses
RMMV

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

 

autodidact

Veteran
Veteran
Joined
Nov 13, 2020
Messages
75
Reaction score
62
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
75
Reaction score
62
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

Marketing seems to be about reducing dependence on luck to sell a product, as well as expanding the number of avenues in which luck can play a role in selling a product.
So, I've been wanting to do this randomized logic puzzle in my game for years now. I finally figured out how to do it by using arrays and a few small script calls. It's based on the Einstein Fish Puzzle! :D Though, I have no idea how to actually have the player put in answers.... might start a thread about it.

The projectiles shown in this video are as follows:
1, Basic Triple
2, 30-Degree Arc
3, Randomized Blast Wave
4, 8-way
5, 8-way Double
6, 8-way Slowness
7, 120-Degree Arc Repetitive
8, Projective Triple
9, Split 8-way
10, 2-way Split Randomized Arc
11, HP-MP Split Arc
12, Split Laser
13, Shock
14, Cosine
Drop shadows and water reflections tests in RPG Maker VX Ace


BgI3F80.png
I'm doing a fairy tale project Little Red Riding Hood and the Woodsman. I'm almost done with the demo in my native language and I intend to make a demo version in English as well. I'm just going to use the translator because I don't know the pronunciations very well, I only know how to say "Hey" and nothing else.. :kaoswt2:

Forum statistics

Threads
118,620
Messages
1,117,395
Members
155,705
Latest member
Steve7654
Top