Android进度对话框- RPG Maker MV
说明
这个插件显示进度对话框,在Android手机。
截图
▲旋转式
▲水平的风格
安装
1。添加科尔多瓦插件pdialog英特尔XDK。
2。其次,在使用文本编辑器,例如记事本你的游戏目录编辑一个index.html文件。
替代的内容WWW index.html用下面的代码。
<!DOCTYPE html>
<html>
<head>
<meta charset=>
<meta name= content=>
<meta name= content=>
<meta name= content="user-scalable=no">
<link rel= href= type=>
<link rel= href=>
<link rel= type= href=>
<title>Spica</title>
</head>
<body style=>
<script type= src=></script>
<script type= src=></script>
<script type= src=></script>
<script type= src=></script>
<script type= src=></script>
<script type= src=></script>
<script type= src=></script>
<script type= src=></script>
<script type= src=></script>
<script type= src=></script>
<script type= src=></script>
<script type= src=></script>
</body>
</html>
3。添加一个插件到你的项目中
下载插件并将其放置在文件夹“your_project_directory / JS /插件,和T母鸡在插件管理器中,选择rs_androidprogressbar插件添加。
示例代码
科尔多瓦插件pdialog GitHub:https://github.com/pwlin/cordova-plugin-pdialog
进度对话框的参考: https://developer.android.com/reference/android/app/progressdialog.html
1。进程初始化
*主题{串}:传统,device_dark,光器件_(默认)_全息,全息光暗,_
* progressstyle } { string:转(默认),水平
*布尔可取消{ }:真正的(默认)或假
*标题{ }:字符串的进度对话框的标题(默认为空)
*消息{ }:字符串的对话框内容(默认为空)
cordova.plugin.pDialog.init({
theme : 'HOLO_DARK',
progressStyle : 'HORIZONTAL',
cancelable : true,
title : 'Please Wait...',
message : 'Contacting server ...'
}).setProgress(25);
插件
这个插件不提供插件的命令