14#ifndef DL_DISABLE_RENDER
34 FileExplorer* ret =
new FileExplorer;
35 ret->_txtPath = txt_path;
37 ret->_lstPathRoot = lst_root;
44 _bOnlyFolder = only_folder;
63 Value v = _lstPath->GetSelect();
85 std::vector<std::string> _vecPath;
86 std::string _pathCurrent;
89 std::vector<std::string> _vecPathRoot;
92 std::string _targetName;
std::string GetPathSelect()
当前选中的目录(没选中则返回GetPathCurrent)
void SetPathCurrent(std::string_view path)
设置当前目录
static FileExplorer * Create(UI::Text *txt_path, UI::ListBox *lst, UI::ListBox *lst_root)
创建窗口
virtual void Update() override
帧函数 @info 子类重载后,需要调用 Window::Update()
std::string GetPathCurrent()
当前显示的目录
void SetOnlyFolder(bool only_folder)
void SetTargetName(std::string_view name)
void Add(T *p)
添加一个Element
std::string ToString() const
std::string PathPublic()
返回公共路径 rw