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

SceneMainLoop -> SceneTree

-=-=-=-=-=-=-=-=-=-=-=-=-=-

*YOUR SOURCE MIGHT NOT WORK*
For mor information on fix:
https://github.com/okamstudio/godot/wiki/devel_scene_tree

Other stuff:
-Shower of bullets demo
-Fixes all around
This commit is contained in:
Juan Linietsky
2014-11-05 21:20:42 -03:00
parent d14baf6e41
commit 0dbedd18fc
168 changed files with 1534 additions and 1310 deletions

View File

@@ -47,7 +47,7 @@ void SampleLibraryEditor::_notification(int p_what) {
}
if (p_what==NOTIFICATION_ENTER_SCENE) {
if (p_what==NOTIFICATION_ENTER_TREE) {
play->set_icon( get_icon("Play","EditorIcons") );
stop->set_icon( get_icon("Stop","EditorIcons") );
load->set_icon( get_icon("Folder","EditorIcons") );
@@ -129,7 +129,7 @@ void SampleLibraryEditor::_button_pressed(Object *p_item,int p_column, int p_id)
player->play(name,true);
} else if (p_column==1) {
get_scene()->get_root()->get_child(0)->call("_resource_selected",sample_library->get_sample(name));
get_tree()->get_root()->get_child(0)->call("_resource_selected",sample_library->get_sample(name));
}
@@ -186,7 +186,7 @@ void SampleLibraryEditor::_item_edited() {
Ref<Sample> samp = sample_library->get_sample(tree->get_selected()->get_metadata(0));
get_scene()->get_root()->get_child(0)->call("_resource_selected",samp);
get_tree()->get_root()->get_child(0)->call("_resource_selected",samp);
}