use of com.kotcrab.vis.ui.widget.VisLabel in project HyperLap2D by rednblackgames.
the class ProjectExportSettings method getDimensionsTable.
private Table getDimensionsTable() {
Integer[] data = { 512, 1024, 2048, 4096 };
VisTable dimensionsTable = new VisTable();
widthSelectBox.setItems(data);
dimensionsTable.add(new VisLabel("Width:")).left().padRight(3);
dimensionsTable.add(widthSelectBox).width(85).height(21).padRight(3);
dimensionsTable.row().padTop(10);
heightSelectBox.setItems(data);
dimensionsTable.add(new VisLabel("Height:")).left().padRight(3);
dimensionsTable.add(heightSelectBox).width(85).height(21).left();
return dimensionsTable;
}
use of com.kotcrab.vis.ui.widget.VisLabel in project HyperLap2D by rednblackgames.
the class AbstractGridTilesTab method initView.
@Override
public void initView() {
if (isDrop = savedTiles.size == 0) {
VisImageButton.VisImageButtonStyle dropBoxStyle = new VisImageButton.VisImageButtonStyle();
dropBoxStyle.up = new TextureRegionDrawable(resourcesManager.getTextureRegion("tiles-drop-here-normal", -1));
dropBoxStyle.imageOver = new TextureRegionDrawable(resourcesManager.getTextureRegion("tiles-drop-here-over", -1));
VisImageButton dropRegion = new VisImageButton(dropBoxStyle);
content.clear();
content.add(dropRegion).center().padRight(6).padBottom(6).padTop(10).row();
content.add(new VisLabel("Drop an image from resources box")).expandX().center().padBottom(5);
content.pack();
} else {
if (tileIndex > tilesCount) {
tilesCount = tileIndex;
}
initTiles();
}
}
use of com.kotcrab.vis.ui.widget.VisLabel in project HyperLap2D by rednblackgames.
the class MainPanel method initPreView.
private void initPreView() {
previewTable.clear();
previewWidget = new PreviewWidget();
previewWidget.setHeight(205);
previewTable.add(previewWidget).width(200).height(205).top();
previewTable.row();
previewWidget.update((TextureAtlas.AtlasRegion) texture, ((TextureAtlas.AtlasRegion) texture).findValue("split"));
VisLabel label = new VisLabel("Note: after saving, your \n scene will reload to \n apply changes.");
label.setAlignment(Align.center);
previewTable.add(label).pad(10).fillY().expandY();
previewTable.row();
VisTextButton saveBtn = new VisTextButton("apply and save");
previewTable.add(saveBtn).pad(5);
previewTable.row();
saveBtn.addListener(new ClickListener() {
public void clicked(InputEvent event, float x, float y) {
facade.sendNotification(SAVE_CLICKED);
}
});
}
use of com.kotcrab.vis.ui.widget.VisLabel in project HyperLap2D by rednblackgames.
the class ImportPanel method setImportingView.
public void setImportingView(int type, int count) {
mainTable.clear();
errorLabel.getColor().a = 0;
errorLabel.clearActions();
String typeText = typeNames.get(type);
if (count > 1)
typeText += " (" + count + ")";
mainTable.add(new VisLabel("Currently importing: " + typeText)).left();
mainTable.row().padBottom(5);
progressBar = new VisProgressBar(0, 100, 1, false);
mainTable.add(progressBar).fillX().padTop(5).width(250);
mainTable.row().padBottom(5);
pack();
}
use of com.kotcrab.vis.ui.widget.VisLabel in project gdx-graph by MarcinSc.
the class GraphBoxImpl method addInputGraphPart.
public void addInputGraphPart(GraphNodeInput graphNodeInput) {
VisTable table = new VisTable();
table.add(new VisLabel(graphNodeInput.getFieldName())).grow().row();
GraphBoxPartImpl graphBoxPart = new GraphBoxPartImpl(table, null);
graphBoxPart.setInputConnector(GraphBoxInputConnector.Side.Left, graphNodeInput);
addGraphBoxPart(graphBoxPart);
}
Aggregations