I'm trying to add viewcube same way as in editor.
looks like few lines of "code editor\panels\editor_panel_viewcube.h"
copying all includes from "editor\editor.cpp" does not help
so I'm started from small - added: WidgetViewportLayout layout; and include required classes from error messages
using Unigine::Widgets;
#include <core/scripts/tuple.h>
#include <core/systems/widgets/widget.h>
#include <core/systems/widgets/widget_window.h>
#include <core/systems/widgets/widget_hbox.h>
#include <core/systems/widgets/widget_vbox.h>
#include <core/systems/widgets/widget_icon.h>
#include <core/systems/widgets/widget_sprite.h>
#include <core/systems/widgets/widget_groupbox.h>
//error Widget.setOrder()
#include <editor/widgets/editor_widget_viewport_layout.h>
and stuck with setOrder() that must be in Widget - but it's not there
error:
16:33:24 panel_box.widget.setOrder(order);
16:33:24 editor/widgets/editor_widget_viewport_layout.h:569: Interpreter::parse_user_class(): unknown "Widget" class member "setOrder"
in "class WidgetViewportLayoutPanel { ", "VBox panel_box;" but in initialization it "panel_box = new HBox();"
and method calls (VBox or Hbox).widget.
void setOrder(int order) {
panel_box.widget.setOrder(order);
}
but class Widget { - has no method setOrder() in "core\systems\widgets\widget.h"
any clear thoughts?