设为首页收藏本站同能贴吧 切换语言 繁体中文
开启辅助访问 切换到窄版
扫描二维码关注官方公众号
返回列表
+ 发新帖
查看: 61|回复: 0

[转载发布] Keyboard Input Dialog

[复制链接]
累计送礼:
0 个
累计收礼:
1 个
  • TA的每日心情
    开心
    2026-7-12 04:10
  • 签到天数: 209 天

    连续签到: 2 天

    [LV.7]常住居民III

    7959

    主题

    864

    回帖

    3万

    积分

    管理员

    Rank: 9Rank: 9Rank: 9

    VIP
    7
    卡币
    29925
    OK点
    16
    推广点
    0
    同能卷
    50
    积分
    38778

    灌水之王

    发表于 4 天前 | 显示全部楼层 |阅读模式

    Keyboard Input Dialog 1.3.0



    by Biud436







    Introduction


        This plugin allows you to display text edit box on the screen.


    Features


        - Supports typing various languages.


    Video

    Spoiler
    https://www.youtube.com/embed/bLrQXWE8Yjc










    Screen Shots

    Spoiler










    - English-










    - Korean -












    - Japanese -












    - Chinese -












    - Russian -












    - Arabic (Right to Left) -








    How to Use

    Spoiler

    • Adding the plugin to your project
                Download the plugin and place it in the folder called your_project_directory/js/plugins.


                and then in plugin manager, Select RS_InputDialog plugin and add it.


    • Event Example


                    Spoiler



                        ◆Plugin Command:InputDialog backgroundColor rgba(255, 255, 255, 0.7)
                        ◆Plugin Command:InputDialog variableID 4
                        ◆Plugin Command:InputDialog text Please enter the web site
                        ◆Plugin Command:InputDialog open
                        ◆Text:None, Window, Bottom
                        :    :You are entered the string called \c[3]\v[4]\c[0]
                        :    :If you click the button called 'Yes',
                        :    :It will execute that url to the native browsers.
                        :    :Would you execute the website?
                        ◆Show Choices:Yes, No (Window, Right, #1, #2)
                        :When Yes
                          ◆Script:if(!Utils.isNwjs()) {
                          :      :  console.warn('This platform is not Nwjs');
                          :      :  this._index = this._list.length;
                          :      :}
                          :      :var os = navigator.platform;
                          :      :var url = $gameVariables.value(4);
                          :      :var child_process = require('child_process');
                          :      :if(os.indexOf('Win') >= 0) {
                          :      :  child_process.exec('start ' + url);
                          :      :} else if(os.indexOf('Mac') >= 0) {
                          :      :  child_process.exec('open ' + url);
                          :      :}
                          ◆
                        :When No
                          ◆
                        :End




    Plugin Commands

    SpoilerOpens Input Dialog.

                            InputDialog open               
    Click to expand...




                Changes the width of Input Dialog.

                            InputDialog width 488               
    Click to expand...




                Changes the text of Input Dialog for representing the description.

                            InputDialog text Please enter the string...               
    Click to expand...




                Changes an id of the variable for saving the value.

                            InputDialog variableID 3               
    Click to expand...




                Displays a alert window of the browser when you are pressing the enter

                            InputDialog debug true               
    Click to expand...



                Specifies the maximum number of character for an input field.

                            InputDialog maxLength 10               
    Click to expand...

    This plugin commands decide how to set the position of the input dialog.
    In case of "InputDialog pos center", it will be set the position of the input dialog is to center.
    In case of "InputDialog pos 0 0", it will be set the x and y values of the input dialog is to 0, 0

                            InputDialog pos center
    InputDialog pos 0 0               
    Click to expand...








    Demo Download


        This demo might not be included latest version of this plugin. The latest version of this plugin is you can find in my Github. So you should check the plugin version and update it.


    Demo(Dropbox) - (RMMV v1.6.2)


    Plugin Download


    Github RAW


    Change Log

    Spoiler2016.08.09 (v1.0.0) - First Release.
                 2016.08.09 (v1.0.1) - Added Background Color.
                 2016.08.10 (v1.0.1A) - Added ID Variables.
                 2016.08.10 (v1.1.0) - Fixed Window_DialogHelp class into the plugin.
                 2016.08.16 (v1.1.1) - Added the direction property setting the direction of content flow.
                 2016.08.16 (v1.1.1A) - Fixed a whitespace bug.
                 2016.10.14 (v1.1.2) - Fixed the issue that is not working in Battle.
                 2016.10.14 (v1.1.3) :
                 - Fixed the bug that does not change the background color.
                 - Fixed the bug that does not change the variable ID.
                 2016.10.17 (v1.1.4) - Fixed the frame works of input dialog in battle.
                 2016.10.18 (V1.1.5) - Fixed an issue that battler's movement is too fast.
                 2016.10.29 (v1.1.6) - Added the function that allows you to specify the maximum number of character for an input field.


                 2016.11.13 (v1.1.61) - Fixed the issue that is directly calling the requestUpdate function of SceneManager.


                 2016.12.02 (v1.1.65) :
                  - Added some style codes such as a text shadow and an outline into the text box.
                  - Fixed the way that can temporarily stop attack and skill actions with an enemy when the text box is activated in the battle.
                  - It will not process the text input when the text box is not shown in the battle.
                  - In the debug mode, It adds the result value to a log window after the text input is done.
                2016.12.08 (v1.1.68) - Removed the text hint window.
                2017.01.30 (v1.1.7) - Fixed an issue that is not working properly if the text dialog has a string to start with a number.
                2017.02.16 (v1.1.8) :
                - Fixed incorrect position and width, height values in the text box.
                - Added new feature that indicates the input dialog at the top position of the screen when pressing any key on your own             mobile device.
                - Added new feature that automatically returns a result of the text box if you did not press anything.
    2018.01.30 (v1.1.9) :
    - Added the button called 'OK'.
    - Added the button called 'Cancel'.
    - Removed the feature that can change the background-color of the input dialog.
    2018.02.03 (v1.1.10) :
    - Fixed the issue that is not working in RMMV 1.5.1
    - Fixed the default value of the plugin parameter  called 'CSS'.
    2018.02.06 (v1.1.11) :
    - Fixed the issue that is not working in the battle scene.
    2018.10.22 (v1.1.15) :
    - Added a plugin command that sets the position of the input dialog.
    - Added a feature that the keyboard layout is displayed again if you touch the text box from android devices.
    - On the mobile device, the font size is now set to 1rem.
    - Fixed the default UI-theme is to black.
    - In the chromium 69+ more over, The input element is always displayed even though <canvas>'s z-index is large than <input> element's z-index. so I've fixed it (I've applied the property named display: none; )
    2019.03.05 (v1.1.16) :
    - Fixed the issue that can not create a background when using Irina_PerformanceUpgrade.
    2023.04.30 (v1.2.1) :
    - Added a feature that can change the font family.
    - Added 'const' or 'let' keyword instead of 'var' keyword.
    - Added a comment called 'MV'
    2024.01.01 (v1.3.0) :
    - fixed the issue that can't move cursor by touch on mobile device





    Credit and Thanks


        - Biud436


    Terms of Use


        Free for commercial and non-commercial use.


    本贴来自国际rpgmaker官方论坛作者:biud436处,因国际论坛即将永久关站,为了存档多年珍贵资料,署名转载到本论坛存档,由于官方帖子为英文原帖,需要中文翻译请点击论坛顶部切换语言为中文就可以将帖子翻译成中文浏览,方便大家随时查看,原文地址:https://forums.rpgmakerweb.com/threads/keyboard-input-dialog.66908/

    本帖子中包含更多资源

    您需要 登录 才可以下载或查看,没有账号?立即注册

    x
    天天去同能,天天有童年!
    回复 送礼论坛版权

    使用道具 举报

    文明发言,和谐互动
    文明发言,和谐互动
    高级模式
    您需要登录后才可以回帖 登录 | 立即注册

    本版积分规则

    简体中文
    繁體中文
    English(英语)
    日本語(日语)
    Deutsch(德语)
    Русский язык(俄语)
    بالعربية(阿拉伯语)
    Türkçe(土耳其语)
    Português(葡萄牙语)
    ภาษาไทย(泰国语)
    한어(朝鲜语/韩语)
    Français(法语)
    关闭

    幸运抽奖

    社区每日抽奖来袭,快来试试你是欧皇还是非酋~

    立即查看

    聊天机器人
    Loading...

    QQ|Archiver|手机版|小黑屋|同能RPG制作大师 ( 沪ICP备12027754号-3 )

    GMT+8, 2026-8-1 05:46 , Processed in 0.123976 second(s), 53 queries .

    Powered by Discuz! X3.4

    Copyright © 2001-2020, Tencent Cloud.

    快速回复 返回顶部 返回列表