Editor

@eric79 @kadst43 

- A JSON structure can now be generated from the DOM representation.
- New elements can be added to arrays and objects by clicking the "+" button to the right of the entry.
- New scenarios can be added by clicking the "Add Scenario" button.
- Replaced `vwf_view,kernel.application()` and `sceneID` with a function that retrieves and returns the app ID.
- Adjusted styles.
- Scenarios now save as they are being edited in the following ways:
  - Changing a boolean value.
  - Clicking out of the text box after updating a string.
  - Clicking out of the text box after updating a numeric value.
  - Adding a new Array entry.
  - Adding a new Object entry.
- Added element for deleting an entry.
  - Clicking delete entry and then clicking the entry you want to delete will delete it.
  - Does not delete the "scenarios" entry.
- Fix bug causing "Exit to Main Menu" to fail.
  - Re-enables continue button when exiting to main menu (track in-game progress).
- Added JsonEditor.js.
  - Added JsonEditor object to editor.
  - Removed old code in editor.js.
- Modified booleanFunctionFactory.js
You could match whole word…

From: Eric Burns [mailto:notifications@github.com]
Sent: Friday, October 17, 2014 1:15 PM
To: virtual-world-framework/mars-game
Cc: Dill, Kevin
Subject: EXTERNAL: Re: [mars-game] Editor (#467)


In editor/editor.js:

> @@ -21,9 +20,18 @@ var compileProgress = 0;

>  var levelIds = new Array();

>  var timePct = 0;

>  var levelFile;

> +var appID;

> +var je = new JsonEditor( "scenarioList" );

Just one last place where a variable might me slightly over-abbreviated. (it's kind of hard to search on, since je is in the middle of object) [:smile:]

—
Reply to this email directly or view it on GitHub<https://github.com/virtual-world-framework/mars-game/pull/467/files#r19030349>.