Olympe Engine 2.0
2D Game Engine with ECS Architecture
Loading...
Searching...
No Matches
Classes | Namespaces
PresetDropdownHelper.h File Reference

Reusable ImGui dropdown component for ConditionPreset selection (Phase 24). More...

#include <string>
#include <vector>
#include "../../Editor/ConditionPreset/ConditionPreset.h"
#include "../../Editor/ConditionPreset/ConditionPresetRegistry.h"
+ Include dependency graph for PresetDropdownHelper.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  Olympe::PresetDropdownHelper
 ImGui dropdown widget for selecting a ConditionPreset from the registry. More...
 

Namespaces

namespace  Olympe
 < Provides AssetID and INVALID_ASSET_ID
 

Detailed Description

Reusable ImGui dropdown component for ConditionPreset selection (Phase 24).

Author
Olympe Engine
Date
2026-03-20

PresetDropdownHelper provides a reusable dropdown widget that displays all available ConditionPresets from the global registry, with optional filtering and search capabilities.

Usage:

PresetDropdownHelper dropdown(registry);
dropdown.SetLabel("Select Condition");
if (dropdown.Render(selectedPresetID)) {
// User selected a preset; selectedPresetID was updated
OnPresetSelected(selectedPresetID);
}
ComponentTypeID GetComponentTypeID_Static()
Definition ECS_Entity.h:56

C++14 compliant — no std::optional, structured bindings, std::filesystem.

Definition in file PresetDropdownHelper.h.