public void showEntityUI() { if (scriptUI.getScriptProgram().findFunction(TestNode.COLL_FUNC_NAME) == null) { JOptionPane.showMessageDialog(null, "Can't find script function: " + TestNode.COLL_FUNC_NAME); return; } if (!isDialogShowing) { rc.setRenderActive(false); new AddEntityUI().setVisible(true); isDialogShowing = true; } }
public void init() { scriptUI.runCompiler(TestNode.CollisionData.class); setUpControlMenu(); disp.getJFrame().setJMenuBar(menuBar); disp.setTitle("Snap2D PhysicsUI - alpha v.0.2"); disp.show(); initWorld(); rc.setTargetFPS(30); rc.setTargetTPS(30); rc.setRenderOp(RenderingHints.KEY_RENDERING, RenderingHints.VALUE_RENDER_SPEED); rc.startRenderLoop(); }