名前入力処理で韓国語を入力できるプラグイン – RS_Window_KorNameEdit.js

タイトル
This plugin allows you to type in korean in the Name Input Proccessing
作者名
ヘルプ
This plugin provides a keyboard that allows you to type in korean
or other native language in the Name Input Proccessing.

============================================================================
Plugin Commands
============================================================================

These plugin commands can change the properties of the name window.

KNE width number
KNE center true/false
KNE outlineWidth number
KNE outlineColor string
KNE fontColor string
KNE fontSize number
KNE opacity number
KNE askText string

if you want to type a name is to 9 characters or more, you must call at the following plugin command.

OpenXNameInput leader 9

============================================================================
Change Log
============================================================================
2016.03.05 (v1.3.3) - Fixed the class structure.
2016.03.22 (v1.4.0) - Fixed a bug that causes a serious problem.
2016.04.05 (v1.5.0) - Fixed a bug that causes to delete the text automatically
when you can type Hangul text of length less than 2.
2016.06.18 (v1.6.0) - Fixed the inheritance structure, and the parameter called 'askText'.
2016.08.09 (v1.6.1) - Fixed shouldPreventDefault function of Input class.
2016.12.20 (v1.6.2) : Added Default CharWidth parameter.
That is because this plugin has a bug that 'navigator.language' has always returned
'en-US' due to a bug of crosswalk-10.39.235.16 xwalk library. So I added this
to solve the problem of returning the wrong character width.
2017.01.13 (v1.6.3) - Fixed a bug that didn't hide the status bar after firing onchange event on android.
2017.06.07 (v1.6.4) :
- Added a new feature that can change a default background image.
- Fixed the issue that is not changed the text after pressing the cancel button on an Android.
- Now it does not get the focus of a text editor unless pressing the edit button.
2017.09.15 (v1.6.5) :
- Added a new feature that pre-sets the default name when the name processing.
2018.10.26 (v1.6.6) :
- Added the alert window.
2018.11.08 (v1.6.7) :
- Actor's name can change the same as previous name.
- Now command buttons are show up only in mobile devices.
- Fixed the position of the edit window.
2019.05.30 (v1.6.8) :
- Added the feature that the name can type as 9 characters or more.
2019.11.23 (v1.6.9) :
- Added a new feature that can select whether input method editor shows on the screen.
its feature can be resolved many of issues on the mobile device.
- Added a new feature that can hide the face image on the name edit window.
2020.07.14 (v1.6.10) :
- Fixed the issue, https://github.com/biud436/MV/issues/18
2021.01.11 (v1.6.11) :
- Now it is possible to use a text code in the asking text.
2023.10.03 (v1.6.12) :
- Fixed the issue that Korean input is not working after the recent update.
パラメータ
since 2015.10.19

param windowWidth
desc Directly specify the width of a window for editing name.
(It will automatically calculate if specifying the width as 'auto')
default auto

param windowCenter
type boolean
desc The window will align to the center of the screen unless set the same as 'false' value.
default false

param editWindow_Opacity
type number
desc The opacity can set as number between 0 and 255.
default 225
min 0
max 255

param helpWindow_Opacity
text Help Window Opacity
type number
desc The opacity can set as number between 0 and 255.
default 225
min 0
max 255

param askingText
desc This is a text hint
default Please enter the name

param outlineWidth
desc Specify the outline width as you want
default 1

param outlineColor
desc Specify the outline color as you want
default black

param fontColor
desc Specify the font color as you want
default white

param standardFontSize
desc Specify the font size as you want
default 28

param Chinese Fonts
desc Specify the Chinese font as you want
default SimHei, Heiti TC, sans-serif, Noto Sans

param Korean Fonts
desc Specify the Korean font as you want
default Noto Sans, Dotum, AppleGothic, sans-serif

param Default Fonts
desc Specify the default font as you want
default GameFont

param Default CharWidth
desc This plugin calculates a text width using this letter when the system language is English.
default A

param Default Background
desc Specify the background on your scene for editing the name from img/pictures folder
'auto' : default map background
default auto
require 1
dir img/pictures/
type file

param Default Edit Button
desc Specify the button name that would activate the edit window
default Edit

param Default OK Button
desc Specify the button name that would return to previous map after finishing the actor name
default OK

param Default Cancel Button
desc Specify the button name that would return to previous map.
default Cancel

param Error Message

param didnt_type_anytext
parent Error Message
desc Write here a warning message to be displayed when no letters are entered.
default Cannot an empty name

param cant_type_same_name
parent Error Message
desc Write here a warning message to be displayed when texts are the same name.
default Cannot set as the same name

param Show Error Message
parent Error Message
type boolean
desc Specify whether the error messsage shows.
default true
on true
off false

param Keyboard Editor Hidden
type boolean
desc <input> form allows you to open the virtual keyboard editor on the screen. it can open manually after touching with input form.
default true
on hide
off show

param Style
type struct<TextBox>
desc when showing the input form on the screen, you can change the style of input.
default {"width":"60%","textIndent":"10px","fontSize":"16px","lineHeight":"120%","border":"3px solid #bd7419","cursor":"text","Position":"","top":"\"\"","left":"\"\"","right":"0","bottom":"0"}

param Show Face
type boolean
desc Specify whther the face image shows.
default true

ライセンス表記
  • MIT License
The MIT License
Copyright (c) 2015 biud436
Free for commercial and non commercial use.

紹介ページ https://github.com/biud436/MV/blob/master/RS_Window_KorNameEdit.js