This plugin allows you to change an UI of the alert window by using SweetAlert library. – RS_SweetInputDialog.js

タイトル
This plugin allows you to change an UI of the alert window by using SweetAlert library.
作者名
ヘルプ
=========================================================================================
Installation
=========================================================================================
SweetAlert library is available at https://unpkg.com/sweetalert/dist/sweetalert.min.js
And then copy sweetalert.min.js to js/plugins folder of your game's root directory.
You don't need to choose its library file within the Plugin Manager.

Note that this plugin must need a RS_InputDialog.js plugin.
it is available at https://raw.githubusercontent.com/biud436/MV/master/RS_InputDialog.js

In the Plugin Manager, This plugin must locate in somewhere below RS_InputDialog plugin.

=========================================================================================
Introduction and Usage
=========================================================================================
This plugin must require RS_InputDialog.js plugins and SweetAlert library.
We will check whether the button is OK or Cancel in the dialog and then let's show up alert window.

It is very easy to make the two buttons in the alert window.
Open up the script command and you can write this code, as follows :

var textbox = new SweetTextBox();
textbox.setEvent(function() {
swal("This is a OK Callback function");
}, function() {
swal("This is a Cancel Callback function");
});
textbox.open();

We must pass by defining callback functions such as OK or Cancel into the setEvent function of our textbox.
Note that the SweetTextBox class makes sure that assigns callback functions into the swal of SweetAlert library.
パラメータ
( なし )
ライセンス表記
  • MIT License
The MIT License
Copyright (c) 2019 biud436
Free for commercial and non commercial use.

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