use of org.terasology.nui.widgets.UIButton in project Terasology by MovingBlocks.
the class InputSettingsScreen method makeInputBindButton.
private UIButton makeInputBindButton(SimpleUri uri, RegisterBindButton bind, List<Input> binds, int index) {
UIButton inputBind = new UIButton();
inputBind.bindText(new BindingText(binds, index));
inputBind.subscribe(event -> {
ChangeBindingPopup popup = getManager().pushScreen(ChangeBindingPopup.ASSET_URI, ChangeBindingPopup.class);
popup.setBindingData(uri, bind, index);
});
return inputBind;
}
Aggregations