mirror of
https://github.com/aharabada/glitchy-engine-beef.git
synced 2026-09-06 05:01:53 +00:00
Properties window
This commit is contained in:
@@ -84,8 +84,9 @@ namespace GlitchyEditor.EditWindows
|
||||
|
||||
public Event<EventHandler<StringView>> OnFileSelected ~ _.Dispose();
|
||||
|
||||
public this(EditorContentManager contentManager, AssetThumbnailManager thumbnailManager)
|
||||
public this(Editor editor, EditorContentManager contentManager, AssetThumbnailManager thumbnailManager)
|
||||
{
|
||||
_editor = editor;
|
||||
_manager = contentManager;
|
||||
_thumbnailManager = thumbnailManager;
|
||||
}
|
||||
@@ -864,6 +865,18 @@ namespace GlitchyEditor.EditWindows
|
||||
{
|
||||
wantsDelete = true;
|
||||
}
|
||||
|
||||
ImGui.Separator();
|
||||
|
||||
if (ImGui.MenuItem("Properties..."))
|
||||
{
|
||||
AssetHandle? assetHandle = fileOrFolder->AssetFile?.AssetConfig?.AssetHandle;
|
||||
|
||||
if (assetHandle != null)
|
||||
{
|
||||
new PropertiesWindow(_editor, .Asset(assetHandle.Value));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private void OpenEntry(TreeNode<AssetNode> entry)
|
||||
|
||||
Reference in New Issue
Block a user