9#include "../../third_party/imgui/imgui.h"
10#include "../../system/system_consts.h"
11#include "../../system/system_utils.h"
41 if (!currentPath.empty())
67 ImGui::SetNextWindowSizeConstraints(
ImVec2(500.0f, 300.0f),
ImVec2(1200.0f, 800.0f));
72 ImGui::TextColored(
ImVec4(0.8f, 0.95f, 1.0f, 1.0f),
"Select a Blueprint file (.ats) to use as SubGraph");
79 ImGui::TextDisabled(
"Path:");
81 ImGui::SetNextItemWidth(-100.0f);
89 if (ImGui::Button(
"Refresh##refresh",
ImVec2(90, 0)))
100 ImGui::TextDisabled(
"Filter:");
102 ImGui::SetNextItemWidth(-1.0f);
119 ImGui::TextDisabled(
"Selected:");
127 ImGui::TextColored(
ImVec4(1.0f, 0.5f, 0.5f, 1.0f),
"(none)");
144 ImGui::OpenPopup(
"Select SubGraph File##modal");
187 SYSTEM_LOG <<
"[SubGraphFilePicker] Platform not supported (Windows only)\n";
195 ImGui::TextDisabled(
"Available Blueprints:");
197 ImGui::BeginChild(
"##file_list",
ImVec2(0, 250),
true);
228 ImGui::TextDisabled(
"(no blueprint files found)");
239 ImGui::BeginDisabled(
true);
241 if (ImGui::Button(
"Select##select",
ImVec2(100, 0)))
249 ImGui::CloseCurrentPopup();
254 ImGui::EndDisabled();
258 if (ImGui::Button(
"Cancel##cancel",
ImVec2(100, 0)))
262 ImGui::CloseCurrentPopup();
ComponentTypeID GetComponentTypeID_Static()
ImGui modal for selecting SubGraph files (Phase 26).
void RenderFileList()
Renders the file list with scrolling support.
void Open(const std::string ¤tPath="")
Opens the modal with optional initial path.
std::vector< std::string > GetFilteredFiles() const
Filters file list by search term.
void Render()
Renders the modal UI.
void RefreshFileList()
Scans current directory for .json blueprint files.
void Close()
Closes the modal without confirming changes.
int m_selectedIndex
Currently highlighted file (-1 = none)
bool m_isOpen
Is modal currently displayed.
std::string m_selectedFile
The file path user selected.
std::vector< std::string > m_blueprintFiles
.json files in current directory
SubGraphFilePickerModal()
void RenderActionButtons()
Renders action buttons (Select, Cancel).
bool m_confirmed
Did user click Select button.
char m_searchBuffer[128]
Search filter text.
std::string m_currentPath
Current browse directory.
char m_pathBuffer[512]
Directory path input buffer.
< Provides AssetID and INVALID_ASSET_ID