+ @Override
+ public boolean onAction() {
+ try{
+ new ActionListDialogBuilder()
+ .setTitle("Action List Dialog")
+ .setDescription("Choose an item")
+ .addAction("First Item", new Runnable() {
+ @Override
+ public void run() {
+ // Do 1st thing...
+ }
+ })
+ .addAction("Second Item", new Runnable() {
+ @Override
+ public void run() {
+ // Do 2nd thing...
+ }
+ })
+ .addAction("Third Item", new Runnable() {
+ @Override
+ public void run() {
+ // Do 3rd thing...
+ }
+ })
+ .build()
+ .showDialog(
+ new MultiWindowTextGUI(TuiLauncher.getScreen()));
+
+ return true;
+ }catch(Exception e){
+ e.printStackTrace();
+ throw e;
+ }
+ }
+