02.06.2015, 20:44 
	
	
	
		Woow. This is going to make dialog menus fun 
What about this:
Will "onClickOk" be called when selecting "Single action"? Or only its handler function.
Will this even work? Or does items orverride item data?
	
	
	

What about this:
Код:
Collection<ListDialogItem> items = new ArrayList<ListDialogItem>();
// add some stuff to "items" dynamically(i do not know their values at compile time)
ListDialog.create(player, eventManager)
      .caption("stuff")
      .item("Single action", item -> {
           // do things
      })
      .items(items)
      .onClickOk((dialog, item) -> {
            // do something with items from "items" collection
      })
      .build()
      .show();
Will this even work? Or does items orverride item data?


