You've already forked godot
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:
@@ -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());
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user