コード例 #1
0
 @Override
 public void clicked(InputEvent event, float x, float y) {
   inventory.deselectPreviousSlot();
   inventory.m_hotbarInventory.selectSlot(index);
 }
コード例 #2
0
 public void reset(DragAndDrop.Source source, DragAndDrop.Payload payload) {
   payload.getDragActor().setColor(1, 1, 1, 1);
   getActor().setColor(Color.WHITE);
   // restore selection, it was just dropped..
   inventory.selected(inventory.m_hotbarInventory.m_selectedSlot, inventory.m_hotbarInventory);
 }