From 1c38f0785c01a2824a08e7161d02d2f6039f10ef Mon Sep 17 00:00:00 2001 From: Dmitry Stepanov Date: Thu, 10 Sep 2026 23:36:04 +0300 Subject: [PATCH] searching for entity creator --- editor/src/world/create.rs | 122 +++++++++++++++++++++++++++------ fyrox-graph/src/constructor.rs | 6 +- 2 files changed, 103 insertions(+), 25 deletions(-) diff --git a/editor/src/world/create.rs b/editor/src/world/create.rs index 59847c64a..f79cecbd5 100644 --- a/editor/src/world/create.rs +++ b/editor/src/world/create.rs @@ -21,20 +21,24 @@ use crate::{ command::{Command, CommandGroup}, fyrox::{ - core::{algebra::Vector3, pool::Handle}, + core::{algebra::Vector3, pool::Handle, ImmutableString}, engine::Engine, fxhash::FxHashMap, - graph::constructor::{ConstructorVariantId, GraphNodeConstructorContainer, VariantResult}, + graph::{ + constructor::{ConstructorVariantId, GraphNodeConstructorContainer, VariantResult}, + SceneGraph, + }, gui::{ button::{Button, ButtonBuilder, ButtonMessage}, grid::{Column, GridBuilder, Row}, list_view::{ListView, ListViewBuilder}, message::UiMessage, - scroll_viewer::ScrollViewerBuilder, + scroll_viewer::{ScrollViewer, ScrollViewerBuilder, ScrollViewerMessage}, + searchbar::{SearchBar, SearchBarBuilder, SearchBarMessage}, stack_panel::StackPanelBuilder, text::TextBuilder, tree::{Tree, TreeBuilder, TreeMessage, TreeRoot, TreeRootBuilder, TreeRootMessage}, - widget::WidgetBuilder, + widget::{UserData, WidgetBuilder, WidgetMessage}, window::{Window, WindowAlignment, WindowBuilder, WindowMessage, WindowTitle}, BuildContext, HorizontalAlignment, Orientation, Thickness, UiNode, UserInterface, }, @@ -47,7 +51,6 @@ use crate::{ scene::{GameScene, Selection}, ui_scene::{commands::graph::AddWidgetCommand, UiScene}, }; -use fyrox::gui::widget::WidgetMessage; #[derive(Default, Eq, PartialEq, Copy, Clone, Debug)] pub enum EntityCreatorMode { @@ -59,6 +62,7 @@ pub enum EntityCreatorMode { pub struct EntityCreator { window: Handle, + #[allow(unused)] // TODO recent_list: Handle, groups_tree: Handle, items_map: FxHashMap, ConstructorVariantId>, @@ -66,11 +70,22 @@ pub struct EntityCreator { cancel: Handle