use of com.kotcrab.vis.ui.widget.VisLabel in project HyperLap2D by rednblackgames.
the class PerformancePanel method initView.
public void initView() {
mainTable.clear();
entitiesCount = new VisLabel();
fpsLbl = new VisLabel();
memoryLabel = new VisLabel();
glCalls = new VisLabel();
drawCalls = new VisLabel();
shaderSwitch = new VisLabel();
textureBind = new VisLabel();
vertexCount = new VisLabel();
mainTable.add(new VisLabel("Entity count: ")).right();
mainTable.add(entitiesCount).left().padLeft(4);
mainTable.row();
mainTable.add(new VisLabel("FPS: ")).right();
mainTable.add(fpsLbl).left().padLeft(4);
mainTable.row();
mainTable.add(new VisLabel("Memory: ")).right();
mainTable.add(memoryLabel).left().padLeft(4);
mainTable.row();
mainTable.add(new VisLabel("GL Calls: ")).right();
mainTable.add(glCalls).left().padLeft(4);
mainTable.row();
mainTable.add(new VisLabel("Draw calls: ")).right();
mainTable.add(drawCalls).left().padLeft(4);
mainTable.row();
mainTable.add(new VisLabel("Shader switches: ")).right();
mainTable.add(shaderSwitch).left().padLeft(4);
mainTable.row();
mainTable.add(new VisLabel("Texture bindings: ")).right();
mainTable.add(textureBind).left().padLeft(4);
mainTable.row();
mainTable.add(new VisLabel("Vertex count: ")).right();
mainTable.add(vertexCount).left().padLeft(4);
mainTable.row();
pack();
}
use of com.kotcrab.vis.ui.widget.VisLabel in project HyperLap2D by rednblackgames.
the class UIShaderProperties method initView.
public void initView(HashMap<String, ShaderProgram> shaders) {
mainTable.clear();
Array<String> shaderNames = new Array<>();
shaderNames.add("Default");
shaders.keySet().forEach(shaderNames::add);
shadersSelector.setItems(shaderNames);
mainTable.add(new VisLabel("Shader: ", Align.right)).padRight(5).width(75).right();
mainTable.add(shadersSelector).width(100).left().row();
TextButton editButton = StandardWidgetsFactory.createTextButton("Edit");
editButton.addListener(new ButtonToNotificationListener(EDIT_BUTTON_CLICKED));
mainTable.add(editButton).padTop(5).padRight(3);
TextButton uniformsButton = StandardWidgetsFactory.createTextButton("Uniforms");
uniformsButton.addListener(new ButtonToNotificationListener(UNIFORMS_BUTTON_CLICKED));
mainTable.add(uniformsButton).padTop(5).row();
mainTable.addSeparator().padTop(5).padBottom(5).colspan(2);
mainTable.add(StandardWidgetsFactory.createLabel("Rendering Layer:")).padRight(5).right();
mainTable.add(renderingLaterSelector).width(100).left().row();
}
use of com.kotcrab.vis.ui.widget.VisLabel in project HyperLap2D by rednblackgames.
the class UIPolygonComponentProperties method initEmptyView.
public void initEmptyView() {
mainTable.clear();
addDefaultMeshButton = StandardWidgetsFactory.createTextButton("Make Default");
addAutoTraceMeshButton = StandardWidgetsFactory.createTextButton("Auto Trace");
mainTable.add(new VisLabel("There is no vertices in this shape", Align.center));
mainTable.row();
mainTable.add(addDefaultMeshButton).center().row();
mainTable.add(addAutoTraceMeshButton).center().padTop(5).row();
initEmptyViewListeners();
}
use of com.kotcrab.vis.ui.widget.VisLabel in project HyperLap2D by rednblackgames.
the class ProjectExportSettings method getFilterTable.
private Table getFilterTable() {
String[] data = { "Linear", "Nearest", "MipMap", "MipMapNearestNearest", "MipMapLinearNearest", "MipMapNearestLinear", "MipMapLinearLinear" };
VisTable filterTable = new VisTable();
filterMagSelectBox.setItems(data);
filterTable.add(new VisLabel("Mag:")).left().padRight(3);
filterTable.add(filterMagSelectBox).width(85).height(21).padRight(3);
filterTable.row().padTop(10);
filterMinSelectBox.setItems(data);
filterTable.add(new VisLabel("Min:")).left().padRight(3);
filterTable.add(filterMinSelectBox).width(85).height(21).left();
return filterTable;
}
use of com.kotcrab.vis.ui.widget.VisLabel in project gdx-graph by MarcinSc.
the class GraphBoxImpl method addTwoSideGraphPart.
public void addTwoSideGraphPart(GraphNodeInput graphNodeInput, GraphNodeOutput graphNodeOutput) {
VisTable table = new VisTable();
table.add(new VisLabel(graphNodeInput.getFieldName())).grow();
VisLabel outputLabel = new VisLabel(graphNodeOutput.getFieldName());
outputLabel.setAlignment(Align.right);
table.add(outputLabel).grow();
table.row();
GraphBoxPartImpl graphBoxPart = new GraphBoxPartImpl(table, null);
graphBoxPart.setInputConnector(GraphBoxInputConnector.Side.Left, graphNodeInput);
graphBoxPart.setOutputConnector(GraphBoxOutputConnector.Side.Right, graphNodeOutput);
addGraphBoxPart(graphBoxPart);
}
Aggregations