mirror of
https://github.com/godotengine/godot.git
synced 2025-10-22 09:23:40 +00:00
[HTML5] Add JavaScriptToolsEditorPlugin.
A new editor plugin, specific to HTML5, that provide some extra features needed to make the editor usable on that platform. For now, it adds a "Download project sources" option in the "Tool" menu, so the user can download the work done as a zip file (from the browser storage).
This commit is contained in:
parent
3dfb769115
commit
c54de7f589
4 changed files with 218 additions and 0 deletions
|
@ -31,10 +31,12 @@
|
|||
#include "api.h"
|
||||
#include "core/engine.h"
|
||||
#include "javascript_eval.h"
|
||||
#include "javascript_tools_editor_plugin.h"
|
||||
|
||||
static JavaScript *javascript_eval;
|
||||
|
||||
void register_javascript_api() {
|
||||
JavaScriptToolsEditorPlugin::initialize();
|
||||
ClassDB::register_virtual_class<JavaScript>();
|
||||
javascript_eval = memnew(JavaScript);
|
||||
Engine::get_singleton()->add_singleton(Engine::Singleton("JavaScript", javascript_eval));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue