- 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.
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