diff options
Diffstat (limited to 'main/tests/test_gui.cpp')
-rw-r--r-- | main/tests/test_gui.cpp | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/main/tests/test_gui.cpp b/main/tests/test_gui.cpp index f0b00aeeae..d46a13d2c0 100644 --- a/main/tests/test_gui.cpp +++ b/main/tests/test_gui.cpp @@ -35,7 +35,7 @@ #include "core/io/image_loader.h" #include "core/os/os.h" #include "core/print_string.h" -#include "scene/2d/sprite.h" +#include "scene/2d/sprite_2d.h" #include "scene/gui/button.h" #include "scene/gui/control.h" #include "scene/gui/label.h" @@ -53,20 +53,17 @@ #include "scene/gui/tree.h" #include "scene/main/scene_tree.h" -#include "scene/3d/camera.h" -#include "scene/main/viewport.h" +#include "scene/3d/camera_3d.h" +#include "scene/main/window.h" namespace TestGUI { class TestMainLoop : public SceneTree { - public: virtual void request_quit() { - quit(); } virtual void init() { - SceneTree::init(); Panel *frame = memnew(Panel); @@ -220,7 +217,7 @@ public: richtext->add_text("faeries.\n"); richtext->pop(); richtext->add_text("In this new episode, we will attempt to "); - richtext->push_font(richtext->get_font("mono_font", "Fonts")); + richtext->push_font(richtext->get_theme_font("mono_font", "Fonts")); richtext->push_color(Color(0.7, 0.5, 1.0)); richtext->add_text("deliver something nice"); richtext->pop(); @@ -266,9 +263,9 @@ public: }; MainLoop *test() { - return memnew(TestMainLoop); } + } // namespace TestGUI #endif |