public WeldTable(Skin skin, WeldJoint joint) { super(skin, joint, JointType.WeldJoint); anchorTable = new VertexTable(joint.getAnchor(), skin); referenceAngleField = new TextField(joint.getReferenceAngle() + "", skin); referenceAngleField.setMessageText("<reference angle>"); add("Anchor: "); add(anchorTable); row(); add("Reference Angle: "); add(referenceAngleField); }
public void apply(WeldJoint joint) { super.apply(joint); joint.setAnchor(anchorTable.getVertex()); joint.setReferenceAngle(Float.parseFloat(referenceAngleField.getText())); }