@Override public void actionPerformed(ActionEvent arg0) { GameObject selected; if (myLevelEditor.getSelected().size() != 0) { selected = myLevelEditor.getSelected().get(0); new BindingRunner(cutOffInts(selected.getName())); } }
public void stateChanged(ChangeEvent event) { setSliderEnable(); myLevelEditor.getMover().getStats().mySpeed = mySpeedSlider.getValue(); if (speedEnable) { for (GameObject g : myLevelEditor.getSelected()) { g.setSpeed(getMovementSpeed()); } } };
public void stateChanged(ChangeEvent event) { myLevelEditor.getMover().getStats().myDuration = myDurationSlider.getValue(); for (GameObject g : myLevelEditor.getSelected()) { try { g.setDuration(getMovementDuration()); } catch (InterruptedException e) { e.printStackTrace(); } } };