![]() |
Olympe Engine 2.0
2D Game Engine with ECS Architecture
|
#include <AssetBrowser.h>
Collaboration diagram for Olympe::AssetBrowser:Public Member Functions | |
| AssetBrowser () | |
| ~AssetBrowser () | |
| void | Initialize (const std::string &assetsRootPath) |
| void | Refresh () |
| void | Render () |
| void | RenderContent () |
| std::string | GetSelectedAssetPath () const |
| bool | HasSelection () const |
| void | SetAssetOpenCallback (std::function< void(const std::string &)> callback) |
Private Member Functions | |
| void | RenderTreeNode (const std::shared_ptr< AssetNode > &node) |
| void | RenderNodePalette () |
| bool | PassesFilter (const std::shared_ptr< AssetNode > &node) const |
| void | RenderFilterUI () |
Private Attributes | |
| std::string | m_SelectedAssetPath |
| AssetFilter | m_Filter |
| std::function< void(const std::string &)> | m_OnAssetOpen |
| char | m_SearchBuffer [256] |
| int | m_TypeFilterSelection |
| std::vector< std::string > | m_AvailableTypes |
Definition at line 28 of file AssetBrowser.h.
| Olympe::AssetBrowser::AssetBrowser | ( | ) |
Definition at line 17 of file AssetBrowser.cpp.
References m_AvailableTypes, and m_SearchBuffer.
| Olympe::AssetBrowser::~AssetBrowser | ( | ) |
Definition at line 24 of file AssetBrowser.cpp.
| std::string Olympe::AssetBrowser::GetSelectedAssetPath | ( | ) | const |
Definition at line 382 of file AssetBrowser.cpp.
References m_SelectedAssetPath.
| bool Olympe::AssetBrowser::HasSelection | ( | ) | const |
Definition at line 387 of file AssetBrowser.cpp.
References m_SelectedAssetPath.
Definition at line 28 of file AssetBrowser.cpp.
References Olympe::BlueprintEditor::Get(), GetComponentTypeID_Static(), and Olympe::BlueprintEditor::SetAssetRootPath().
Referenced by Olympe::BlueprintEditorGUI::Initialize().
Here is the call graph for this function:
Here is the caller graph for this function:Definition at line 44 of file AssetBrowser.cpp.
References GetComponentTypeID_Static(), m_AvailableTypes, m_Filter, m_TypeFilterSelection, and Olympe::AssetFilter::searchQuery.
Referenced by RenderTreeNode().
Here is the call graph for this function:
Here is the caller graph for this function:| void Olympe::AssetBrowser::Refresh | ( | ) |
Definition at line 36 of file AssetBrowser.cpp.
References Olympe::BlueprintEditor::Get(), and Olympe::BlueprintEditor::RefreshAssets().
Referenced by RenderFilterUI().
Here is the call graph for this function:
Here is the caller graph for this function:| void Olympe::AssetBrowser::Render | ( | ) |
Definition at line 202 of file AssetBrowser.cpp.
References RenderContent().
Here is the call graph for this function:| void Olympe::AssetBrowser::RenderContent | ( | ) |
Definition at line 211 of file AssetBrowser.cpp.
References Olympe::BlueprintEditor::Get(), Olympe::BlueprintEditor::GetAssetTree(), GetComponentTypeID_Static(), Olympe::BlueprintEditor::HasError(), RenderFilterUI(), and RenderTreeNode().
Referenced by Render(), and Olympe::BlueprintEditorGUI::RenderFixedLayout().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
Definition at line 71 of file AssetBrowser.cpp.
References GetComponentTypeID_Static(), m_AvailableTypes, m_Filter, m_SearchBuffer, m_TypeFilterSelection, Refresh(), and Olympe::AssetFilter::searchQuery.
Referenced by RenderContent().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
Definition at line 316 of file AssetBrowser.cpp.
References Olympe::AtomicTask, Olympe::Branch, Olympe::Delay, Olympe::DoOnce, Olympe::EntryPoint, Olympe::ForEach, Olympe::GetBBValue, GetComponentTypeID_Static(), Olympe::MathOp, Olympe::SetBBValue, Olympe::SubGraph, Olympe::Switch, Olympe::VSSequence, and Olympe::While.
Here is the call graph for this function:Definition at line 110 of file AssetBrowser.cpp.
References Olympe::BlueprintEditor::Get(), GetComponentTypeID_Static(), m_OnAssetOpen, m_SelectedAssetPath, Olympe::BlueprintEditor::OpenGraphInEditor(), PassesFilter(), RenderTreeNode(), and Olympe::BlueprintEditor::SelectAsset().
Referenced by RenderContent(), and RenderTreeNode().
Here is the call graph for this function:
Here is the caller graph for this function:| void Olympe::AssetBrowser::SetAssetOpenCallback | ( | std::function< void(const std::string &)> | callback | ) |
Definition at line 392 of file AssetBrowser.cpp.
References GetComponentTypeID_Static(), and m_OnAssetOpen.
Referenced by Olympe::BlueprintEditorGUI::Initialize().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
Definition at line 79 of file AssetBrowser.h.
Referenced by AssetBrowser(), PassesFilter(), and RenderFilterUI().
|
private |
Definition at line 73 of file AssetBrowser.h.
Referenced by PassesFilter(), and RenderFilterUI().
Definition at line 74 of file AssetBrowser.h.
Referenced by RenderTreeNode(), and SetAssetOpenCallback().
|
private |
Definition at line 77 of file AssetBrowser.h.
Referenced by AssetBrowser(), and RenderFilterUI().
|
private |
Definition at line 72 of file AssetBrowser.h.
Referenced by GetSelectedAssetPath(), HasSelection(), and RenderTreeNode().
|
private |
Definition at line 78 of file AssetBrowser.h.
Referenced by PassesFilter(), and RenderFilterUI().