29#include "../../Editor/ConditionPreset/ConditionPreset.h"
30#include "../../Editor/ConditionPreset/ConditionPresetRegistry.h"
ComponentTypeID GetComponentTypeID_Static()
Manages the global pool of ConditionPreset objects.
ImGui dropdown widget for selecting a ConditionPreset from the registry.
size_t GetVisiblePresetCount() const
Returns the number of presets visible after filtering.
void ClearFilter()
Clears any active filter.
std::string GetPresetDisplayName(const std::string &presetID) const
Returns the display name of a preset, or empty if not found.
void SetFilter(const std::string &filter)
Sets optional filter — only presets matching this substring are shown in the dropdown.
~PresetDropdownHelper()=default
ConditionPresetRegistry & m_registry
bool Render(std::string &selectedPresetID)
Renders the dropdown widget and handles selection.
void SetLabel(const std::string &label)
Sets the label displayed next to the dropdown.
< Provides AssetID and INVALID_ASSET_ID