use of com.kotcrab.vis.ui.widget.VisTextButton in project HyperLap2D by rednblackgames.
the class UILivePreviewBox method init.
private void init() {
addSeparator(true).padRight(13).padLeft(13);
VisTextButton liveButton = StandardWidgetsFactory.createTextButton("Live Preview", "red");
add(liveButton).width(110);
liveButton.addListener(new ClickListener() {
@Override
public void clicked(InputEvent event, float x, float y) {
super.clicked(event, x, y);
facade.sendNotification(LIVE_PREVIEW_CLICKED);
}
});
}
use of com.kotcrab.vis.ui.widget.VisTextButton in project HyperLap2D by rednblackgames.
the class EditSpriteAnimationPanel method createNewAnimationTable.
private void createNewAnimationTable(int maxFrame) {
newAnimationTable.clear();
nameField = StandardWidgetsFactory.createValidableTextField(new EmptyOrDefaultValidator());
fromFrameField = StandardWidgetsFactory.createNumberSelector(0, maxFrame);
toFrameField = StandardWidgetsFactory.createNumberSelector(0, maxFrame);
addButton = new VisTextButton("Add");
newAnimationTable.add(nameField).width(120);
newAnimationTable.add(fromFrameField).padLeft(5);
newAnimationTable.add(toFrameField).padLeft(5);
newAnimationTable.add(addButton).padLeft(7).padRight(3);
newAnimationTable.row();
initListeners();
}
Aggregations