level 11
var ctx=com.mojang.minecraftpe.MainActivity.currentMainActivity.get()
ctx.runOnUiThread(new java.lang.Runnable({
run: function(){
try{
var d=new android.app.AlertDialog.Builder(ctx)
d.setNegativeButton("下方按钮左",new android.content.DialogInterface.OnClickListener(){
onClick: function(dia,w){
//后面接按后反应
}})
d.setPositiveButton("另一个按钮右",new android.content.DialogInterface.OnClickListener(){
onClick:function(dia, w){
//后面接反应
}})
d.setNeutralButton("又一个按钮中间",new android.content.DialogInterface.OnClickListener(){
onClick: function(dia, w){
//反应
}})
d.setTitle("标题")
d.setMessage("这里是正文")
d.show()
}catch(e){print(e)}
}}))
2016年05月02日 11点05分
11