tirbofish/dropbear · commit
34109573e20503d598b6a12613760425d9b01cd3
feature: docks implemented as a trait instead of hardcoded, potential plugin possibility
Signature present but could not be verified.
Unverified
@@ -55,6 +55,7 @@ rfd.workspace = true semver.workspace = true serde.workspace = true bitflags.workspace = true +downcast-rs.workspace = true [target.'cfg(unix)'.dependencies] daemonize = "0.5.0" @@ -1,5 +1,4 @@ use dropbear_engine::asset::ASSET_REGISTRY; -use dropbear_engine::entity::MeshRenderer; use dropbear_engine::model::Model; use dropbear_engine::texture::Texture; use dropbear_engine::{graphics::NO_TEXTURE, utils::ResourceReference}; @@ -13,8 +12,8 @@ use std::{cmp::Ordering, fs, hash::DefaultHasher, io, path::Path}; use crate::editor::{ AssetDivision, AssetNodeInfo, AssetNodeKind, ComponentNodeSelection, DraggedAsset, - EditorTabViewer, FsEntry, ResourceDivision, SceneDivision, ScriptDivision, Signal, - StaticallyKept, TABS_GLOBAL, + EditorTabDock, EditorTabDockDescriptor, EditorTabViewer, FsEntry, ResourceDivision, + SceneDivision, ScriptDivision, Signal, StaticallyKept, TABS_GLOBAL, }; use eucalyptus_core::component::DRAGGED_ASSET_ID; @@ -882,10 +881,10 @@ impl<'a> EditorTabViewer<'a> { ) } - fn with_icon_kind<'ui>( - builder: NodeBuilder<'ui, u64>, + fn with_icon_kind( + builder: NodeBuilder<u64>, kind: AssetNodeKind, - ) -> NodeBuilder<'ui, u64> { + ) -> NodeBuilder<u64> { builder.icon(move |ui| { egui_extras::install_image_loaders(ui.ctx()); Self::draw_asset_icon(ui, kind) @@ -1241,7 +1240,7 @@ impl<'a> EditorTabViewer<'a> { .get_texture_handle_by_reference(&reference) .is_some()
Large diffs are not rendered by default. Showing the first 50 of 897 lines. Show full diff