if (event.getEventType() == HUDEventType.CLOSED) {
// Tell all of the affordances to remove themselves by
// posting an event to the input system as such. Also tell
// the affordance panel it has closed
affordanceHUDPanel.closed();
InputManager.inputManager().postEvent(new AffordanceRemoveEvent());
}
}
});
// add affordances HUD panel to main HUD