38 void RegisterComponentType(
const std::string& name,
const std::string& category,
const std::string& description =
"");
ComponentTypeID GetComponentTypeID_Static()
std::vector< ComponentType > m_componentTypes
void Render(EntityPrefabGraphDocument *document)
int m_selectedCategoryIndex
void RegisterComponentType(const std::string &name, const std::string &category, const std::string &description="")
static constexpr float COMPONENT_ITEM_HEIGHT
void AddComponentToGraph(EntityPrefabGraphDocument *document, const ComponentType &componentType)
bool LoadComponentsFromJSON(const std::string &filepath)
void RenderComponentList(EntityPrefabGraphDocument *document)
static constexpr float CATEGORY_HEADER_HEIGHT
std::vector< std::string > m_categories
static constexpr float COMPONENT_ITEM_PADDING_X
std::string m_searchFilter
const std::vector< ComponentType > & GetComponentTypes() const
void RenderCategoryTabs()
char m_draggedComponentBuffer[256]
std::vector< bool > m_categoryExpanded
static constexpr float COMPONENT_ITEM_PADDING_Y
std::string ExtractCategoryFromComponentType(const std::string &componentType)
< Provides AssetID and INVALID_ASSET_ID
ComponentType(const std::string &n, const std::string &c, const std::string &d="")