1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-12 13:20:55 +00:00

VisualScript can now execute visual scripts, but there is no debugger or profiler yet.

This commit is contained in:
Juan Linietsky
2016-08-05 22:46:45 -03:00
parent 6d5d23fa8d
commit 259418f827
27 changed files with 3333 additions and 221 deletions

View File

@@ -117,20 +117,20 @@ void ScriptCreateDialog::ok_pressed() {
String text = ScriptServer::get_language( language_menu->get_selected() )->get_template(cname,parent_name->get_text());
Script *script = ScriptServer::get_language( language_menu->get_selected() )->create_script();
script->set_source_code(text);
Ref<Script> scr = ScriptServer::get_language( language_menu->get_selected() )->get_template(cname,parent_name->get_text());
//scr->set_source_code(text);
if (cname!="")
script->set_name(cname);
scr->set_name(cname);
Ref<Script> scr(script);
if (!internal->is_pressed()) {
String lpath = Globals::get_singleton()->localize_path(file_path->get_text());
script->set_path(lpath);
scr->set_path(lpath);
if (!path_valid) {
alert->set_text(TTR("Invalid path!"));
@@ -145,7 +145,7 @@ void ScriptCreateDialog::ok_pressed() {
alert->popup_centered_minsize();
return;
}
scr->set_path(lpath);
//scr->set_path(lpath);
//EditorFileSystem::get_singleton()->update_file(lpath,scr->get_type());