43 void Open(
const std::string& currentPath =
"");
ImGui modal dialog for selecting BehaviorTree .bt.json files.
std::string m_selectedFile
The file path user selected.
char m_searchBuffer[128]
Search filter text.
void Render()
Renders the modal UI.
char m_pathBuffer[512]
Directory path input buffer.
std::vector< std::string > m_behaviorTreeFiles
.bt.json files in current directory
BehaviorTreeFilePickerModal()
void RenderActionButtons()
Renders action buttons (Select, Cancel).
int m_selectedIndex
Currently highlighted file (-1 = none)
std::vector< std::string > GetFilteredFiles() const
Filters file list by search term.
const std::string & GetSelectedFile() const
Returns the selected file path (only valid if IsConfirmed() is true).
void RenderFileList()
Renders the file list with scrolling support.
bool IsOpen() const
Returns true if modal is currently visible.
bool IsConfirmed() const
Returns true if user clicked "Select" button.
void Close()
Closes the modal without confirming changes.
bool m_isOpen
Is modal currently displayed.
void RefreshFileList()
Scans current directory for .bt.json behavior tree files.
bool m_confirmed
Did user click Select button.
~BehaviorTreeFilePickerModal()=default
std::string m_currentPath
Current browse directory.
void Open(const std::string ¤tPath="")
Opens the modal with optional initial path.
< Provides AssetID and INVALID_ASSET_ID