Quasi Input

Discussion in 'JS Plugin Releases (RMMV)' started by Quxios, Nov 21, 2015.

    Tags:
  1. lordvalinar

    lordvalinar Lord of the Damned Veteran

    Messages:
    162
    Likes Received:
    29
    Location:
    Hell on Earth
    First Language:
    English
    @Quasi YUS YUS YUS!!! I LOVE YOU!!!!! ((only in a platonic way)) :p  Thank you so much ^_^ 

    I'm trying to learn more JavaScript myself so I can do some of this myself as before the full release of the project I would love to work on my own ABS ((yes I know you're working on one -- been keeping my eye on it :p )) But with this game, not sure what I have in mind yet so things are still open. Plus the book I have from classes is regular Java... not sure how much use that will be though lol.
     
    #21
    Quxios likes this.
  2. Ghost of Christmas Kloe

    Ghost of Christmas Kloe Ghost of a Princess Seagull Veteran

    Messages:
    1,504
    Likes Received:
    913
    Location:
    Somewhere...
    First Language:
    English
    Primarily Uses:
    N/A
    It's ok, I found a solution... :cutesmile:  use Hime's Common Event Buttons instead... >_>


    Hime recommended to use it with this plugin and works really well with it, you can even use all of the button names from Quasi Input with no patch!!  :thumbsup-left: :cutesmile: :thumbsup-right:
     
    Last edited by a moderator: Jan 28, 2016
    #22
    Quxios likes this.
  3. Tsukihime

    Tsukihime Veteran Veteran

    Messages:
    8,230
    Likes Received:
    3,060
    Location:
    Toronto
    First Language:
    English
    @Quasi


    I was looking for something that allowed me to enter text, and this does the job.


    However, I would like users to be able to press enter to "submit" the text.


    Now, I can assign #enter to the window which calls a method to store the text somewhere, but the enter key still gets registered and it just adds a space.


    Is there a way to override this behavior?


    I've also noticed that IME support is disabled, so I'm unable to type chinese or japanese. Are these supported? It looks like you have support for russian and japanese, so presumably the problem is IME...
     
    Last edited by a moderator: May 4, 2016
    #23
  4. Quxios

    Quxios Veteran Veteran

    Messages:
    1,055
    Likes Received:
    778
    First Language:
    English
    Primarily Uses:
    RMMV
    @Tsukihime Are you using the Window_TextInput class included in the plugin? Either way, you can clear the input after #enter is triggered. So your update method would look something like:
     


    update = function() {
    if (Input.isTriggered("#enter")) {
    callOnEnterFunction();
    Input.clear();
    return;
    }
    if (Input.anyPressed()) {
    addInput(Input._lastPressed);
    }
    }


    Clearing the input would make the Input.anyPressed() return false, so enter wouldn't be added to the text. You just have to catch #enter before adding it to the text. I didn't clear it in my Window class, so that could be the issue if you are using it.

    As for the IME support, I couldn't get it to work since every time I tried my IME would turn off when MV was my active window. so no clue on fixing that.
     
    #24
    Tsukihime likes this.
  5. Kane Hart

    Kane Hart Elmlor.com Veteran

    Messages:
    656
    Likes Received:
    166
    Location:
    Barrie, Ontario, Canada
    First Language:
    English
    Hey thanks for this plugin. Was just playing with just the 2 Input and NameInput. For this moment early stages I just wanted them to type their name and hit enter (most common way to submit text) But by defaut when I hit Enter it has a space then a A I think it was. I looked into the Input options of the plugin and Ok is set to #enter, #space, #z


    Not sure if I'm derping.


    Thanks :)
     
    #25
  6. Quxios

    Quxios Veteran Veteran

    Messages:
    1,055
    Likes Received:
    778
    First Language:
    English
    Primarily Uses:
    RMMV
    #26
    Kane Hart likes this.
  7. Kane Hart

    Kane Hart Elmlor.com Veteran

    Messages:
    656
    Likes Received:
    166
    Location:
    Barrie, Ontario, Canada
    First Language:
    English
    #27
  8. firestalker

    firestalker Veteran Veteran

    Messages:
    326
    Likes Received:
    37
    First Language:
    English
    Primarily Uses:
    RMMV
    I'm not sure I know how to use this plugin...  I want to use this to ask questions and have the player answer them.  I haven't found a way to make this into a new window or scene where the value that is typed in the input space is saved to a variable.  Actually I can't get a Window at all...  Maybe I'm just an idiot, but I can't figure this plugin out.


    Am I in the right spot or do I have to look for another plugin entirely?
     
    #28
  9. Quxios

    Quxios Veteran Veteran

    Messages:
    1,055
    Likes Received:
    778
    First Language:
    English
    Primarily Uses:
    RMMV
    This plugin just adds full keyboard support to MV. But you can do what you want without this plugin. You would just create a space holder actor, then use a name input processing event command for that space holder actor, then inside the conditional branch in the 2nd tab select the space holder actor and fill in the name.


    Though with this plugin, they would be able to use the keyboard in the name input processing scene.
     
    #29
  10. firestalker

    firestalker Veteran Veteran

    Messages:
    326
    Likes Received:
    37
    First Language:
    English
    Primarily Uses:
    RMMV
    Well, that kind of sucks....  I was hoping not to do it so messily.  I was looking for a cleaner and easier way to manage.  Oh well, I'll see what else I can find then...  Thanks for answering.
     
    #30
  11. Quxios

    Quxios Veteran Veteran

    Messages:
    1,055
    Likes Received:
    778
    First Language:
    English
    Primarily Uses:
    RMMV
    If you have JS knowledge, you can create your own scene based off the Scene_Name that does it for you.
     
    #31
  12. firestalker

    firestalker Veteran Veteran

    Messages:
    326
    Likes Received:
    37
    First Language:
    English
    Primarily Uses:
    RMMV
    Yeah....  I have no JS knowledge.  I can look at a plugin and maybe, maybe figure out a thing or two....  But I'm a long way from writing my own [even modifying one is a long way out].
     
    #32
  13. McKathlin

    McKathlin Plugin dev, composer, artist Veteran

    Messages:
    52
    Likes Received:
    38
    Location:
    USA
    First Language:
    English
    Primarily Uses:
    N/A
    Hi Quxios, I'm getting a 404 error on all of your links to scripts and documentation; only the videos are working. Is anyone else having the same problem, and if they are, would you please look into it? Thanks!
     
    #33
  14. Quxios

    Quxios Veteran Veteran

    Messages:
    1,055
    Likes Received:
    778
    First Language:
    English
    Primarily Uses:
    RMMV
    #34
  15. Mythos Devlog

    Mythos Devlog Warper Member

    Messages:
    2
    Likes Received:
    0
    First Language:
    English
    None of the links work
     
    #35
  16. Mythos Devlog

    Mythos Devlog Warper Member

    Messages:
    2
    Likes Received:
    0
    First Language:
    English
    The smart jump compadability patch's link doesn't work.
     
    #36
  17. HentaiPie

    HentaiPie Villager Member

    Messages:
    21
    Likes Received:
    11
    First Language:
    English
    Primarily Uses:
    RMMV
    All of the links are broken :(
     
    #37

Share This Page