Skip to content

Commit

Permalink
-
Browse files Browse the repository at this point in the history
  • Loading branch information
aiekick committed Jan 7, 2024
1 parent bd2cf6f commit f2e0012
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 4 deletions.
2 changes: 1 addition & 1 deletion ImGuiFileDialog
Submodule ImGuiFileDialog updated 1 files
+7 −1 README.md
8 changes: 7 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -1038,7 +1038,13 @@ config.userFileAttributes = [](IGFD::FileInfos* vFileInfosPtr, IGFD::UserDatas v
};
```

![user_file_attributes.gif](https://github.com/aiekick/ImGuiFileDialog/blob/DemoApp/doc/user_file_attributes.png)
Before the User of the userAttribute callback :

![user_files_attributes_before.gif](https://github.com/aiekick/ImGuiFileDialog/blob/DemoApp/doc/user_files_attributes_before.png)

After :

![user_files_attributes_after.gif](https://github.com/aiekick/ImGuiFileDialog/blob/DemoApp/doc/user_files_attributes_after.png)

</blockquote></details>

Expand Down
File renamed without changes
Binary file added doc/user_files_attributes_before.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -736,7 +736,7 @@ int main(int, char**) {
config.path = ".";
config.countSelectionMax = 0;
config.flags = flags;
config.userFileAttributes = [](IGFD::FileInfos* vFileInfosPtr, IGFD::UserDatas vUserDatas) -> bool {
/*config.userFileAttributes = [](IGFD::FileInfos* vFileInfosPtr, IGFD::UserDatas vUserDatas) -> bool {
if (vFileInfosPtr != nullptr) {
// this demo not take into account .gltf who have data insise. besauce keepd easy just for demo
if (vFileInfosPtr->SearchForExt(".gltf", true)) {
Expand All @@ -755,7 +755,7 @@ int main(int, char**) {
}
}
return true;
};
};*/
ImGuiFileDialog::Instance()->OpenDialog("ChooseFileDlgKey", ICON_IGFD_FOLDER_OPEN " Choose a File", filters, config);
}
}
Expand Down

0 comments on commit f2e0012

Please sign in to comment.