 		protected var modeListOpen:Boolean;
 		protected var moduleListOpen:Boolean;
 		protected var UIChanged:Boolean;
+		protected var editEnabled:Boolean = true;
+		protected var displayTime:DTime;
 		protected var preserve:Boolean;
 		
 		protected var moduleList:ButtonList;

		}
		
		protected function makeUI():void {
			//buttons = new Vector.<MenuButton>;
			upperLayer = new FlxGroup;
			UIChanged = true;
			
			modeListOpen ? makeModeMenu() : makeModeButton();
			if (mode == MODE_MODULE)
				moduleListOpen ? makeModuleList() : makeModuleButton();
			makeBackButton();
			makeSaveButton();
			makeUndoButtons();
			makeDataButton();
			makeRandomButton();
			
			upperLayer.add(new DTime(FlxG.width / 2 - 50, 10));
			upperLayer.add(new Scroller);
			upperLayer.add(new DCurrent(displayWires, displayModules));
		}
		
		protected function makeBackButton():void {

						moduleList.justDie = moduleList.closesOnClickOutside = false;
						break;
					}
			}
		}
		
		protected function checkTime():void {
			if (editEnabled != time.moment == 0) {
				editEnabled = time.moment == 0;
				makeUI();
			}
		}
		
