Función ShowDialog

per Jordi Farrero darrera modificació 2020-03-25T14:54:56+01:00

text/plain funcionShow.txt — 1 KB

Continguts del fitxer

	public void showShipNotFinishedDialog()
	{
		
		AlertDialog.Builder builder = new AlertDialog.Builder(game_commons.gBActivity);
		
		builder.setMessage(":: NOT FINISHED!!! ::").setCancelable(false).setTitle(":: NOT FINISHED ! ::")
		
		.setPositiveButton("Use DEFAULT built-up! & Quit", 
				new DialogInterface.OnClickListener() {
						public void onClick(DialogInterface dialog,int id)
						{
							//game_reset.create_default_buildup();
							//game_commons.gBActivity.call_menu_Activity();
						}
		})
		
		.setNegativeButton("Ooops!!! Continue....!", 
				new DialogInterface.OnClickListener() {
			public void onClick(DialogInterface dialog,int id){
				dialog.cancel();
			}
		});
		
		AlertDialog alert = builder.create();
		alert.setIcon(android.R.drawable.ic_dialog_alert);
		alert.show();

	}