Change the name input window

● ARCHIVED · READ-ONLY
Started by qazav 5 posts View original ↗
  1. Hello everyone! Sorry, If the same thread exists, but I cant found any answers. So
    That is my trouble: When the name input window appears, it have two kind of simbols: uppercase and lowercase, but I need only Uppercase. Can I reach this by makers interface or I need in some plugin? Thanks for help)
    Samples below.
  2. You'll need a plugin. Here. I wrote this and you can put it into a nameInputPlugin.js file in your plugins folder. Note, it only pertains to the latin alphabet. Here is the code:

    /*:
    * @plugindesc HPDS Jump plugin for name input processing with Upper case only.
    * @author Michael Hernandez @ High Plains Design Studio www.highplainsdesignstudio.com
    */
    (function() {

    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', '(',')','*','+','-',
    '/','=','@','<','>', ':',';',' ','Page','OK' ];

    })();
  3. Thank you very much, Michael! ) This is just right!

    But there is some troubles... Buttons "page" and "ok" inactive now(( They are typing as symbols too(

    Problem's solution is detected) Page and ok buttons have their position on the right-down corner. Trying remove their texts on right place now)

    This is my newby solution:
    /*:
    * @plugindesc HPDS Jump plugin for name input processing with Upper case only.
    * @author Michael Hernandez @ High Plains Design Studio www.highplainsdesignstudio.com
    */
    (function() {

    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', '(',')','*','+','-',
    '/','=','@','<','>', ':',';',' ',' ',' ',' ',' ',
    ' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',
    ' ',' ',' ',' ',' ',' ',' ',' ',' ',' ','Page','OK' ];

    })();

    Now it's work)
    Thank you very much again)

    P.S. If you can optimize this code, or help with window size change, make it smaller than now without the empty symbols, and with the buttons remove, I will be very grateful :)
  4. I see what you're saying. I have looked at the issue for a few hours now this morning and it appears that the window was made with 90 items in mind. It is hard coded for Russian, Japanese, and Latin, with all of the tables having 90 items. I've tried to narrow it down for simply the english versions but I've still been unsuccessful in actually applying the OK and Page buttons at a lower index. However, I think the cursor movement functions all rely on 90 items as well and are changing my index values no matter what.

    I'll keep the plugin in mind for future use, but unfortunately, I couldn't figure out a workable solution this morning. It seems that your solution is the quickest solution with the least amount of coding, though I understand the inconvenience of the extra spaces.

    Code:
    Window_NameInput.prototype.isPageChange = function() {
        return this._index === 88;
    };
    
    Window_NameInput.prototype.isOk = function() {
        return this._index === 89;
    };

    I tried changing the index values to 62 and 63 respectively to make the page and ok button work, but it just wasn't working. Like I said, i think it has to do with the cursor movements and the hard coded expectation of 90 items. If I figure it out, I'll let you know.
  5. Anyway thank you for your help) I will make my project with code wich already have ) thanks!