-
-
Notifications
You must be signed in to change notification settings - Fork 494
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add "show all files" option for filesystem menu #2579
base: master
Are you sure you want to change the base?
Conversation
Sometimes, My proposal is that this PR makes it, so |
if only it COMPILED!! 😁😁😁😁😁 |
src/editor/object_option.cpp
Outdated
@@ -410,13 +410,15 @@ FileObjectOption::FileObjectOption(const std::string& text, std::string* pointer | |||
std::vector<std::string> filter, | |||
const std::string& basedir, | |||
bool path_relative_to_basedir, | |||
std::vector<std::string> additional_filter, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pass additional_filter
as const reference.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
do same for filter?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes.
src/editor/object_option.hpp
Outdated
@@ -279,7 +279,8 @@ class FileObjectOption : public ObjectOption | |||
std::vector<std::string> filter, | |||
const std::string& basedir, | |||
bool path_relative_to_basedir, | |||
unsigned int flags); | |||
std::vector<std::string> additional_filter = {}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As above.
Could you fix compilation issues? |
For example: choosing the sprite for a bonus block will show a gigantic list mostly of pngs when only the sprites matter
Fix this by only showing the pngs optionally via checkbox