@Override
		public void tActionEvent(TActionEvent event)
			{
				Object source = event.getSource();
				
				if (source == newSimButton)
					{
						mainMenu.setX(0);
						newSimMenu.setX(640);
						simWidth = (int) simWidthSlider.getValue(0);
					}
				else if (source == resumeSimButton)
					{
						if (Hub.simWindow != null && Hub.simWindow.sim != null && Hub.simWindow.sim.simWidth >= 800)
							{
								changeRenderableObject(Hub.simWindow);
								reset();
							}
					}
				else if (source == startSimButton)
					{
						Hub.simWindow = new SimulationWindow();
						Hub.simWindow.sim = new Simulation(simWidth);
						changeRenderableObject(Hub.simWindow);
						reset();
					}
				else if (source == editorButton)
					{
						if (Hub.simWindow == null)
							{
								Hub.simWindow = new SimulationWindow();
								Hub.simWindow.sim = new Simulation(1);
								changeRenderableObject(Hub.simWindow);
							}
						changeRenderableObject(Hub.editor);
						reset();
					}
			}