You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Title says it all. I am wondering why there is no ImGui::FileBrowser::GetFlags() function or a ImGui::FileBrowser::SetFlags(ImGuiFileBrowserFlags flags) function? Instead it can only be done upon construction of the browser object.
For my case I want to be able to save and load things and when saving I want to enable the entering of a file name and when loading I do not. To do so should I be creating a different file browser for each?
The text was updated successfully, but these errors were encountered:
We can implement the same function with assignment operator. For example:
FileBrowser fileBrowser;
// ... do other stuff
fileBrowser = FileBrowser(ImGuiFileBrowserFlags_SelectDirectory);
The disadvantage is that title, dialog size and current directory are not kept with the new browser. However, we can set it manually:
FileBrowser fileBrowser;
// do other stuffconstauto dir = fileBrowser.GetPwd();
fileBrowser = FileBrowser(ImGuiFileBrowserFlags_SelectDirectory);
fileBrowser.SetPwd(dir);
Title says it all. I am wondering why there is no
ImGui::FileBrowser::GetFlags()
function or aImGui::FileBrowser::SetFlags(ImGuiFileBrowserFlags flags)
function? Instead it can only be done upon construction of the browser object.For my case I want to be able to save and load things and when saving I want to enable the entering of a file name and when loading I do not. To do so should I be creating a different file browser for each?
The text was updated successfully, but these errors were encountered: