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

[转载发布] Text Input Window

[复制链接]
累计送礼:
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

    灌水之王

    发表于 3 天前 | 显示全部楼层 |阅读模式
    I'm working on a script for making Input Scenes, it's mostly done here

                            Terms of use:   Free for Commercial and free use as long as I get some credit for the script.               
    Click to expand...




    How to use:

    SpoilerSpoiler



                            There's two methods of use, default, which means you set up the information in the plugin setup, or like this from Plugin Command  in your event  If you want to use an Image make sure you change Use Image in the setup to true.


                            Not using images:


                            enter_text <variable> <max characters> false <title> <default text>


                            if you're using images:


                            enter_text <variable> <max characters> true <image file> <title> <default text>


    Example:  enter_text 121 18 false I'm_a_computer_prompt Default


    Image Example: enter_text 121 18 true ClipComputer  I'm_a_computer_prompt Default


    xxx = Variable number


    "String" is what I'm checking against.


    Red = Variable


    Purple = Maximum Characters they can input,  in the Example that means you can only Input 18 Characters total. you can make it as large as you want I believe as well. All the way down to 1 Character Max I believe without crashing lol.


    Lime Green = Text to display above the Inputted Text.


                            When you want it to check against Lowercase it's example:  $gameVariables.value(121).toLowerCase() == "text to check"  


                            or if you want it to check against all Caps, its  $gameVariables.value(121).toUpperCase() == "TEXT TO CHECK"


    Blue = The name of the image file without .png


                             




             



    Screenshot

    SpoilerSpoiler










                                    This is the new Look so far:

















    Changelog:

    SpoilerSpoiler





    Version 0.0.1


                            Features:


                            Basics are in place


    Version 0.0.1b


                            Fixed some variable mislabels.


                            Added some information to @help


                            Added a comment


                            Still unable to find the bug yet.. Hence why 0.0.1b not 0.0.2   



    Version 0.0.1c


                            Fixed the Input bug I had in 0.0.1 and 0,0.1b but now I have to get it to display the Text..


    Version 0.0.1d


                            Removed all the code for Window_NameInput since the default works fine and all I need is the modified code I'm using now.


                            Not quiet ready for 0.0.2 need to find this one last crippling bug. and I'm going to skip to 0.5.0 once that's found.   



    Version 0.9.0


                            I skipped a ton of versions between 0.0.1d and now because of internal testing, also I said I would once I got it to display the Text Input as you type it, and I did   



                            Still left to do is figure out why it cuts my text when I use the Plugin Command.. but not when you use Default.


    Version 0.9.1


                            Fixed a bug I created in 0.9.0


                            Forgot to push changes to Github lol


    Version 1.0.0


                            Fixed the bugs I was having with the script, it should work smoothly now.


    Version 1.0.1


                            Added ArkDG's suggestion:


    varImported=Imported||{};
    Imported.CmdInp=true;


    Thank you.


    Version 1.0.2


                            Centered the Text


                            Added RegExp but for some reason it's not working Conditional Checking in Events.


    Version 1.0.3


                            Till I find a solution to wrap the title text I removed it off of being centered.


                            Fixed a major breaking bug when using default settings.  Found another bug while doing that and fixed it as well.


                            Code Cleanup probably will be an ongoing thing as I learn more and more.  



    Version 1.0.4


                            Fixed a bug I created in 1.0.3


    Version 1.1.0


                            Added an Image system 


    Version 1.1.1


                            Updated it to work with latest RPG Maker MV.


                            Updated the Plugin Commands see the Examples or plugin help


                            Added Quasi_Input support thanks to Duce (If there's a better way to handle it let me know)






    Download

    SpoilerSpoiler



    https://raw.githubusercontent.com/Darkkitten/MyRPGMakerMV/master/CommandInput/CmdInp.js


    ClipComputer.png  Right click and save in your games img/pictures folder.


    Optional:


    https://github.com/quasixi/RPG-Maker-MV/blob/master/Systems/QuasiInput.js






    Bugs:

    SpoilerSpoiler





    Unable to Input Characters - If you click Ok, it allows you to exit and saves your default text at least so far.


    Unable to see Text.


    defaultPromptText is cut off when you use the plugin via the plugin Command


                            Long Text's have to use the Underscore _  otherwise it picks it up as the next Param.  so basically If_I_want_long_text  is what it would be instead of If I want long text.






    ToDo:

    SpoilerSpoiler



    Ability to change Background Graphics. Wouldn't look right.


    Fix the Default Header Text.


    Fix the Display Editor Bug.


    Fix the Bug that stops the script from being useful..


                            Clean up the Code. - Some Done. Some more Done.


    Clean up the image code and change how it works to make it more efficient.   What I want to do is add another command argument somewhere in there allowing you to enable or disable images via the Plugin Command..








            You can still get an old version without image support here  v1.0.4


    Special Thanks to


    http://www.rpgmakervxace.net/topic/4238-simple-text-input/ by Himeworks, Thank you to him/her for inspiration from their Ace script.


            The font in the Screenshot's is thanks to  Font Squirl , GoodDog-webfont.ttf  they also provide free font's for commercial use.


            Duce for posting how to add Quasi_Input support.


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

    本帖子中包含更多资源

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

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

    使用道具 举报

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

    本版积分规则

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

    幸运抽奖

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

    立即查看

    聊天机器人
    Loading...

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

    GMT+8, 2026-8-1 02:34 , Processed in 0.087837 second(s), 53 queries .

    Powered by Discuz! X3.4

    Copyright © 2001-2020, Tencent Cloud.

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